java - If http.path is set, is there a way to provide a route for / -
java - If http.path is set, is there a way to provide a route for / -
i have in application.conf
http.path=/manage
so, when go http://localhost:9000/ not found 404 page.
is there way redirect /
/manage/
while still keeping app @ http.path=/manage
?
from documentation, http.path
setting used for,
the url path application runs on server: utilize if not host play application @ root of domain you’re serving from. parameter has no effect when deployed war, because path handled application server.
if not case, may improve off using routes file manage urls, specify both /
, /manage
, , action index page simple redirect action want forwards on to.
the other alternative front end play server http server, apache or lighttp, , perform redirect within http server config. http.path
meant used for, help play applications co-exist in existing web server environment.
java routes playframework
Comments
Post a Comment