eZ Community » Forums » eZ Publish 5 Platform » HostURI Match doenst work after...
expandshrink

HostURI Match doenst work after upgrade eZ 4.5.0 to 5.0.0

HostURI Match doenst work after upgrade eZ 4.5.0 to 5.0.0

Friday 31 May 2013 5:12:29 pm - 2 replies

Hello folks,

I updated my old eZ 4.5 installation to 5.0. Everything works fine. But the HostURI Match doenst work correctly.

My old HostURI Match looks like this:

HostUriMatchMapItems[]=mysiteuser.de;de;mysite_user;end
HostUriMatchMapItems[]=mysiteuser.de;cms;mysite_adminr;end

After the upgrade my config.yml

ezpublish:
    siteaccess:
        default_siteaccess: mysite_user
        list:
                - mysite_user
                - mysite_admin
        groups:
            mysite_group:
                - mysite_user
                - mysite_admin
        match:
            Map\URI:
                de: mysite_user
                cms: mysite_admin
               

But, yeah. It doenst work. I dont know why.

I used the http://projects.ez.no/ezupgrade zu upgrade my ez installation and it worked fine.

I hope someone can help me with this ez5 ini thing. I dont know how to configure this. :/

The fronted by the way works! Everything is shown correct, but until I try to request something on another siteaccess. Than I get kernel error 20.

Nice greeting from Germany!

Tim

Friday 31 May 2013 10:11:10 pm

Hi, HostUri is one of those features which where missing in 5.0.
It has been added in 5.1 which is an highly recommended upgrade over 5.0.
Some relevant resources: 

Monday 03 June 2013 10:33:15 am

Hi Andre,

thanks for your reply. I made an update from 5.0 to 5.1 and tried the following configuration:

 ezpublish:
    siteaccess:
        default_siteaccess: user_de
        list:
            - user_site
            - admin_site
            - edit_site
        groups:
            my_group:
                - user_site
                - admin_site
                - edit_site
        match:
            Compound\LogicalAnd:
                -
                    matchers:
                        Map\URI:
                            cms: true
                        Map\Host:
                            mysite.dev: true
                    match: admin_site
                -
                    matchers:
                        Map\URI:
                            edit_de: true
                        Map\Host:
                            mysite.dev: true
                    match: edit_site
    system:
        ...

But I always see the "user_site" on each url. But I want to match it like this:

http://mysite.dev/cms/ -> admin_site siteaccess
http://mysite.dev/edit_de/ -> edit_site siteaccess

What am I doing wrong??

Philip

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from