0

URL for my webapp which is deployed on tomcat server is: http://host:port/myapp

How I can change this url to some thing like below for same tomcat home: http://test.myapp.com

1 Answer 1

1

First of all you have to own the domain from your example URL, or configure local DNS/ hosts entries on your workstation to map URL to your server IP.

Then you will have to bind tomcat to port 80, and deploy your app with name ROOT.war or alternatively use apache http server at front (module mod_proxy might be helpful, check this link).

Sign up to request clarification or add additional context in comments.

1 Comment

Link provided by you regarding proxy is useful and provided me correct track.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.