Re: reverse proxy - transfer whole domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/24/06, Alessandro Ilardo <alessandro.ilardo@xxxxxxxxxxxxx> wrote:
Hello there,

I'm trying to set up Apache 2 as reverse proxy.
The scenario should be:

   * a public Apache2 on server_1 which receives all request of
     www.domainX.cxm and works as reverse proxy
   * a private Apache2 which actually serves www.domainX.cxm contents

All the examples on the web show a configuration like:
 /foo  http://server_2:8080/foo

As on my server_1 I configured several domains, how can I make the whole
traffic for www.domainX.cxm be transfered to server_2 ??

You simply use
ProxyPass / http://server_2/domain_x-content/
ProxyPassReverse / http://server_2/domain_x-content/

If the proxy is serving more than one host, do the same thing inside a
<VirtualHost *:80> section with the appropriate ServerName.

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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux