Thursday 23 June 2005 9:38:38 am
I have implemented a single virtual host on Apache. The relevant lines from httpd.conf are
<Directory /opt/lampp/htdocs/ezpublish/ezpublish-3.6.0>
DocumentRoot /opt/lampp/htdocs/ezpublish/ezpublish-3.6.0
ServerName www.mysite.co.uk
ServerAlias admin.mysite.co.uk
(Do I really need two Virtual hosts, one for the user and one for the admin?) I have tried to implement host matching (used to be uri matching) in settings/override/site.ini.append.php: [SiteAccessSettings]
CheckValidity=false
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=www.mysite.co.uk;mysite
HostMatchMapItems[]=admin.mysite.co.uk;mysite_admin
So I should now be able to access the user site from www.mysite.co.uk and the admin site from admin.mysite.co.uk. Well, I can access these sites but the various links or menu items point to the old locations eg www.mysite.co.uk/mysite/bookings instead of www.mysite.co.uk/bookings. What else do I need to alter for this to work? (yes, I have cleared the cashe.)
|