我将我的 Web 应用程序配置为使用我自己的自签名证书来使用 SSL。一切正常,但在这里我的整个网站现在都是 https,就像我使用的一样:-
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
但是,我只希望我的登录页面使用 SSL 而不是完整的站点。我需要在我的应用程序中进行哪些更改?
提前致谢:)
最佳答案
- 让所有链接都正常
- 让登录页面的链接为
https://...
- 在登录页面上确保所有链接都是
http://
例如:
<a href="https://<%= request.getServerName() %>/login.jsp">
(您还需要包含 request.getServletContext().getContextPath()
)
关于java - SSL 问题 java web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2890768/