=[EXTRACT]Simple Authentication and Authorization Using Apache
This is a solution I came up while using Apache 2 to proxy requests to Instiki:
<Virtualhost *:80> ServerName wiki.foo.bar ProxyRequests Off <Proxy *> Order Allow,Deny Allow from all </Proxy> <Location "/"> AuthName "My Secure Wiki" AuthType Basic Require valid-user AuthUserFile /home/wikiowner/instiki/wiki-aut-users ProxyPass ProxyPassReverse </Location> </Virtualhost>
This is similar to the setup explained in.
I moved theProxy Pass? and Proxy Pass Reverse? directives into a Location directive, and included some additional configuration to enable authentication:
Remember that with Basic authentication the passwords are send in clear text between the browser and the server. You should consider using SSL to protect them.