> -----Original Message----- > From: Alessandro Ilardo [mailto:alessandro.ilardo@xxxxxxxxxxxxx] > Sent: Wednesday, November 29, 2006 2:08 PM > To: users@xxxxxxxxxxxxxxxx > Subject: reverseProxy & name based virtual host > > Hello there, > I'm trying to set up my Apache 2 as Reverse proxy. But something is > wrong in the configuration file: > > Listen 80 > ServerName linux_1.primaryDomain.com 1) Use of an underscore in a hostname is a bad idea... see http://tools.ietf.org/rfc/rfc952.txt 2) You don't need a Servername here if your using NBVHs... Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > > <IfModule mod_proxy.c> > ProxyRequests Off > <Proxy *> > Order deny,allow > Allow from all > </Proxy> > ProxyVia On > </IfModule> > > NameVirtualHost *:80 > > # Default Virtual Host > <VirtualHost *:80> > ServerName linux_1.primaryDomain.com > DocumentRoot /var/www/html > </VirtualHost> > # www.secondaryDomain.eu > <VirtualHost *:80> > ServerName www.secondaryDomain.eu > ProxyPreserveHost On > ProxyPass / http://linux_2.primaryDomain.com/secondaryDomainSite > ProxyPassReverse / > http://linux_2.primaryDomain.com/secondaryDomainSite > </VirtualHost> > > If I call linux_1.primaryDomain.com the browser can't connect to the > server, while if I call > www.secondaryDomain.eu I get a 404 error. > As you can see by my comments I'd like to have as default the first > (which doesn't reply at all) and a reverse proxy on an > internal server > (which is not reachable from internet). > Anyone can tell me where I made the mistake? > Thanks in advance for any help. > > --------------------------------------------------------------------- > 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 > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. --------------------------------------------------------------------- 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