Мы пытаемся реализовать HTTPS для некоторых страниц в нашем приложении. Итак, мы изменили tomcat server.xml, чтобы выполнять вызовы HTTPS следующим образом:
<Connector
port="8080"
protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
acceptCount="100"
maxKeepAliveRequests="15"
SSLEnabled="true"
scheme="https"
secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/webapps/test.bin"
keystorePass="test"/>
В приложении web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>securedapp</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
Итак, HTTPS применяется для всех страниц. Как ограничить HTTPS для нужных страниц.
Помощь будет оценена.