LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-23-2008, 04:15 PM   #1
jonfa
Member
 
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
</Directory>


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


Reply


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 12:06 AM.

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