0
實際上,我得到了將http重定向到https的方法,因爲我在web.xml中添加了一個過濾器。如 ,如何將https://請求重定向到http://在resin4.0中
<security-constraint>
<web-resource-collection>
<web-resource-name>SSL</web-resource-name>
<url-pattern>/xxx/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
在這種情況下
,我可以在HTTPS模式被要求像/xxx/*
的URL。 還有一些其他的網址,如/yyy/*
必須以http模式請求,那我該怎麼做?
這真的是個好主意。我會有一個測試。很多... – user1667811