Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-23-2008, 04:15 PM   #1
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
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

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
squid - reverse caching proxy with authentication dazdaz Linux - Software 2 08-31-2007 03:37 AM
squid as reverse proxy for microsoft IIS with Advanced Digest Authentication mikmok Linux - Networking 0 10-19-2006 09:43 AM
Apache Reverse Proxy authentication dlublink Linux - Networking 0 12-18-2005 01:38 PM
reverse proxy with apache 2 bootiack Linux - Software 1 08-09-2005 06:47 PM
apache reverse proxy wildbob Linux - Networking 8 10-15-2003 12:16 PM

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration