LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   authentication with apache reverse proxy (https://www.linuxquestions.org/questions/linux-networking-3/authentication-with-apache-reverse-proxy-644376/)

jonfa 05-23-2008 04:15 PM

authentication with apache reverse proxy
 
Hi All,

I have a Centos4 box with Apache reverse proxy and 2 webservers behind the proxy. All works well, but I would like to authenticate (password protect directories) at the proxy and not at each webserver. Once instead of twice. Is there a way to use htaccess at the proxy to do this? Thanks.

In my httpd.conf file I can add lines such as:

<Directory "/some/directory">
AuthType Basic
AuthName "Welcome"
AuthUserFile /var/www/passwords/passwords
Require valid-user
</Directory>


What, if any, would be the correct syntax for machines behind the proxy?


All times are GMT -5. The time now is 08:01 AM.