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.