Re: [users@httpd] (again) Can not define "default" name virtual host

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

 




Matus UHLAR - fantomas wrote:
>>> afaik the server does not resolve IP's to hosts here (do you have other
>>> informations?)
>>
>> <VirtualHost 195.168.3.66:80>
>> ServerName 195.168.3.66
>> DocumentRoot /home/webs/195.168.3.66
>> </VirtualHost>
>>
>> <VirtualHost 195.168.3.66:80>
>> ServerName default.fantomas.sk
>> DocumentRoot /home/webs/default.fantomas.sk
>> </VirtualHost>
> 
> In this case, no requests will reach "default.fantomas.sk" (this name does
> not exist) because 195.168.3.66 will be default host. And the thing is I
> want to differentiate between those...

So you want to return default.fantomas.sk in all cases where the IP
address or another ServerName is not defined?

Your problem here is that the ServerName requires a fully-qualified
domain name, rather than an IP address.  It serves the default host when
it can't decide which to pick, this would include an IP address.

I don't think there's a bug, or even an undocumented behaviour.

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