HTTP requests automatically redirect HTTPS requests

HTTP requests automatically redirect HTTPS requests

 

To make HTTP requests automatically jump to HTTP requests, you need to open tomcat port 80 and 443 at the same time, and then configure the config/web.xml file to add the following content

 

<login-config>
    <auth-method>CLIENT-CERT</auth-method>  
    <realm-name>Client Cert Users-only Area</realm-name>  
</login-config>  
<security-constraint>        
    <web-resource-collection >  
        <web-resource-name >SSL</web-resource-name>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326460409&siteId=291194637