Changes

Jump to navigation Jump to search
384 bytes added ,  21:19, 25 December 2017
no edit summary
Line 27: Line 27:  
You should also enter in your domain administration panel and create the CNAMES to redirect trafic<br />
 
You should also enter in your domain administration panel and create the CNAMES to redirect trafic<br />
 
to the public ip of this server
 
to the public ip of this server
 +
 +
== Authentication ==
 +
 +
Create user account with:
 +
htpasswd -c /usr/local/apache/passwd/passwords rbowen
 +
 +
Protect with the directory directive:
 +
<nowiki><Directory "/usr/local/apache/htdocs/secret">
 +
AuthType Basic
 +
AuthName "Restricted Files"
 +
# (Following line optional)
 +
AuthBasicProvider file
 +
AuthUserFile "/usr/local/apache/passwd/passwords"
 +
Require user rbowen
 +
</Directory></nowiki>

Navigation menu