Host Site Matching

Author Message

Deane Barker

Wednesday 10 November 2004 1:00:46 pm

I have ez 3.4.4 located in a central directory, and I need to be able to map several sites to it. Here is my understanding:

If I do this in /setting/site.ini...

[SiteAccessSettings]
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]=domain1.net;domain1
HostMatchMapItems[]=domain2.net;domain2

Then, inbound requests to domain1.net will look to the file in...

/setting/siteaccess/domain1/site.ini.append.php

...for database connection information and other settings. All settings in that file will override matching settings in /setting/site.ini. Is this right?

Do I need to disable all other match orders? I don't want to use URI or Post -- just domain will be find.

Related to this, how do you initialize a new database? Every other time I've set up ez, I've gone through the wizard. If I used the wizard to set up domain1, and now I need to set up domain2, how do I get the right tables and such in the domain2 database? I have looked for a SQL file, but I haven't found one.

Finally, do the DebugAccess and DebugExtraAccess directives work? I have set them, but I get nothing new on the screen when I attempt to access the site.

Deane

Deane Barker

Wednesday 10 November 2004 1:42:29 pm

Through some hacking and debugging of the access.php file, I found the (a?) problem -- the site is TOTALLY ignoring "settings/site.ini"

For instance, I have this in site.ini:

MatchOrder=host

However, when the access.php code pulls that setting, it gets "uri" as the value. Why would this be?

Deane

Deane Barker

Wednesday 10 November 2004 1:53:17 pm

I've confirmed this. If I hack this into the access.php file...

$order = array('host');
(then, further down...)
$matchMapItems[] = array("domain1.com","domain1");
$matchMapItems[] = array("admin.domain1.com","domain1_admin");
$matchMapItems[] = array("domain2.com","domain2");
$matchMapItems[] = array("admin.domain2.com","domain2_admin");

..then it works exactly as it should. It is not getting these settings from the site.ini file for some reason. Why would this be?

Also, now that I've got it talking to a different database, I still need to figure out how to initialize that database.

Deane

Deane Barker

Wednesday 10 November 2004 2:25:11 pm

Found the database file -- forget that. I'm moving this to a new thread since the core problem has nothing to do with host matching, but instead has to do with the install refusing to read site.ini.

Deane

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 20:47:38
Script start
Timing: Jan 18 2025 20:47:38
Module start 'layout'
Timing: Jan 18 2025 20:47:38
Module start 'content'
Timing: Jan 18 2025 20:47:39
Module end 'content'
Timing: Jan 18 2025 20:47:40
Script end

Main resources:

Total runtime1.2382 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.9141152.6250
Module start 'layout' 0.00720.0028 740.539139.4453
Module start 'content' 0.01011.2267 779.9844487.9844
Module end 'content' 1.23670.0014 1,267.968812.1719
Script end 1.2381  1,280.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2527160.0002
Check MTime0.00130.1090160.0001
Mysql Total
Database connection0.00130.105410.0013
Mysqli_queries1.179795.2803580.0203
Looping result0.00050.0374560.0000
Template Total1.190796.220.5954
Template load0.00250.202820.0013
Template processing1.188295.963220.5941
Template load and register function0.00020.014010.0002
states
state_id_array0.00230.184510.0023
state_identifier_array0.00170.138820.0009
Override
Cache load0.00190.1531320.0001
Sytem overhead
Fetch class attribute can translate value0.00050.042710.0005
Fetch class attribute name0.00130.101050.0003
XML
Image XML parsing0.00340.275610.0034
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00430.3483160.0003
String conversion0.00000.000540.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
4content/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
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs