httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Mearns <mearn...@gmail.com>
Subject Re: [users@httpd] Virtual hosts + proxy
Date Fri, 27 Mar 2009 18:46:07 GMT
On Fri, Mar 27, 2009 at 2:08 PM, Ignacio Avellino
<iavellino@colonizacion.com.uy> 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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message