Hybris: cannot find CMSSite associated with current URL

前端 未结 2 1170
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-14 21:21

I created a new Hybris extension using one of the given templates.
The build was successful and I am able to start the server, too.

But when opening the weblink fr

2条回答
  •  不要未来只要你来
    2021-02-14 22:11

    You need to use hosts file mappings or use the site-ID parameter to avoid a 500 error.

    enter image description here

    Please follow these link

    https://wiki.hybris.com/display/accdoc/Just+One+Storefront

    https://help.hybris.com/6.3.0/hcd/8ae0711f86691014877ae05249b2f5ac.html (Hybris 6)

    If you have administrator rights, it is a good idea to add the following entries in your host file.

    127.0.0.1 hybris.local [Example]

    The etc hosts modification allows the accelerator to identify sites (CMSSites) from the url. This makes the URL neat and clean.

    After host file change, You can access the site like this

    http://hybris.local:9001/yacceleratorstorefront/

    If you don't do this, the sites would need to be identified with an additional request parameter like this

    http://localhost:9001/yacceleratorstorefront/?site=hybris&clear=true

提交回复
热议问题