Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/354.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 当整个应用程序在https(SSL)上运行时,需要公开特定的http url_Java_Http_Tomcat_Ssl_Https - Fatal编程技术网

Java 当整个应用程序在https(SSL)上运行时,需要公开特定的http 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&

我在同一个tomcat服务器上运行多个war应用程序,并启用SSL,具有最终URL:

  • 除此之外,还通过添加
    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>