简体   繁体   English

如何更改webapp网址

[英]how to change webapp url

URL for my webapp which is deployed on tomcat server is: http://host:port/myapp 在Tomcat服务器上部署的我的Web应用程序的URL是: http://host:port/myapp

How I can change this url to some thing like below for same tomcat home: http://test.myapp.com 我如何才能将此URL更改为以下相同的tomcat主页的内容: http://test.myapp.com : 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. 首先,您必须从示例URL拥有域,或者在工作站上配置本地DNS /主机条目,以将URL映射到服务器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 ). 然后,您将不得不将tomcat绑定到端口80,并使用名称ROOT.war部署您的应用程序,或者在前面使用apache http服务器(模块mod_proxy可能会有所帮助,请检查此链接 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM