Java 当整个应用程序在https(SSL)上运行时,需要公开特定的http url
我在同一个tomcat服务器上运行多个war应用程序,并启用SSL,具有最终URL: 除此之外,还通过添加Java 当整个应用程序在https(SSL)上运行时,需要公开特定的http url,java,http,tomcat,ssl,https,Java,Http,Tomcat,Ssl,Https,我在同一个tomcat服务器上运行多个war应用程序,并启用SSL,具有最终URL: 除此之外,还通过添加server.xml公开了一个目录 <Context docBase="../../rawdata" path="/rw"/> 但url仍通过SSL端口重定向 我怎样才能防止呢?提前谢谢 <security-constraint> <web-resource-collection> <web-resource-name&
server.xml
公开了一个目录
<Context docBase="../../rawdata" path="/rw"/>
但url仍通过SSL端口重定向
我怎样才能防止呢?提前谢谢
<security-constraint>
<web-resource-collection>
<web-resource-name>public</web-resource-name>
<url-pattern>/rw/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Entire Application</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>