将我的Web应用上下文路径映射到Glassfish或Tomcat中的主机名 [英] Map my web app context path to hostname in Glassfish or Tomcat
问题描述
是否有可能将运行在Glassfish上的Web应用程序与 context =MyApp1
映射到www.myFirstApp.com,例如与同一个域中的另一个Web应用程序另一个到另一个主机名(www.mySecondApp.com)的上下文路径?
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)?
http://127.0.0.1:8080/MyApp1/ >> To >> http://www.myFirstApp.com
http://127.0.0.1:8080/MyApp2/ >> To >> http://www.mySecondApp.com
我想绕过我的deploy-服务器。
I want to bypass web app context path on my deploy-server.
推荐答案
您需要使用虚拟服务器。 文档将很有用,这里有一个<一个href =http://blogs.steeplesoft.com/2007/05/virtual-hosting-using-apache-and-glassfish/ =nofollow>博客,进一步解释它。请记住,博客有点过时,但概念是相同的。
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.
这篇关于将我的Web应用上下文路径映射到Glassfish或Tomcat中的主机名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!