Re: Virtual hosts + proxy

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

 



On Fri, Mar 27, 2009 at 2:08 PM, Ignacio Avellino
<iavellino@xxxxxxxxxxxxxxxxxxx> wrote:
> Hello apachers!
> I have a question, that I have researched extensively on the web, without
> getting to work what I want.
> Basically, we have different web pages on different hosts on my
> Institution.
> Since we have only one public IP, all the requests that get on port 80 are
> forwarded to our main server (192.168.100.5) and we would like for that
> server to redirect or proxy the request to other servers that serve other
> pages. (for example, xxx.mydomain.com is on 192.168.100.5, but
> mail.mydomain.com is on 192.168.100.6)
>
> As I have red, to do this I have to create a virtual host on 192.168.100.5
> to proxy to 192.168.100.6 when the request is for mail.mydomain.com.
> The virtual host I have created is:
> <VirtualHost *:*>
>        ServerName mail.mydomain.com
>        ProxyRequests Off
>        ProxyPreserveHost On
>        ProxyPass /opt/zimbra/httpd-2.2.8/htdocs/ http://192.168.100.5
>        ProxyPassReverse /opt/zimbra/httpd-2.2.8/htdocs/ http://192.168.100.5
> </VirtualHost>
>
> But requests to mail.mydomain.com get answered by 192.168.100.5 showing the
> default page ..
> What am I doming wrong??
>
> Thanks in advanced...
> Ignacio Avellino
>
>

Think you need:

NameVirtualHost *

See: http://httpd.apache.org/docs/2.2/mod/core.html#namevirtualhost

-Brian


-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://pgp.mit.edu/

---------------------------------------------------------------------
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