You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by kibbles * <je...@hotmail.com> on 2003/04/24 19:05:56 UTC

[users@httpd] Virtual Proxys...

Okay guys and gals...

I need a hand with proxy settings on my Apache 2 server.
I have the latest release of Apache2 on an OpenBSD 3.2 box.

It is compiled with the proxy shared modules and everything
seems to run smoothly with SSL and all that ... hee hee

Anyways... to the point I have an ADSL modem which is a built in
router/ethernet and places the Apache Web Server on a DMZ,
[ server one :: 192.168.0.200 ] (which makes the server open
to all forms of attacks I understand this), but I have a
second server [ server two :: 192.168.0.230 ] which I want the
headers and the request responses forwarded and basically
proxy through to this second server.

I haven't seen too much documentation on this, or even if it is
possible? Can anyone point me in the right direction. I've included
a section of the virtual hosting proxy config with the email...


Thanks in advance :)

kibbles

####[router.internalserver.com]####
<VirtualHost 192.168.0.200>
  ServerAdmin kibble@internalserver.com
  ServerName router.internalserver.com
  ServerAlias router.internalserver.com *.router.internalserver.com
  ProxyRemote * http://192.168.0.230:82/
  SuexecUserGroup kibble kibble

  <Proxy *>
    ProxyPass http://192.168.0.230:82/
    ProxyPassReverse http://192.168.0.230:82/
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
  </Proxy>

</VirtualHost>



_________________________________________________________________
Hotmail messages direct to your mobile phone http://www.msn.co.uk/mobile

Re: [users@httpd] Virtual Proxys...

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 24 Apr 2003, kibbles * wrote:
>
> ####[router.internalserver.com]####
> <VirtualHost 192.168.0.200>
>   ServerAdmin kibble@internalserver.com
>   ServerName router.internalserver.com
>   ServerAlias router.internalserver.com *.router.internalserver.com
>   ProxyRemote * http://192.168.0.230:82/
>   SuexecUserGroup kibble kibble
>
>   <Proxy *>
>     ProxyPass http://192.168.0.230:82/
>     ProxyPassReverse http://192.168.0.230:82/
>     AllowOverride None
>     Options None
>     Order allow,deny
>     Allow from all
>   </Proxy>
>
> </VirtualHost>

The ProxyRemote directive should be removed.  It is used to send requests
to another PROXY SERVER.  Whereas you are sending requests to an origin
server.

The ProxyPass and ProxyPassReverse directives should be taken out of the
<Proxy> block, since they take a regular request and convert it to a
proxy.  <Proxy> applies only to proxy requests themselves.

Also, ProxyPass and ProxyPassReverse take two arguments.  The first should
probably be "/" in this case in order to send all requests over to the
other server.

Finally, I highly recommend you read the docs for each of these
directives.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Virtual Proxys...

Posted by Jeff Cohen <su...@gej-it.com>.
Do as follows:

<VirtualHost 192.168.0.200>
  ServerAdmin kibble@internalserver.com
  ServerName router.internalserver.com
  ServerAlias router.internalserver.com *.router.internalserver.com
  ProxyPass / http://192.168.0.230:82/
  ProxyPassReverse / http://192.168.0.230:82/
  SuexecUserGroup kibble kibble
</VirtualHost>

And you are on it.
Of course that you must access the server with http://192.168.0.200:82

All the best,
Jeff Cohen
> -----Original Message-----
> From: kibbles * [mailto:jelly_bean_junky@hotmail.com]
> Sent: Thursday, April 24, 2003 1:06 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Virtual Proxys...
> 
> 
> Okay guys and gals...
> 
> I need a hand with proxy settings on my Apache 2 server.
> I have the latest release of Apache2 on an OpenBSD 3.2 box.
> 
> It is compiled with the proxy shared modules and everything
> seems to run smoothly with SSL and all that ... hee hee
> 
> Anyways... to the point I have an ADSL modem which is a built in
> router/ethernet and places the Apache Web Server on a DMZ,
> [ server one :: 192.168.0.200 ] (which makes the server open
> to all forms of attacks I understand this), but I have a
> second server [ server two :: 192.168.0.230 ] which I want the
> headers and the request responses forwarded and basically
> proxy through to this second server.
> 
> I haven't seen too much documentation on this, or even if it is
> possible? Can anyone point me in the right direction. I've included
> a section of the virtual hosting proxy config with the email...
> 
> 
> Thanks in advance :)
> 
> kibbles
> 
> ####[router.internalserver.com]####
> <VirtualHost 192.168.0.200>
>   ServerAdmin kibble@internalserver.com
>   ServerName router.internalserver.com
>   ServerAlias router.internalserver.com *.router.internalserver.com
>   ProxyRemote * http://192.168.0.230:82/
>   SuexecUserGroup kibble kibble
> 
>   <Proxy *>
>     ProxyPass http://192.168.0.230:82/
>     ProxyPassReverse http://192.168.0.230:82/
>     AllowOverride None
>     Options None
>     Order allow,deny
>     Allow from all
>   </Proxy>
> 
> </VirtualHost>
> 
> 
> 
> _________________________________________________________________
> Hotmail messages direct to your mobile phone http://www.msn.co.uk/mobile


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org