我已经创建了非离子工程hello-world网站。content将site显示为/hello-world,但当浏览器调用localhost:8080/hello-world时,它将从enonic服务器返回404错误日志。
如何解决这个问题?
发布于 2020-04-30 08:39:27
您必须使用以下内容配置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你可以在官方XP-关于vhost的文档上读到更多关于它的信息。
https://stackoverflow.com/questions/61401857
复制相似问题