Map my web app context path to hostname in Glassfish or Tomcat

走远了吗. 提交于 2019-12-08 04:52:36

问题


Is it possible to map a web application running on Glassfish with context="MyApp1" to www.myFirstApp.com for example and another web app in the same domain with another context path to another hostname (www.mySecondApp.com)?

Examples

http://127.0.0.1:8080/MyApp1/  >> To >>  http://www.myFirstApp.com
http://127.0.0.1:8080/MyApp2/  >> To >>  http://www.mySecondApp.com

I want to bypass web app context path on my deploy-server.


回答1:


You'll want to use a virtual server. The documentation will be useful and here's a blog that explains it further. Keep in mind the blog is a bit outdated but the concepts are the same.



来源:https://stackoverflow.com/questions/7860335/map-my-web-app-context-path-to-hostname-in-glassfish-or-tomcat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!