Multi site installation without inter site accessibility

Author Message

Juan Asencio

Wednesday 19 May 2010 5:03:08 am

Hi everybody,

I have a multisite installation using the same database on ez 4.3 and I have 5 different siteaccess which should be independent from each other for the visitor.

But, if I write http://siteaccess1.com/siteaccess2 I am able to see the content of siteaccess2 on the design sitestyle of siteaccess1.

I don't want this to happen, how to restrict the access from one siteaccess into the other?

Cheers,

André R.

Wednesday 19 May 2010 11:59:16 am

Probably related to this: http://issues.ez.no/IssueView.php?Id=16831&

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Paul Leclercq

Thursday 20 May 2010 3:04:47 am

Hello Juan,

Have you been using the following settings in your override site.ini:

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=siteaccess1
AvailableSiteAccessList[]=siteaccess2
AvailableSiteAccessList[]=admin_siteaccess
MatchOrder=host
HostMatchMapItems[]=
HostMatchMapItems[]=siteaccess1.com;siteaccess1
HostMatchMapItems[]=siteaccess2.com;siteaccess2
HostMatchMapItems[]=admin_siteaccess.com;admin_siteaccess

The next step to setup multiple sites:

is to make sure that in the site.ini.append.php of each siteaccess you have the following settings:

[SiteSettings]
RootNodeDepth=2
DefaultPage=/content/view/full/242 <- put here the node_id of the root of your siteaccess
IndexPage=/content/view/full/242

[SiteAccessSettings]
PathPrefix=siteaccess1 <- the name of the root folder you wish to remove from your url

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 11:41:39
Script start
Timing: Jan 18 2025 11:41:39
Module start 'layout'
Timing: Jan 18 2025 11:41:39
Module start 'content'
Timing: Jan 18 2025 11:41:39
Module end 'content'
Timing: Jan 18 2025 11:41:39
Script end

Main resources:

Total runtime0.0160 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 588.2109152.6563
Module start 'layout' 0.00540.0030 740.867239.4922
Module start 'content' 0.00840.0053 780.359489.5234
Module end 'content' 0.01370.0022 869.882834.3047
Script end 0.0159  904.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002917.9767140.0002
Check MTime0.00127.4496140.0001
Mysql Total
Database connection0.00095.342710.0009
Mysqli_queries0.002414.966430.0008
Looping result0.00000.068710.0000
Template Total0.001811.310.0018
Template load0.00106.138610.0010
Template processing0.00085.085910.0008
Override
Cache load0.00063.964510.0006
General
dbfile0.00021.506680.0000
String conversion0.00000.037340.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