hybris - 如何在 hybris 中将本地主机重定向到我的店面?

标签 hybris

现在当我去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/

相关文章:

intellij-idea - 谁能解释如何在Intellij Idea中设置hybris项目?

gradle - Hybris安装中缺少build.xml错误

eclipse - hybris 5 Accelerator构建在Eclipse上失败,但在cmd上失败

hybris - 如何从local.properties 获取配置数据到impex?

java - 如何解决 Hybris 中的 AttributeNotSupportedException

hybris - Hybris local.properties 中的环境变量

spring-mvc - hybris - 哪个 Spring Controller 满足我的请求?

Hybris启动错误