Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: reverse proxy with authenticated forward proxy |
|
Author |
|
kendrick.ryan
Joined: 13 Nov 2011 Posts: 1
|
Posted: Sun 13 Nov '11 3:17 Post subject: reverse proxy with authenticated forward proxy |
|
|
I have my dmz box setup with reverse proxy to an internal webserver. I want to have to authenticate for all forward proxy requests, but I have to enter a password for the reverse proxy. I do not want to have to authenticate for the reverse proxy to the internal webserver. What must be modified in this config to achieve this? Thanks.
Code: |
ProxyRequests On
ProxyVia On
<Proxy *>
Order deny,allow
Allow from all
AuthType Basic
AuthName "Login"
AuthUserFile password.file
Require valid-user
</Proxy>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.mydomain.com
ProxyPass / http://www.mydomain.com/
ProxyPassReverse / http://www.mydomain.com/
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
|
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7364 Location: Germany, Next to Hamburg
|
Posted: Fri 18 Nov '11 10:17 Post subject: |
|
|
A solution might be to use 2 vhosts. On for the reverse proxy and the other for the forward proxy. Than the auth stuff can be placed into the forward proxy vhost.
So you may put the whole <Proxy ... block into a vhost. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7364 Location: Germany, Next to Hamburg
|
Posted: Fri 18 Nov '11 10:33 Post subject: |
|
|
Or disable auth with
Code: |
<Location />
Allow from all
Satisfy Any
</Location>
|
|
|
Back to top |
|
|
|
|
|
|