menus wrong when I change from uri to host

Author Message

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/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.)

Ł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 mode
you 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

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

eZ debug

Timing: Jan 19 2025 06:25:16
Script start
Timing: Jan 19 2025 06:25:16
Module start 'layout'
Timing: Jan 19 2025 06:25:16
Module start 'content'
Timing: Jan 19 2025 06:25:16
Module end 'content'
Timing: Jan 19 2025 06:25:16
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.4063152.6563
Module start 'layout' 0.00530.0034 742.062539.4922
Module start 'content' 0.00880.0065 781.554793.5078
Module end 'content' 0.01530.0020 875.062534.3047
Script end 0.0173  909.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.2539140.0002
Check MTime0.00106.0475140.0001
Mysql Total
Database connection0.00106.048810.0010
Mysqli_queries0.002916.816030.0010
Looping result0.00000.092210.0000
Template Total0.00169.510.0016
Template load0.00105.915410.0010
Template processing0.00063.561110.0006
Override
Cache load0.00084.444410.0008
General
dbfile0.00031.609980.0000
String conversion0.00000.045440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs