Forums / Install & configuration / Nice URLs with Multi-Site Configuration

Nice URLs with Multi-Site Configuration

Author Message

Alex Jones

Thursday 04 September 2003 3:32:23 pm

I am using a design other than the 'user' or 'standard' ones for a site I am working on; it is called 'agr'. I have enabled Nice URLs and set up the virtual hosts, but for some reason when I view the site with the nice URLs they return a module not found.

An example URL generated by the system is: example.com/products/by_maker/a_through_d

I discovered that if I add the name of my design it'll work:
example.com/agr/products/by_maker/a_through_d

How can I set up the system to work without using the 'agr/'? I'm sure there is a simple setting somewhere that I've missed...

Thanks!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Forsyth

Friday 05 September 2003 6:03:15 am

I assume you have made a seperate siteaccess for your new design?

Also, the site.ini files contain info about which siteaccess files are active and can be used. Maybe you need to enable yours. Do a 'grep' to find 'user' to spot where you need to add yours.

Paul

Alex Jones

Friday 05 September 2003 6:11:50 am

Yes, I had created a site.ini.append for 'agr' here is the code for [SiteAccessSettings] with 'example.com' substituting for the domain:

[SiteAccessSettings]
RequireUserLogin=false
MatchOrder=uri;host
HostMatchType=map
HostMatchMapItems[]=www.example.com;agr
HostMatchMapItems[]=admin.example.com;admin

You mention to search for 'user' in the SiteAccessSettings... What exactly am I looking for? I am going add the lines:
AvailableSiteAccessList[]=agr
and
SiteAccessList[]=agr

Is there anything else to add? Thanks!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Forsyth

Friday 05 September 2003 6:20:49 am

Sorry, do the search within your settings directory. Usually the extra additions are in your site.ini, but depending on how you do your overrides it may be one of a few files...

Paul

Paul Forsyth

Friday 05 September 2003 6:23:29 am

I realised now that isn't the best of help... Your available site accesses should do the trick. You may need to change the default site access 'DefaultAccess' I think...

Basically play with the settings ;) I haven't got much experience doing this as i stick to 'user'.

Paul

Alex Jones

Friday 05 September 2003 7:10:10 am

Hrrrm, actually you helped get me on track. :) Apparently I needed to have it in the actual site.ini. For some reason having it in site.ini.append was not enough. I'm going to experiment a bit more though...

Thanks!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Forsyth

Friday 05 September 2003 7:30:11 am

It all depends on placement. site.ini is overriden by your siteacces site.ini, which is overriden by site.ini.append in the override directory.... confusing.

Would be nice to have the ez sys info page report on what options are available, and from what file ;)

paul

Alex Jones

Friday 05 September 2003 7:43:37 am

Ahhh, my understanding of the overrides was a bitt off. I assumed that the override/site.ini.append trumped all aothers.

I agree it would be nice to see what settings are used in the admin section.

Also, why are there three possible config files to change? Why not take it down to site.ini and the override/site.ini and drop the append file? If all of the functionality of the append file is added to the override files it would be a lot easier to ensure changes are made where they belong.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Forsyth

Friday 05 September 2003 9:26:36 am

Erm, i think i said that the site.ini.append in the override does trump all of the others? read again :)

Although confusing you have a *lot* of flexibility depending exactly how you want to configure your site. The original site.ini is the default, you can then add a few things in each siteaccess to have your site do something for the correct design, then further global changes can be applied by the override directory to affect all siteaccess designs... powerful but easy to muck up!

paul

Alex Jones

Friday 05 September 2003 9:44:16 am

Ooops, I mispoke (mistyped?), I had assumed that the siteaccess/user/override/site.ini.append would trump all others. I.e. the site-specific override would be the final word. :) I hope that makes sense.

I agree it is powerful, and perhaps your earlier suggestion would ease much of the confusion that comes with three configuration files that essentialy control the exact same settings.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

eZ debug

Timing: Jan 18 2025 20:59:54
Script start
Timing: Jan 18 2025 20:59:54
Module start 'content'
Timing: Jan 18 2025 20:59:54
Module end 'content'
Timing: Jan 18 2025 20:59:54
Script end

Main resources:

Total runtime0.8495 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 588.9844180.8203
Module start 'content' 0.01000.7237 769.8047620.1250
Module end 'content' 0.73360.1158 1,389.9297345.0625
Script end 0.8494  1,734.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5089210.0002
Check MTime0.00170.2039210.0001
Mysql Total
Database connection0.00140.165010.0014
Mysqli_queries0.762189.71572150.0035
Looping result0.00210.24692130.0000
Template Total0.815996.020.4079
Template load0.00230.266320.0011
Template processing0.813695.776320.4068
Template load and register function0.00010.013110.0001
states
state_id_array0.00080.091510.0008
state_identifier_array0.00130.153620.0007
Override
Cache load0.00200.2363610.0000
Sytem overhead
Fetch class attribute can translate value0.00170.195930.0006
Fetch class attribute name0.00160.1843110.0001
XML
Image XML parsing0.00070.085030.0002
class_abstraction
Instantiating content class attribute0.00000.0032150.0000
General
dbfile0.00400.4721270.0001
String conversion0.00000.001430.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs