Forums / Setup & design / Switching from URI to host matching

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

eZ debug

Timing: Jan 18 2025 16:12:52
Script start
Timing: Jan 18 2025 16:12:52
Module start 'content'
Timing: Jan 18 2025 16:12:52
Module end 'content'
Timing: Jan 18 2025 16:12:52
Script end

Main resources:

Total runtime0.1850 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.9453180.8281
Module start 'content' 0.00660.0047 769.773498.0078
Module end 'content' 0.01130.1736 867.7813526.8281
Script end 0.1849  1,394.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.8766200.0002
Check MTime0.00150.7983200.0001
Mysql Total
Database connection0.00080.415210.0008
Mysqli_queries0.141076.25101410.0010
Looping result0.00160.84231390.0000
Template Total0.173393.710.1733
Template load0.00080.412410.0008
Template processing0.172693.296510.1726
Override
Cache load0.00050.267110.0005
Sytem overhead
Fetch class attribute can translate value0.00160.860610.0016
XML
Image XML parsing0.00040.239510.0004
General
dbfile0.00150.7960200.0001
String conversion0.00000.004330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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