Anonymous users and multi-site setup

Author Message

Marc Boon

Monday 23 January 2006 6:02:50 am

If you have multiple sites sharing the same database, how do you prevent anonymous users (ie. the internet audience) to access nodes from one of the other sites using system urls like content/view/full? I thought of using different sections for each site, but you want all users to have access to each sites, but not to access nodes belonging to domainA from domainB. How to arange this, if you want to share (some) content among the different sites, and use a single ez publish installation?
Does anybody have experience with multi-site setups that share the same database and ez publish installation? It's supposed to be a featue of ez publish, but it's not really documented anywhere.

Kristof Coomans

Monday 23 January 2006 11:03:34 pm

I'm not sure of this as I didn't try this myself, but maybe you can set different anonymous users for the different site accesses.

In site.ini.append of your siteaccess:

[UserSettings]
AnonymousUserID=10

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 10:01:03
Script start
Timing: Jan 19 2025 10:01:03
Module start 'layout'
Timing: Jan 19 2025 10:01:03
Module start 'content'
Timing: Jan 19 2025 10:01:03
Module end 'content'
Timing: Jan 19 2025 10:01:03
Script end

Main resources:

Total runtime0.0180 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.0049 589.2734152.6406
Module start 'layout' 0.00500.0037 741.914139.4766
Module start 'content' 0.00860.0072 781.390689.4609
Module end 'content' 0.01580.0021 870.851630.3047
Script end 0.0179  901.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.6628140.0002
Check MTime0.00116.2062140.0001
Mysql Total
Database connection0.00063.609610.0006
Mysqli_queries0.002915.957030.0010
Looping result0.00000.139210.0000
Template Total0.00179.210.0017
Template load0.00095.178410.0009
Template processing0.00073.988910.0007
Override
Cache load0.00073.670610.0007
General
dbfile0.00179.490980.0002
String conversion0.00000.050440.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