【发布时间】:2019-03-27 12:27:13
【问题描述】:
我已在本地 Tomcat 的 8443 端口成功设置 SSL,并使用我在本地生成的用于开发目的的证书。它工作正常。
在我的/etc/hosts 文件中,我有条目:
127.0.0.1 mydev.example mydevsecure.example
我可以通过输入以下内容访问我的应用:
https://mydevsecure.example:8443/myApp/myPage.jsp [https]
或者
http://mydev.example/myApp/myPage.jsp[http]
我想要的是能够输入:https://mydevsecure.example/myApp/myPage.jsp
我不想在浏览器中输入端口号 8443。
我无法在 /etc/hosts 文件中指定我知道的端口号。
还有哪些其他解决方案?
【问题讨论】:
标签: ssl tomcat https dns hostname