Re: Virtual hosts + proxy

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

 



On Fri, Mar 27, 2009 at 3:09 PM, Ignacio Avellino
<iavellino@xxxxxxxxxxxxxxxxxxx> wrote:
> Biran!
> Thanks a million for the response
>
>> Think you need:
>>
>> NameVirtualHost *
>
> I have:
> NameVirtualHost *:80
> on httpd.conf
>
> If I change it to
> NameVirtualHost *
>
> when I start httpd I get:
>
> Starting httpd: [Fri Mar 27 16:01:40 2009] [error] VirtualHost *:80 --
> mixing * ports and non-* ports with a NameVirtualHost address is not
> supported, proceeding with undefined results
> [Fri Mar 27 16:01:40 2009] [error] VirtualHost *:80 -- mixing * ports and
> non-* ports with a NameVirtualHost address is not supported, proceeding
> with undefined results
> [Fri Mar 27 16:01:40 2009] [error] VirtualHost *:80 -- mixing * ports and
> non-* ports with a NameVirtualHost address is not supported, proceeding
> with undefined results
> [Fri Mar 27 16:01:40 2009] [error] VirtualHost *:80 -- mixing * ports and
> non-* ports with a NameVirtualHost address is not supported, proceeding
> with undefined results
> [Fri Mar 27 16:01:40 2009] [error] VirtualHost *:80 -- mixing * ports and
> non-* ports with a NameVirtualHost address is not supported, proceeding
> with undefined results
>                                                           [  OK  ]
>
> My 4 VirtualHost are:
>
> <VirtualHost *:80>
>    DocumentRoot "/var/www/html"
>    ServerName colonizaciontest.com.uy
>    ServerAlias www.colonizaciontest.com.uy
> </VirtualHost>
>
> <VirtualHost *:80>
>        ServerName mail.colonizaciontest.com.uy
>        ProxyRequests Off
>        ProxyPreserveHost On
>        LogLevel debug
>        ProxyPass /opt/zimbra/httpd-2.2.8/htdocs/
> http://mail.colonizaciontest.com.uy/
>        ProxyPassReverse /opt/zimbra/httpd-2.2.8/htdocs/ http://192.168.100.5/
> </VirtualHost>
>
> <VirtualHost *:80>
>    DocumentRoot "/var/www/html/mantis"
>    ServerName mantis.colonizaciontest.com.uy
>    ServerAlias www.mantis.colonizaciontest.com.uy
> </VirtualHost>
>
> <VirtualHost *:80>
>    DocumentRoot "/var/www/html/mediawiki"
>    ServerName mediawiki.colonizaciontest.com.uy
>    ServerAlias www.mediawiki.colonizaciontest.com.uy
> </VirtualHost>
>
>
> If I change the directive from <VirtualHost *:80> to <VirtualHost *:*> en
> every VirtualHost, I get the same error ...
> And the page is still not working
>
> What do you suggest?
> Just in case it helps, what I'm trying to do is to expose 4 web pages, and
> one is on a different physical host. So all the requests go to
> 192.168.100.5 (our router forwards the request to this server) and then
> mantis, www, mediawiki get served locally, and mail gets forwarded to
> 192.168.100.6
>
> thanks tons again!!!


My first suggestion is comment out the proxy stuff for now, and just
see if you can get vhosts working in general. You can test this by
giving the vhosts a different DocumentRoot from the main server, and
you'll know it's working based on what DocumentRoot is being served.

If your Vhosts work, then it's a proxy config problem and I'm
definitely not the person to help you with that. But if it is a vhost
problem, what version of apache are you running? I haven't tried it
myself, but the doc specifically that 'NameVirtualHost *' is valid in
2.2, so maybe that's a new feature that you don't have available.

But anyway, you didn't mention the NameVirtualHost directive in the
first round, so I assumed that was the problem, but if you already had
it in there and it matched what you have for the VirtualHost tags,
then it may not be a Vhost problem.

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