virtualhost problems

virtualhost problems

Wednesday 06 August 2003 3:29:51 am - 1 reply

Modified on Wednesday 06 August 2003 3:30:57 am by Ben Pirt

Author Message

Bjørn Kaarstein

Wednesday 06 August 2003 4:43:27 am

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.