我已经创建了Enonic项目hello-world
网站。内容工作室将网站网址显示为/hello-world
但是,当浏览器调用localhost:8080/hello-world
时,它将从Enonic服务器返回404
错误日志。
如何解决此问题?
答案 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中了解更多信息。