You need to setup authentication. For apache do the following: AuthType Basic AuthUserFile ${VHOST_CONFDIR}${PN}.passwd AuthName ${PN} Require valid-user The create the password file like this: htpasswd -c ${VHOST_CONFDIR}${PN}.passwd