Author Topic

Bjørn Kaarstein

Wednesday 06 August 2003 4:43:27 am

Comment13111

This is how my sites are set up as virtualhosts in httpd.conf:
They work fine.

Do you have any other functional domains running here aswell? There could be problems elsewhere in the httpd.conf file...

<Virtualhost * >
<Directory /EZsites/mysite>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|js)$ /EZsites/mysite/index.php

ServerAdmin root@localhost
DocumentRoot /EZsites/mysite
ServerName www.mysite.no
</VirtualHost>

<Virtualhost * >
<Directory /EZsites/mysite>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|js)$ /EZsites/mysite/index.php

ServerAdmin root@localhost
DocumentRoot /EZsites/mysite
ServerName admin.mysite.no
</VirtualHost>

Also, in site.ini.append.php I have

[SiteAccessSettings]
CheckValidity=false
MatchOrder=host
HostMatchMapItems[]=mysite.no;mysite
HostMatchMapItems[]=mysite.no;admin

Don't know if this helps you out, but it's working for me.

Regards Bjørn