hosting an application in glassfish

2019-06-21 03:04发布

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条回答
狗以群分
2楼-- · 2019-06-21 03:37

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.
查看更多
登录 后发表回答