CAS4.0安装成功后,提示“Non-secure Connection“,如何设置http访问形式

waylau 发布于 2014/07/22 10:34
阅读 5K+
收藏 0

Non-secure Connection

You are currently accessing CAS over a non-secure connection. Single Sign On WILL NOT WORK. In order to have single sign on work, you MUST log in over HTTPS.



CAS4.0安装成功后。登录页面显示这个提示,意思是要我安装证书L。但是我不想安装证书,只想用http 来访问应用。
看了网上的教程 http://www.myexception.cn/program/1054831.html 进行了修改,但是那个提示还在,好讨厌。
请教大牛们,正确的配置是怎么样的?

PS:应用登录没有问题,可以正常登入、登出

加载中
0
飞翔的风筝
飞翔的风筝

这个提示是使用硬编码的形式直接写在casLoginView.jsp文件中的,具体如下:

<c:if test="${not pageContext.request.secure}">
  <div id="msg" class="errors">
    <h2>Non-secure Connection</h2>
    <p>You are currently accessing CAS over a non-secure connection.  Single Sign On WILL NOT WORK.  In order to have single sign on work, you MUST log in over HTTPS.</p>
  </div>
</c:if>



删了就行

waylau
waylau
thanks! man~
返回顶部
顶部