Forums / Install & configuration / menus wrong when I change from uri to host
nigel dodd
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/Exponential/Exponential-3.6.0> DocumentRoot /opt/lampp/htdocs/Exponential/Exponential-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.)
Łukasz Serwatka
Friday 24 June 2005 2:48:38 am
Hi,
Your configuration is missing with mod_rewrite rules or you did not paste it here? Typical global site.ini.append.php configuration looks like:
... [SiteAccessSettings] AvailableSiteAccessList[] AvailableSiteAccessList[]=example AvailableSiteAccessList[]=example_admin MatchOrder=host HostMatchMapItems[]=www.example.com;example HostMatchMapItems[]=admin.example.com;example_admin ...
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Norman Leutner
Thursday 21 July 2005 2:53:12 am
I also changed with one site and had the same problem.
After you switched from uri to host modeyou have to clear all caches by deleting all contents within the var/siteaccess/cache dir.
That should fix your problem.
Mit freundlichen Grüßen Best regards Norman Leutner ____________________________________________________________ eZ Publish Platinum Partner - http://www.all2e.com http://ez.no/partners/worldwide_partners/all2e_gmbh