Hi,
Matus UHLAR - fantomas wrote:
> On 26.06.06 11:54, Joshua Slive wrote:
>>> LogFormat "%{%s}t %v %V %{Host}o %{Host}i %a %h %>s %b %T %u \"%U\"
>>> \"%{Referer}i\" \"%{User-Agent}i\"" testing
>>>
>>> 1151335141 default.fantomas.sk default.fantomas.sk - default.fantomas.sk
>>> 195.168.3.66 fantomas.fantomas.sk 200 20 4 - "/" "-" "-"
>>> 1151335149 default.fantomas.sk 195.168.3.66 - 195.168.3.66 195.168.3.66
>>> fantomas.fantomas.sk 200 20 4 - "/" "-" "-"
>>> 1151335157 fantomas.fantomas.sk fantomas.fantomas.sk -
>>> fantomas.fantomas.sk 195.168.3.66 fantomas.fantomas.sk 200 21 5 - "/" "-"
>>> "-"
>>>
>>> so, with the above configuration, requesting of 195.168.3.66 maps to
>>> "default.fantomas.sk" virtual host...
>> Ok. I can partially replicate this on my local server. I don't know
>> exactly what is going on. I'll try to look again later if I have
>> time, but you might want to file a bug report. At minimum, it doesn't
>> seem to match what the documentation says.
>
> Filled up as bug 39910. Thank you very much.
I don't understand what the problem is here. I've tested the
configuration suggested and it works fine (OK, I had to change the IP
address to match my setup):
<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>
You have made sure you've got a NameVirtualHost 195.168.3.66:80 set?
When not supplying a 'Host:' header or supplying the IP address in the
'Host:' header then Apache responds using the first virtual server but
if the name 'default.fantomas.sk' is used then the second one is used.
This is detailed at:
http://httpd.apache.org/docs/2.0/vhosts/name-based.html
and
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
HTH,
Neil.
--
Neil Hillard [EMAIL PROTECTED]
Westland Helicopters Ltd. http://www.whl.co.uk/
Disclaimer: This message does not necessarily reflect the
views of Westland Helicopters Ltd.
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]