How to hide my website port number on website url

前端 未结 3 1125
北荒
北荒 2021-01-20 15:40

My website has implemented by using JAVA. So we have taken VPS and installed Tomcat then deployed My website is appearing like this

whenever I click www.mysite.com

相关标签:
3条回答
  • 2021-01-20 16:10

    If you don't provide the port number in the URL your HTTP requests would be sent to port 80. You can set up a firewall rule to redirect requests headed towards port 80 to 8080.

    0 讨论(0)
  • 2021-01-20 16:17

    If you don't want a port number in your URL, you have to use the default port number for HTTP, which is 80. If it's anything other than 80, you will be required to put the port number in the URL. That's all there is to it.

    Now, if your question is "how do I host my Tomcat website on port 80", well there are plenty of answers to that question both on SA and teh intertubes. Just search.

    0 讨论(0)
  • 2021-01-20 16:29

    If you wish to redirect all request on tomcat on default port you have to stop the IIS and use port 80 for your tomcat application or make the changes in IIS to redirect it.

    0 讨论(0)
提交回复
热议问题