首页 > Web开发 > 详细

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

时间:2015-10-12 11:57:36      阅读:1202      评论:0      收藏:0      [点我收藏+]

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>

 

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

原文:http://www.cnblogs.com/jimw/p/4870960.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!