On Tue, 4 Sep 2001, Ferenc Engard wrote:

> [EMAIL PROTECTED] wrote:
> > 
> > On Tue, 4 Sep 2001, Ferenc Engard wrote:
> > 
> > > [EMAIL PROTECTED] wrote:
> > > > You can solve it by setting 'UseCanonicalName On' in httpd.conf (outside
> > > > the virtualhost section). Any request to an alias will appear to be coming
> > >
> > > It is set On.
> > 
> > That's odd. What do the logfiles report when you access localhost?
> 
> This is for linuxserver:
> 
> 192.168.0.1 - - [04/Sep/2001:15:38:00 +0200] "GET /ppteszt2/ HTTP/1.0"
> 200 12251 "-" "Lynx/2.8.3rel.1 libwww-FM/2.14"
> 
> This is for localhost:
> 
> 127.0.0.1 - - [04/Sep/2001:15:38:07 +0200] "GET /ppteszt2/ HTTP/1.0" 404
> 284 "-" "Lynx/2.8.3rel.1 libwww-FM/2.14"
> 
> Nothing else.

Ah, of course. the virtualhost only reacts to request to 192.168.0.1, so
the localhost request (to 127.0.0.1) will not be served by that
virtualhost entry. Same could be for the external name, if that does not
resolv to 192.168.0.1. Make extra virtual host entries for each IP you'd
want the host to listen to.

-- 
Envida                     http://www.envida.net/
Armand A. Verstappen       Graadt van Roggenweg 328
[EMAIL PROTECTED]       3531 AH Utrecht
tel: +31 (0)30 298 2255    Postbus 19127
fax: +31 (0)30 298 2111    3501 DC Utrecht



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to