hello: i have centos 4.0 whits apache httpd-2.0.52-22.ent.centos4, this is configured like a reverse proxy, but i have a problem only the first site name on the httpd.conf work when i do a peticion from internet for all the rest servers only respond the firts. <VirtualHost *> ServerName dir_ip ProxyPass / http://ejemplo1.test.com/ ProxyPassReverse / http://ejemplo1.test.com/ </VirtualHost> <VirtualHost *> ServerName dir_ip2 ProxyPass / http://ejemplo2.test.com/ ProxyPassReverse / http://ejemplo2.test.com/ </VirtualHost> <VirtualHost *> ServerName dir_ip3 ProxyPass / http://ejemplo3.test.com/ ProxyPassReverse / http://ejemplo3.test.com/ </VirtualHost> DNS is fine becouse from internet all peticion coming to the apache server, but this dont forwarding the second petition. I need one escenario like this /---------\ /------------\ | Web | --------- | Router | \---------/ \------------/ | | /-------------\ |Apache Server| \-------------/ 10.0.0.1 | | Server's /------------------------------------------\ | | | /----------\ /----------\ /----------\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | \----------/ \----------/ \----------/ domain1.com domain2.com domain3.com 10.0.0.2 10.0.0.3 10.0.0.4 --------------------------------- LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y m?viles desde 1 c?ntimo por minuto. http://es.voice.yahoo.com --------------------------------- LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y m?viles desde 1 c?ntimo por minuto. http://es.voice.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20060415/1c50a5b4/attachment-0001.html>
On Sat, 2006-04-15 at 11:39, joseph medina wrote:> hello: > i have centos 4.0 whits apache httpd-2.0.52-22.ent.centos4, this is > configured like a reverse proxy, but i have a problem only the first > site name on the httpd.conf work when i do a peticion from internet > for all the rest servers only respond the firts. > > <VirtualHost *> > ServerName dir_ip > ProxyPass / http://ejemplo1.test.com/ > ProxyPassReverse / http://ejemplo1.test.com/ > </VirtualHost> > > <VirtualHost *> > ServerName dir_ip2 > ProxyPass / http://ejemplo2.test.com/ > ProxyPassReverse / http://ejemplo2.test.com/ > </VirtualHost>The 'ServerName' entry must match exactly what you put as the hostname in the browser. If you need more (like with/without the full domain), add them in a ServerAliases entry. If you don't have an exact match you get the first/default vhost. -- Les Mikesell lesmikesell at gmail.com