logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: reverse proxy with authenticated forward proxy
Author
kendrick.ryan



Joined: 13 Nov 2011
Posts: 1

PostPosted: Sun 13 Nov '11 3:17    Post subject: reverse proxy with authenticated forward proxy Reply with quote

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: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 18 Nov '11 10:17    Post subject: Reply with quote

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: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 18 Nov '11 10:33    Post subject: Reply with quote

Or disable auth with

Code:

<Location />
 Allow from all
 Satisfy Any
</Location>
Back to top


Reply to topic   Topic: reverse proxy with authenticated forward proxy View previous topic :: View next topic
Post new topic   Forum Index -> Apache