www-modproxy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@sharp.fm
Subject Re: Proxy
Date Fri, 16 Mar 2001 11:50:14 GMT
hendri janto wrote:

> assume; I have apache proxy sittin on linux (DMZ zone)
> and my web server sitting on the Lan.
>   my proxy
>               l
>               l
>   my server
> assume that the site on the server that is open to the
> proxy is

Looks like you are trying to set up a reverse proxy - the browser
connects to, and that then talks to the real server at, which sends the reply back to the reverse proxy and then to
the browser.

> my httpd.conf of the proxy is as follow;
> <IfModule mod_proxy.c>
>    ProxyRequests On

This turns on the Apache forward proxy, which isn't what you are looking
for. This should be off.

>    LogFormat "%h %l %u %t \"%r\" %>s %b" common
>    CustomLog logs/proxy_log common
>    <Location />
>       Order Deny,Allow
>       deny from all
>    </Location>
This is what is stopping you from seeing your site. Make this "order
allow,deny" and "allow from all"

>    <Directory proxy:*>
>       Order Deny,Allow
>       deny from all
>       Allow from all
>    </Directory>

The above config is for the forward proxy - it shouldn't be there at

> </IfModule>

To get your reverse proxy working you need to add the following lines to
your virtual host configuration on

      ProxyPass /
      ProxyPassReverse /

The first line above passes the requests through to the backend server,
and the second line makes sure that redirects get handled correctly.

minfrin@sharp.fm		"There's a moon
					over Bourbon Street

View raw message