Article 4YRX9 Where to Put HTTP Auth in Proxy Server Config

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.latest?d=yIl2AUoC8zA latest?i=ksII29Vdxl4:5LHb4F8Hq5c:F7zBnMy latest?i=ksII29Vdxl4:5LHb4F8Hq5c:V_sGLiP latest?d=qj6IDK7rITs latest?i=ksII29Vdxl4:5LHb4F8Hq5c:gIN9vFwksII29Vdxl4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments