我在 tomcat 中部署了我的 Web 应用程序。现在使用 URL 中的 IP 访问它。
http://IPaddress:8080/appname/index.html
我想在 DNS 服务器中配置一个映射到该 IP 名称的域名。我的 Windows 管理员创建了一个域。但问题是我无法直接使用它。它期待端口号。
http://domain.com:8080/appname/index.html
我的期望:
http://domain.com --> http://IP:8080/appname/index.html
如何配置让我的 tomcat 识别不带端口号的域名。
最佳答案
您必须将端口从 8080
更改为 80
。参见 https://stackoverflow.com/a/4758356/841176获取说明。
关于jakarta-ee - 使用域名访问Web应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20225652/