Where to Put HTTP Auth in Proxy Server Config
by davedpss from LinuxQuestions.org on (#4YRX9)
I have an Apache server that functions as a proxy to the actual webserver. That is its only function to send the user to the webserver. The webserver is running Apache as well. I'm trying to figure out where I should put the HTTP Auth directive and if I need to add anything. The entry form keeps displaying every time you submit.
<Location />
AuthUserFile /etc/filename
AuthName "Authorized Users Only"
AuthType Basic
#AuthGroupFile /dev/null
require user username
</Location>
If i put it in the proxy server, I can get to the site but it forces me to reenter the credentials on virtually every page request. If I put it in the webserver httpd config, it just displays the entry form over and over and never lets me access the site.
I have also tried putting it in the .htaccess file at the root level of the webserver with same results as in the httpd config.
Any help would be appreciated. Thanks.
Dave.


<Location />
AuthUserFile /etc/filename
AuthName "Authorized Users Only"
AuthType Basic
#AuthGroupFile /dev/null
require user username
</Location>
If i put it in the proxy server, I can get to the site but it forces me to reenter the credentials on virtually every page request. If I put it in the webserver httpd config, it just displays the entry form over and over and never lets me access the site.
I have also tried putting it in the .htaccess file at the root level of the webserver with same results as in the httpd config.
Any help would be appreciated. Thanks.
Dave.