Nilanka Manoj
Nilanka Manoj

Reputation: 3738

localhost:8080/hello-world returns 404 - enonic xp

I have created enonic project hello-world site. the content studio shows site URL as /hello-world But when browser calls localhost:8080/hello-world it returns 404 error log from enonic server.

How to fix this issue?

Upvotes: 0

Views: 386

Answers (1)

tomaj
tomaj

Reputation: 1600

You have to configure your XP_HOME/config/com.enonic.xp.web.vhost.cfg file with something like this:

enabled = true

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

You can read more about it in the official XP-documentation about vhost.

Upvotes: 1

Related Questions