We have a server with apache set up as an authentication front end for a backend web service running on the same box.
The setup seemed to work at first, but we soon realised that apache was asking for authentication every time we clicked a link, went back or reloaded a page. We're now at a loss to resolve this.
Our apache2 virtual hosts file:
<VirtualHost *:80> ServerName app.ourdomain.com ErrorLog /var/log/apache2/graphiti-error.log CustomLog /var/log/apache2/graphiti-access.log common <Location "/"> require valid-user order allow,deny Allow from all AuthType Basic AuthName "Stats" AuthBasicProvider file AuthUserFile /etc/passwd_lp </Location> ProxyRequests off ProxyPreserveHost on ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ <Proxy *> Order allow,deny Allow from all </Proxy> </VirtualHost>
We're using Apache2 v2.2.22 on Ubuntu EC2 12.04
We have already tried; moving the Auth declarations into the
<Proxy> block; setting
ProxyRequests on; setting