I have in my application.conf
http.path=/manage
So, when I go to http://localhost:9000/ I get a Not Found 404 page.
Is there a way to redirect / to /manage/ while still keeping the app at http.path=/manage ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the documentation, the
http.pathsetting is used for,If this is not the case, then you may be better off using your routes file to manage the URLs, so that you specify both the
/and/manage, and the action for the index page is a simple redirect to the action that you want to forward on to.The other option is to front your Play server with an HTTP server, like Apache or Lighttp, and perform the redirect within the HTTP server config. This is actually what the
http.pathis meant to be used for, to help play applications co-exist in an existing web server environment.