It maps there because it's the first in the list. If you want a VH to operate under the IP only, put it first. Matus UHLAR - fantomas wrote: >> On 6/26/06, Matus UHLAR - fantomas <uhlar@xxxxxxxxxxx> wrote: >>> this is my current configuration of apache (debian: 1.3.33-6sarge1): >>> >>> NameVirtualHost 195.168.3.66:80 >>> >>> <VirtualHost 195.168.3.66:80> >>> ServerName default.fantomas.sk >>> DocumentRoot /home/webs/default.fantomas.sk >>> </VirtualHost> >>> >>> <VirtualHost 195.168.3.66:80> >>> ServerName fantomas.fantomas.sk >>> DocumentRoot /home/webs/fantomas.fantomas.sk >>> </VirtualHost> >>> >>> <VirtualHost 195.168.3.66:80> >>> ServerName 195.168.3.66 >>> DocumentRoot /home/webs/195.168.3.66 >>> </VirtualHost> >>> >>> However, with this configuration I was not able to reach virtual host >>> 195.168.3.66. It seems that apache accepts name defined in >>> <VirtualHost [NAME]> as one of hames for name virtual host - >>> when I switched to <VirtualHost fantomas.fantomas.sk>, I couldn't reach >>> virtual host for fantomas.fantomas.sk. >>> >>> I can not simply use <VirtualHost *> because of different virtual servers >>> running at different IP addresses. Also, at other sites I'm configuring >>> apache from databases that contain server-IP pairs, configuring given >>> server >>> at given IP, and exporting this configuration to DNS. >>> >>> Can anyone confirm this behaviour? Can anyone explain to my, why was >>> name-based virtual hosting made this way? > > On 26.06.06 09:49, Joshua Slive wrote: >> I'm fairly sure you are incorrect in your interpretation, although >> there is no way I'm going to load up a 1.3 server to test with. >> >> To see what is really going on, add %{Host}o and %v to your LogFormat >> to see what apache is seeing and how it is interpreting it. > > I think you've meant %{Host}i, but I added both: > > 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... > --------------------------------------------------------------------- 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