Hi,

On Thu, 2003-04-03 at 23:35, Todd Underwood wrote:
> > I would bet that the name it is looking up is not matching what is in
> > your host config.  If you have IPs in there, you must access the site by
> > IP.
> 
> i think you've got it!  how odd that i should access it by IP address but 
> the lookup is by name:
> 
>                       1 Query       SELECT 
> id,style,root,info&1,Length(prefix),s
> itegroup FROM host WHERE name='docforge.org' AND port IN (0,80) AND 
> prefix=Left(
> '/asgard',Length(prefix)) AND 
> IF(7>=Length(prefix),MID('/asgard',1+Length(prefix
> ),1) IN ('','/'),0)=1 AND online=1 ORDER BY prefix DESC, port DESC
> 
> 
> i'm going to try doing:
> 
> update host set name='docforge.org',port=80;
> 
> and, indeed, now it asks me for a username and password.  presumably 
> that's something i've forgotten elsewhere in the install
> 
> thanks so much for helping me troubleshoot this.

This means you have 'UseCanonicalName On' somewhere in your apache
config.

if:
<VirtualHost: 10.0.0.1>
  ServerName www.example.com
  ServerAlias othername.example.com
  UseCanonicalName On
  ...
</VirtualHost>

Then apache will report a request you typed as http://10.0.0.1/
or othername.example.com as http://www.example.com/ to mod_midgard.

if:
<VirtualHost: 10.0.0.2>
  ServerName www.example.com
  ServerAlias othername.example.com
  UseCanonicalName Off
  ...
</VirtualHost>

Then apache will report your requests as you typed them. When used with
midgard, this difference can be surprising. It is very powerfull at the 
same time, for instance when used in combination with the mass virtual
hosting module.

Just to clarify,

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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to