我已经在我公司的Ubuntu服务器上部署了我的webapp 战争在文件夹中:
的/ var / lib中/ tomcat7 / web应用
Tomcat7已将档案部署在文件夹
中的/ var / lib中/ tomcat7 / web应用/ bioApp /
我的问题是要访问网络应用,我需要输入网址:
我希望用户输入:
www.bioApp.com
我尝试了很多解决方案(修改server.xml,hosts文件等)。
他们都没有工作。
如果有人有工作解决方案......
由于
答案 0 :(得分:0)
The first thing you need is a local dns server in your company. In your dns server add a rule to route your ip (IP_OF_SERVER) to the local domain name
IP_OF_SERVER bioApp.com
If you had an apache server, you must add a virtualhost in your conf file (See this page for more information)
<VirtualHost *:80>
ServerName bioApp.com
ProxyPass / http://IP_OF_SERVER:8080/bioApp
ProxyPassReverse / http://IP_OF_SERVER:8080/bioAppr
</VirtualHost>
If you don't have a apache server, you can change your tomcat listen port.(See this post).