hosting an application in glassfish

旧巷老猫 提交于 2020-01-03 13:37:07

问题


I have installed glassfish 3.1 application server. created a domain and all. deployed war file and its working fine in local machine. now my problem is:

  • I have purchased a domain e.g: abc.com
  • How to add this domain in glassfish server
  • I have an VPS hosting space too where i have installed the glassfish server.
  • where can i give name server to this domain in glass fish?
  • How can i host an website/web application in glassfish?
  • Please any body guide me with this.

回答1:


First you need to make sure that DNS resolution is working correctly and that the domain name points to your server's IP address.

Then you can configure Glassfish 3.x to listen to this domain name:

  • open administration console
  • go to configurations --> network-configuration --> network listeners --> http-listener 1/2
  • switch to the "HTTP" tab and enter your domain and port in the field "server name", e.g. www.yourdomain.com:8080
  • save the configuration and test it.


来源:https://stackoverflow.com/questions/11151449/hosting-an-application-in-glassfish

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