resin服务器不能强转http 重定向到https 解决

The URL contains escaped bytes unsupported by the UTF-8 encoding.

该原因为配置的端口不是默认端口80。需要将其他端口改为默认的即可。

在web项目的web.xml 中配置如下

 

<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>

 

posted @ 2015-10-12 10:48  jimw  阅读(1667)  评论(0编辑  收藏  举报