本地主机:8080 / hello-world返回404-enonic xp

时间:2020-04-24 05:38:27

标签: content-management-system

我已经创建了Enonic项目hello-world网站。内容工作室将网站网址显示为/hello-world 但是,当浏览器调用localhost:8080/hello-world时,它将从Enonic服务器返回404错误日志。

如何解决此问题?

1 个答案:

答案 0 :(得分:1)

您必须使用以下内容配置 XP_HOME / config / com.enonic.xp.web.vhost.cfg 文件:

enabled = true

mapping.a.host = localhost
mapping.a.source = /hello-world
mapping.a.target = /site/default/master/hello-world
mapping.a.idProvider.system = default

您可以在official XP-documentation about vhost中了解更多信息。

相关问题