Switching from URI to host matching

Author Message

Felix Laate

Thursday 10 February 2005 12:58:00 am

Hi all!

I have a site which use URI matching.

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=site1
AvailableSiteAccessList[]=pub
MatchOrder=uri
HostMatchMapItems[]

Now I need to change to host.matching (I think), as I need people who type in site1.mydomain.com to get to a different siteaccess than thos who type in site2.mydomain.com. So I tried this:

[SiteAccessSettings]
AvailableSiteAccessList[]=nytt
AvailableSiteAccessList[]=pub
CheckValidity=false
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=site1.mydomain.com;site1
HostMatchMapItems[]=site1.mydomain.com;site2
HostMatchMapItems[]=pub.mydomain.com;pub

But doing this, I get "module not found"-errors. It seems that the system still uses site1/pub in the URL (e.g. http://site1.mydomain.com/site1/news). Taking that part out of the URL (e.g. http://site1.mydomain.com/news) solves the problem.

My question is then: how can I tell ez Publish to do host-matching, but to stop putting the siteaccess-name into the URL?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Jonathan Dillon-Hayes

Thursday 10 February 2005 1:52:51 am

[SiteAccessSettings]
AvailableSiteAccessList[]=nytt
AvailableSiteAccessList[]=pub
CheckValidity=false
ForceVirtualHost=true
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=nytt.com;nytt
HostMatchMapItems[]=pub.nytt.com;nytt_admin

As per the above example, Try adding a:
ForceVirtualHost=true

And make sure you're using fully qualified names. I've seen this done by ips, but it's not quite the right way.

Also, make sure that nothing duplicated, like you don't have two SiteAccessSettings or something similar. This has gotten me before.

Jonathan

---------
FireBright provides advanced eZ deployment with root access
http://www.FireBright.com/

Felix Laate

Thursday 10 February 2005 3:21:50 am

Hi there!

Thnak you for your advice!

>>ForceVirtualHost=true

Didn't do the trick..

>>And make sure you're using fully qualified names. I've seen this done by ips, but it's not quite the right way.

I'm not quite sure what you mean. "site1.mydomain.com" is an example of such one, isn't it?

>>Also, make sure that nothing duplicated, like you don't have two SiteAccessSettings or something similar. This has gotten me before.

Nope.. don't have.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

nigel dodd

Thursday 23 June 2005 10:15:20 am

I have a similar problem. It is reported in the install and configuration forum:

http://ez.no/community/forum/install_configuration/menus_wrong_when_i_change_from_uri_to_host

Is there a solution?

Norman Leutner

Thursday 21 July 2005 2:53:29 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 18 2025 19:32:45
Script start
Timing: Jan 18 2025 19:32:45
Module start 'layout'
Timing: Jan 18 2025 19:32:45
Module start 'content'
Timing: Jan 18 2025 19:32:45
Module end 'content'
Timing: Jan 18 2025 19:32:45
Script end

Main resources:

Total runtime0.8210 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 588.0391152.6406
Module start 'layout' 0.00810.0040 740.679739.4609
Module start 'content' 0.01200.8073 780.1406641.9453
Module end 'content' 0.81930.0016 1,422.085916.1563
Script end 0.8210  1,438.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4610160.0002
Check MTime0.00170.2115160.0001
Mysql Total
Database connection0.00190.235110.0019
Mysqli_queries0.745390.7780670.0111
Looping result0.00070.0903650.0000
Template Total0.785195.620.3926
Template load0.00280.345520.0014
Template processing0.782395.282620.3911
Template load and register function0.00020.029110.0002
states
state_id_array0.00180.219110.0018
state_identifier_array0.00090.105220.0004
Override
Cache load0.00240.2892410.0001
Sytem overhead
Fetch class attribute can translate value0.00070.082840.0002
Fetch class attribute name0.00150.177480.0002
XML
Image XML parsing0.00370.452140.0009
class_abstraction
Instantiating content class attribute0.00000.002090.0000
General
dbfile0.00250.3034290.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs