httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <uh...@fantomas.sk>
Subject Re: [users@httpd] (again) Can not define "default" name virtual host
Date Tue, 27 Jun 2006 08:22:35 GMT
On 26.06.06 16:45, Pid wrote:
> It maps there because it's the first in the list.

Pardon? My problem is that request for "195.168.3.66" goes to
"default.fantomas.sk" although "195.168.3.66" has its own virtual host.

> If you want a VH to operate under the IP only, put it first.

Pardon? I want one virtual host under "195.168.3.66", one under
"fantomas.fantomas.sk" and default virtual host into which requests for
undefined/unconfigured requests will fall. My problem is described above
(and cocumented below).

It seems that the name defined in <VirtualHost "name"> is also taken to one
of aliases for virtual host, neither `httpd -S` does show it, nor the docs
say so.

I would like to find out why, and how to get the documented behaviour.
(Joshua said he will try to look at it, good)

> >> On 6/26/06, Matus UHLAR - fantomas <uhlar@fantomas.sk> 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.

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

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message