现在当我去https://localhost:9002/
它打开 hac (hybris admin console).
当我去https://powertools.local:9002/nystorefront/powertools/en/USD/cart
我可以联系到我的店面 .
我要联系 mystore
当我去localhost:9002
.
我该怎么办?
最佳答案
我假设您的网络扩展名是 mystorefront .
将这些添加到您的 config/local.properties 中
# This way hac extension will be available on https://localhost:9002/hac instead of https://localhost:9002/
hac.webroot=/hac
# If you want to remap the context path to the root site on the web container
# then you must set these values to be blank, do not set them to be '/'
mystorefront.webroot=
storefrontContextRoot=
还要确保与您的 CMSSite 关联的 urlPatterns 允许您通过以下方式访问您的店面:https://localhost:9002/
您还可以在 中找到此属性和其他信息。 mystorefront /project.properties。
正如那里已经提到的,“如果你想改变这些值,那么建议你覆盖这两个
它们在您的 config/local.properties 文件中,而不是更改此处的值”。
关于hybris - 如何在 hybris 中将本地主机重定向到我的店面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50332540/