RE: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-07-11 Thread Boyle Owen
> -Original Message- > From: Matus UHLAR - fantomas [mailto:[EMAIL PROTECTED] > > > > This is intended for some reason or another. In the source, the > > name is searched first (in order of appearance in conf > > file) and returns a match before ServerName/Alias is even tried. I would

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-07-11 Thread Matus UHLAR - fantomas
> >On 27.06.06 14:31, Neil A. Hillard wrote: > >> No, the VirtualHost entry tells Apache _where to listen_ for the request > >> and nothing else. > On 6/27/06, Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: > >That is, what docs says and how I understand it. On 29.06.06 18:04, Brian Rectanus w

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-29 Thread Brian Rectanus
On 6/27/06, Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: > > > > Now when a request arrives, the server will first check if it is using an IP > > address that matches the NameVirtualHost. If it is, then it will look at > > each section with a matching IP address and try to find one > >

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Matus UHLAR - fantomas
> > > > Now when a request arrives, the server will first check if it is using an IP > > address that matches the NameVirtualHost. If it is, then it will look at > > each section with a matching IP address and try to find one > > ^^^ > > where the

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Matus UHLAR - fantomas
> > > > Now when a request arrives, the server will first check if it is using an IP > > address that matches the NameVirtualHost. If it is, then it will look at > > each section with a matching IP address and try to find one > > ^^^ > > where the

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Joshua Slive
On 6/27/06, Neil A. Hillard <[EMAIL PROTECTED]> wrote: You are trying to do something that Apache is not designed for. You want: 195.168.3.66 -> /home/webs/195.168.3.66 fantomas.fantomas.sk -> /home/webs/fantomas.fantomas.sk -> /home/webs/default.fantomas.sk You can't do that. Yo

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Neil A. Hillard
Hi, Matus UHLAR - fantomas wrote: > On 27.06.06 13:30, Neil A. Hillard wrote: >> 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): >> >> >> ServerName 195.168.3.66 >> DocumentRoot

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Pid
Matus UHLAR - fantomas wrote: > On 27.06.06 13:30, Neil A. Hillard wrote: >> 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): >> >> >> ServerName 195.168.3.66 >> DocumentRoot /h

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Matus UHLAR - fantomas
On 27.06.06 13:25, Pid wrote: > The documentation says: > > "ServerName fully-qualified-domain-name[:port]" > > so you might be falling at the first hurdle, because you're not > specifying a FQDN. > > Also: > > "If no ServerName is specified, then the server attempts to deduce the > hostname by

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Matus UHLAR - fantomas
On 27.06.06 13:30, Neil A. Hillard wrote: > 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): > > > ServerName 195.168.3.66 > DocumentRoot /home/webs/195.168.3.66 > > > > Server

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Pid
Neil A. Hillard wrote: > Hi, > 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

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Neil A. Hillard
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 fan

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Pid
Matus UHLAR - fantomas wrote: >> Your problem here is that the ServerName requires a fully-qualified >> domain name, rather than an IP address. > > I think that ServerName could contain anything that users may request in the > Host: header ;-) Yes, I'd gathered that you think it ought to do som

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Matus UHLAR - fantomas
> > 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... On 27.06.06 13:06, Pid wrote: > So you want to return default.fantomas.sk in all cases where the IP

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Pid
Matus UHLAR - fantomas wrote: >>> afaik the server does not resolve IP's to hosts here (do you have other >>> informations?) >> >> >> ServerName 195.168.3.66 >> DocumentRoot /home/webs/195.168.3.66 >> >> >> >> ServerName default.fantomas.sk >> DocumentRoot /home/webs/default.fantomas.sk >> >

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Matus UHLAR - fantomas
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 - "/" "-" "-"

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Matus UHLAR - fantomas
> > afaik the server does not resolve IP's to hosts here (do you have other > > informations?) On 27.06.06 10:22, Pid wrote: > I didn't say anything about *DNS* resolution. Aha, sorry. I understand what you've meant. > > requests for "195.168.3.66" should go to virtualhost "195.168.3.66" if they

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Pid
Matus UHLAR - fantomas wrote: > On 27.06.06 09:34, Pid wrote: >> Matus UHLAR - fantomas wrote: >>> 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.6

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Matus UHLAR - fantomas
On 27.06.06 09:34, Pid wrote: > Matus UHLAR - fantomas wrote: > > 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. >

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Pid
Matus UHLAR - fantomas wrote: > 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. Yes, I was quite clear on that and I thi

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-27 Thread Matus UHLAR - fantomas
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 on

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-26 Thread Joshua Slive
On 6/26/06, Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: I think you've meant %{Host}i, but I added both: Yes. 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

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-26 Thread Pid
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 <[EMAIL PROTECTED]> wrote: >>> this is my current configuration of apache (debian: 1.3.33-6sarge1): >>> >>> NameVirtual

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-26 Thread Matus UHLAR - fantomas
> On 6/26/06, Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: > >this is my current configuration of apache (debian: 1.3.33-6sarge1): > > > >NameVirtualHost 195.168.3.66:80 > > > > > >ServerName default.fantomas.sk > >DocumentRoot /home/webs/default.fantomas.sk > > > > > > > >ServerName fantomas.

Re: [EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-26 Thread Joshua Slive
On 6/26/06, Matus UHLAR - fantomas <[EMAIL PROTECTED]> wrote: Hello, this is my current configuration of apache (debian: 1.3.33-6sarge1): NameVirtualHost 195.168.3.66:80 ServerName default.fantomas.sk DocumentRoot /home/webs/default.fantomas.sk ServerName fantomas.fantomas.sk DocumentRoot

[EMAIL PROTECTED] (again) Can not define "default" name virtual host

2006-06-25 Thread Matus UHLAR - fantomas
Hello, this is my current configuration of apache (debian: 1.3.33-6sarge1): NameVirtualHost 195.168.3.66:80 ServerName default.fantomas.sk DocumentRoot /home/webs/default.fantomas.sk ServerName fantomas.fantomas.sk DocumentRoot /home/webs/fantomas.fantomas.sk ServerName 195.168.3.66 Docum