This is what I have so far:
<VirtualHost *:80> DocumentRoot "/PathToTheFilesThat/theserver/gives/access/to" ServerName docs.mysite.com ProxyPass / http://localhost:8808/ ProxyPassReverse / http://localhost:8808 </VirtualHost>
Basically, I'm just trying to make a YARD documentation server public to the company I work for (but not to the entire world), hence the want for basic auth.
The above currently allows access to the server from any remote machine... just need auth. =D
<VirtualHost *:80> DocumentRoot "/Users/me/projects/myProject/doc" ServerName docs.mysite.com ProxyPass / http://localhost:8808/ ProxyPassReverse / http://localhost:8808 AuthUserFile /private/etc/apache2/conf/.htpasswd AuthName "Documentation Server, Please Log In" AuthType Basic Require User me </VirtualHost>
gives this error when I navigate to docs.mysite.com (in the console)
[Tue Feb 21 11:33:04 2012] [error] (61)Connection refused: proxy: HTTP: attempt to connect to [fe80::1]:8808 (localhost) failed [Tue Feb 21 11:33:04 2012] [error] ap_proxy_connect_backend disabling worker for (localhost) [Tue Feb 21 11:35:16 2012] [notice] caught SIGTERM, shutting down