ezurl seems to be insane

Author Message

Bernhard Reiter

Monday 13 June 2005 11:40:30 am

Hi,

I have a very strange problem. Normally i use ezpublish in virtual host environment.

But sometimes i want to test non-virt. host conditions (for example an extension).

Normally it should suffice to change the siteurl setting. (is not even necessary).

If i then access my site with something like localhost/ez/index.php, ezurl gives the right values, but then again inside my extension i get only localhost/selby/... without the index.php.

I have no clue. I checked settings in my ini files inside the extension, and everything else.
I cannot see the problem.

Perhaps you can help me

kracker (the)

Monday 13 June 2005 1:20:38 pm

I've found that it is possible to :
<i>"use ezurl, to switch from MatchOrder=host and MatchOrder=uri without a lot of changes"</i>

hehe, no your not alone or anymore insane than me ;)

You must <b>NOT</b> use .htaccess, you must embed your mod_rewrite rules into your vhost in httpd.conf

You may also need to use the ForceVirtualHost=true|false (Several others have needed to :)
<i>settings/override/override.ini.append.php</i>

<i>[SiteSettings]
SiteURL=photos.ezpublishhosting.com/index.php</i>

<i>[SiteAccessSettings]
ForceVirtualHost=true</i>

<i>MatchOrder=host
HostMatchMapItems[]
HostMatchMapItems[]=photos.ezpublishhosting.com;gallery_user
HostMatchMapItems[]=edit.photos.ezpublishhosting.com;gallery_admin</i>

This setup, and your .htaccess file removed or renamed, httpd.conf mod_rewrite rules setup and httpd restarted, This should work for you, it sure did for a friend of ours :)

//kracker
<i>MST3k - Master Ninja 1</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Xavier Dutoit

Tuesday 14 June 2005 12:11:02 am

Hi Kracker,

Happy to report that you can run ez with the rewrite config from .htaccess (as opposed to the regular from conf file).

Still ironing out a few things, but it definitively work... after you modify all the rules to write them differently ;)

X+

P.S. I still don't understand why you need a different set of rules, but that's part of the fun with computers I suppose

http://www.sydesy.com

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 31 2025 06:22:28
Script start
Timing: Jan 31 2025 06:22:28
Module start 'layout'
Timing: Jan 31 2025 06:22:28
Module start 'content'
Timing: Jan 31 2025 06:22:29
Module end 'content'
Timing: Jan 31 2025 06:22:29
Script end

Main resources:

Total runtime1.1336 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.1328151.2109
Module start 'layout' 0.00640.0029 739.343836.6484
Module start 'content' 0.00931.1233 775.9922979.8359
Module end 'content' 1.13260.0010 1,755.828111.8516
Script end 1.1335  1,767.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2898160.0002
Check MTime0.00130.1183160.0001
Mysql Total
Database connection0.00080.071610.0008
Mysqli_queries1.071094.4807590.0182
Looping result0.00060.0557570.0000
Template Total1.096096.720.5480
Template load0.00210.186020.0011
Template processing1.093996.496520.5469
Template load and register function0.00130.116810.0013
states
state_id_array0.00160.139310.0016
state_identifier_array0.00100.087620.0005
Override
Cache load0.00170.1520370.0000
Sytem overhead
Fetch class attribute can translate value0.00050.041930.0002
Fetch class attribute name0.00190.168250.0004
XML
Image XML parsing0.00130.113830.0004
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00460.4094240.0002
String conversion0.00000.001040.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs