mixed host and url siteaccess, is it possible?

Author Message

Zdenek Ziegler

Monday 11 April 2005 8:06:52 am

Hello,
I searched through the whole forum, but I haven't found an answer for this.
I need to set up ezpublish like this:
www.mysite.com
admin.mysite.com

and want to have translated content on
www.mysite.com/de
www.mysite.com/en

I followed the howto for setting up multilingual pages, but now, only url method works.
So I have:
www.mysite.com/index.php/en, etc.
Does anybody know the answer for my problem?
Thanks a lot,
Zdenek

Lazaro Ferreira

Monday 11 April 2005 3:27:42 pm

Hi,

Take look at this section of your settings/site.ini

# An array of access types which are tried, possible entries are: host, index, uri, port and servervar
MatchOrder=uri;host;port

# Possible values: disabled, element or regexp
# disabled - turns off uri matching
# element  - maps a url element to a siteaccess name
# regexp   - match against a regexp and extract a portion of it
URIMatchType=element
URIMatchElement=1
URIMatchRegexp=^/([^/]+)/
URIMatchRegexpItem=1

# Use either disabled, map, element, text or regexp
HostMatchType=map
HostMatchElement=0
HostMatchRegexp=^(.+)\.example\.com$
HostMatchRegexpItem=1
HostMatchSubtextPre=
HostMatchSubtextPost=.example.com
# Add array entries here if you chose HostMatchType=map
# Each entry consists of the hostname;accessname
#HostMatchMapItems[]=example.com;user
#HostMatchMapItems[]=admin.example.com;admin

# Use either disabled, element, text or regexp
IndexMatchType=regexp
IndexMatchElement=1
IndexMatchRegexp=^/index_(.+)\.php$
IndexMatchRegexpItem=1
IndexMatchSubtextPre=index_
IndexMatchSubtextPost=.php

We haven't use mixed siteaccess type ever, but it seems like you can play with settings above to do it

Lazaro
http://www.mzbusiness.com

Zdenek Ziegler

Monday 11 April 2005 4:43:15 pm

Thanks for your reply!
I tried these settings before, but now, I'm able to access
www.mysite.com/en and /de,
www.mysite.com,
but if I want the admin interface on
admin.mysite.com, it leads me on www.mysite.com
and I don't know why..I can access the admin on www.mysite.com/admin.
My site.ini is similar like the original, I have tried many combinations.
The only solution I see is to have
en.mysite.com, etc..

Zdenek Ziegler

Friday 15 April 2005 1:55:45 pm

nobody knows how to make it?
Now, I use hostname siteaccess for mutliple languages like this:
en.mysite.com
de.mysite.com
admin.mysite.com
But I realized, that I need to use this:
www.mysite.com/de
www.mysite.com/en
admin.mysite.com
so that I can also translate url to this languages, for example:
www.mysite.com/neue_produkte
www.mysite.com/new_product

Thank you in advance if you know the answer,
Zdenek

Vincent Lepot

Monday 20 June 2005 9:56:03 am

I have the same problem.

Looking at the code in access.php, it seems that 'uri' match always return siteaccess even if an host match or whatever is wished in MatchOrder directive... not cool !

Because it would be great to have uri match before host match.

It seems to work on ez.no and I wonder what is the site.ini config for ez.no site. Somebody in eZ System can help us ?

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 02:50:03
Script start
Timing: Jan 18 2025 02:50:03
Module start 'layout'
Timing: Jan 18 2025 02:50:03
Module start 'content'
Timing: Jan 18 2025 02:50:04
Module end 'content'
Timing: Jan 18 2025 02:50:04
Script end

Main resources:

Total runtime1.0524 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.1641152.6563
Module start 'layout' 0.00710.0048 740.820339.5078
Module start 'content' 0.01201.0379 780.3281595.6484
Module end 'content' 1.04990.0025 1,375.976612.1094
Script end 1.0524  1,388.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3278160.0002
Check MTime0.00140.1337160.0001
Mysql Total
Database connection0.00120.114110.0012
Mysqli_queries0.982593.3604650.0151
Looping result0.00080.0732630.0000
Template Total1.011796.120.5058
Template load0.00290.271220.0014
Template processing1.008895.855820.5044
Template load and register function0.00020.019010.0002
states
state_id_array0.00250.235110.0025
state_identifier_array0.00210.197620.0010
Override
Cache load0.00200.1909540.0000
Sytem overhead
Fetch class attribute can translate value0.00050.044830.0002
Fetch class attribute name0.00110.103860.0002
XML
Image XML parsing0.00360.338830.0012
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00460.4370150.0003
String conversion0.00000.001440.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs