From Hentschel
Jump to: navigation, search

HM server networking

619 bytes added, 19:04, 27 March 2017
/* Password protection for hosts */
== Password protection for hosts ==
* change the vhosts file to the following
<pre>
ServerName pvr.hentschel.net
<Location / >
AuthType Basic
AuthUserFile "/home/hentsche/.htpasswd"
AuthName Limited!
Require valid-user
</Location>
 
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://192.168.1.101/
ProxyPassReverse / http://192.168.1.101/
</pre>
 
* create the .htpasswd file with <pre>htpasswd -c .htaccess username</pre>, add any other names w/o the '-c'. This file can be created on another host, since the server doesn't have htpasswd installed.