VirtualHost Issue (Ubuntu 6.10)

Derek Broughton news at pointerstop.ca
Mon Jan 8 14:23:01 UTC 2007


John R Cichy wrote:

> Try replacing *:80 with host_ip_address:80, this worked for me, but
> others might have a better solution.

Yeah, that rather defeats the purpose of virtual hosts.

>> On Sat, 2007-01-06 at 10:41 -0500, Karl-Heinz Schulz wrote:
>> > I cannot the Virtual host working on this newly set up box .
>> >
>> > Would you mind to get me in the right direction?
>> >
>> >
>> > NameVirtualHost *:80

NameVirtualHost *

>> >
>> > <VirtualHost *>
>> >         ServerAdmin webmaster at localhost
...
>> > </VirtualHost>

I'm not sure if you absolutely need a "ServerName" option there and you
_really_ don't want to use "webmaster at localhost" - that's the address
that's going to show on error pages, so it needs to be reachable by anyone
using that website.
>> >
>> >
>> > <VirtualHost *:80>

<VirtualHost *>

>> >     ServerName www.wienernaschmarkt.eu
>> >     DocumentRoot /var/www/naschmarkt
>> >     ServerAdmin webmaster at wienernaschmarkt.eu
>> > </VirtualHost>
>> >
>> > <VirtualHost *:80>

<VirtualHost *>

>> >     ServerName www.kasimir-schulz.com
>> >     DocumentRoot /usr/share/gallery
>> > </VirtualHost>
>> >
>> > <VirtualHost *:80>

<VirtualHost *>

>> >     ServerName www.khschulz-lab.com
>> >     DocumentRoot /usr/share/gallery
>> > </VirtualHost>
>> >
>> What is apache2 complaining about in the logs? I think it has to do with
>> the *:80, at least mine did not like it

Indeed.  I still can't get mine to stop warning me:

[warn] NameVirtualHost *:0 has no VirtualHosts

but that's a minor annoyance.
-- 
derek





More information about the ubuntu-users mailing list