I'm trying to set-up a password protected development version of a clients web site (Plone CMS driven).
The live site serves on port 7373, and is mapped to the public www port 80.
The 'dev' site serves on port 8383, and is mapped to port 8111.
I don't currently have access to the clients DNS records, so I can't set up a sub domain, but IP and different port numbers are fine.
However, I can't work out how to password protect the development site, whilst still serving the live site. I'm especially flummoxed by the protection settings seeming to be for folders only, not sites?
Below is the best guest I have (based on my rather lacking apache-foo), but this only serves the live site, not the dev site, or fire the password!
<VirtualHost *:80> ServerAlias www.site.com ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPreserveHost On ProxyPass / http://localhost:7373/VirtualHostBase/http/site.com:80/plonesite/VirtualHostRoot/ ProxyPassReverse / http://localhost:7373/VirtualHostBase/http/site.com:80/plonesite/VirtualHostRoot/ </VirtualHost> <VirtualHost 123.456.789.123:8111> <Location /plonesitetest/> AuthType Basic AuthName "Dev Server" AuthUserFile "/home/admin/.htpasswd" Require valid-user </Location> ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPreserveHost On ProxyPass / http://localhost:8383/VirtualHostBase/http/123.456.789.123:8111/plonesitetest/VirtualHostRoot/ ProxyPassReverse / http://localhost:8383/VirtualHostBase/http/123.456.789.123:8111/plonesitetest/VirtualHostRoot/ </VirtualHost>