문제

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

도움이 되었습니까?

해결책

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top