Host access method not working

Author Message

Hakim Bouras

Thursday 07 September 2006 2:10:43 pm

Hi,

I have a web site hosted on Lunarpages servers with ezPublish installed on it. It is working (alsmost) fine in URI mode.

I wanted to move to HOST mode and I did the following changes:
- update the .htaccess file with the appropriate rewrite rules
- update the override/site.ini.append.php
- clear the cache

When I try to access my website with http://www.mysite.com, it works fine. But, the URLs generated using ezurl() are still formatted in URI mode such as http://www.mysite.com/index.php?/mypage (and this URL is working, I have access to "mypage"...)

While if I try to access http://www.mysite.com/whatsoever/anything it always return the homepage with the following error in the debug:

<i>Error: eZSys::serverVariable
Server variable 'QUERY_STRING' does not exist</i>

It seems like ezPublish does not want to activate the HOST mode, but why ?

Another clue is that on Lunarpages, in URI mode I always have to use the "?" after index.htm, otherwise it does not work. Could my problem related to this limitation ?

Thanks in advance for any help,
Hakim

My .htaccess file only contains:

RewriteEngine On
RewriteRule !\.(js|gif|css|jpg|png)$ /home/salsa6/public_html/salsacaliente/index.php

My site.ini.append.php file contains the following section:

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=cam
AvailableSiteAccessList[]=cam_admin
MatchOrder=host
HostMatchMapItems[]
HostMatchMapItems[]=www.mysite.com;cam
HostMatchMapItems[]=admin.mysite.com;cam_admin
DebugExtraAccess=enabled
DebugAccess=enabled

Norman Leutner

Thursday 07 September 2006 11:45:17 pm

Try setting

[SiteAccessSettings]
ForceVirtualHost=true

in settings/override/site.ini.append.php

And don't forget to clear all caches.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Hakim Bouras

Friday 08 September 2006 1:25:36 am

Thanks Norman, it is now working fine.

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 19:22:52
Script start
Timing: Jan 18 2025 19:22:52
Module start 'layout'
Timing: Jan 18 2025 19:22:52
Module start 'content'
Timing: Jan 18 2025 19:22:53
Module end 'content'
Timing: Jan 18 2025 19:22:53
Script end

Main resources:

Total runtime0.8936 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 588.0313152.6406
Module start 'layout' 0.00890.0041 740.671939.4766
Module start 'content' 0.01300.8789 780.1484550.0469
Module end 'content' 0.89190.0016 1,330.195312.1484
Script end 0.8935  1,342.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4511160.0003
Check MTime0.00190.2128160.0001
Mysql Total
Database connection0.00180.196310.0018
Mysqli_queries0.823792.1832570.0145
Looping result0.00050.0581550.0000
Template Total0.852495.420.4262
Template load0.00971.083420.0048
Template processing0.842794.304120.4213
Template load and register function0.00010.012910.0001
states
state_id_array0.00210.229510.0021
state_identifier_array0.00090.103220.0005
Override
Cache load0.00800.8937320.0002
Sytem overhead
Fetch class attribute can translate value0.00070.077220.0003
Fetch class attribute name0.00120.138350.0002
XML
Image XML parsing0.00670.752320.0034
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00100.1125230.0000
String conversion0.00000.003340.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 7

Time used to render debug report: 0.0001 secs