Forums / Install & configuration / mixed host and url siteaccess, is it possible?

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 ?

eZ debug

Timing: Jan 18 2025 01:01:19
Script start
Timing: Jan 18 2025 01:01:19
Module start 'content'
Timing: Jan 18 2025 01:01:20
Module end 'content'
Timing: Jan 18 2025 01:01:20
Script end

Main resources:

Total runtime0.7567 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 589.0781180.8047
Module start 'content' 0.00670.6345 769.8828600.7578
Module end 'content' 0.64120.1155 1,370.6406337.3438
Script end 0.7566  1,707.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5110210.0002
Check MTime0.00150.1988210.0001
Mysql Total
Database connection0.00090.121010.0009
Mysqli_queries0.672788.90582020.0033
Looping result0.00190.24962000.0000
Template Total0.722995.520.3615
Template load0.00180.241920.0009
Template processing0.721195.290320.3605
Template load and register function0.00010.016510.0001
states
state_id_array0.00220.292310.0022
state_identifier_array0.00110.143620.0005
Override
Cache load0.00150.2046540.0000
Sytem overhead
Fetch class attribute can translate value0.00100.126640.0002
Fetch class attribute name0.00090.125160.0002
XML
Image XML parsing0.00310.406940.0008
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.00981.2904260.0004
String conversion0.00000.000730.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/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs