Forums / Install & configuration / Host Site Matching

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

eZ debug

Timing: Jan 31 2025 03:29:22
Script start
Timing: Jan 31 2025 03:29:22
Module start 'content'
Timing: Jan 31 2025 03:29:22
Module end 'content'
Timing: Jan 31 2025 03:29:22
Script end

Main resources:

Total runtime0.3237 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.9297370.2969
Module start 'content' 0.00770.0207 958.22661,005.5625
Module end 'content' 0.02840.2952 1,963.78913,894.6641
Script end 0.3236  5,858.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00461.4279200.0002
Check MTime0.00150.4631200.0001
Mysql Total
Database connection0.00070.228310.0007
Mysqli_queries0.194259.98871410.0014
Looping result0.00160.48461390.0000
Template Total0.294891.110.2948
Template load0.00090.270910.0009
Template processing0.293990.795610.2939
Override
Cache load0.00060.189110.0006
Sytem overhead
Fetch class attribute can translate value0.00180.569610.0018
XML
Image XML parsing0.00020.071010.0002
General
dbfile0.037511.5884200.0019
String conversion0.00000.001530.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