Hi,

> Here is my config:
> 
> <VirtualHost 192.168.0.1:80>
>     MidgardEngine On
>     ServerName linuxserver
>     ServerAlias localhost
>     ServerAlias linuxserver.all-local.hu
>     Port 80
> ...
> 
> mysql> select * from host; 
> | 17 | linuxserver              |  108 |    29 |      |    11 |   80
> |      1 | /ppteszt2                                    |         2 |
> | 18 | linuxserver              |  108 |    29 |      |    11 | 8001
> |      1 | /ppteszt2                                    |         2 |
> 
> And I cannot connect to the website with the name localhost (or, more
> seriout problem, with the machine's external name either, if I write
> that as a ServerAlias).
> 
> Can I solve it in Virtualhost, or should I insert rows into host table
> with different names pointing to the same page?

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
from the ServerName for Midgard. The other option is indeed adding extra
rows to the host table (or adding a host using nadmin and changing the
rootpage for it).

wkr,

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