htaccess + proxy
I have a site that I'm using mod_proxy with in order to use the VirtualHost stuff, but I wanted the entire thing password protected while I developed the site.
Here's what I added to my apache configuration file to make it work:
<Location "/">
ProxyPass http://127.0.0.1:3699/VirtualHostBase/http/my.site.com:80/plone/VirtualHostRoot/
ProxyPassReverse http://127.0.0.1:3699/VirtualHostBase/http/my.site.com:80/plone/VirtualHostRoot/
AuthType Basic
AuthName "Password Required"
AuthUserFile /home/plone_user/htpasswd.file
Require user user
</Location>
You'll need to make an htpasswd file somewhere. I used the home folder of the user that I use to run this instance with.
Worked like a charm! Hope this helps others.
