Home >Backend Development >PHP Tutorial >3. Remember a failed CAS setup - server configuration_PHP tutorial

3. Remember a failed CAS setup - server configuration_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:27:201026browse

============================================== ================================================== ===========

Setp3: Binding operation between Tomcat and cas server:: Reference: http://www.open-open.com/lib/view/open1392018954614.html

================================================== ================================================== ========

1. Download and install the Cas server with Tomcat

可以从 CAS 官网:http:<span>//</span><span>www.jasig.org/cas 下载,这可能需要翻墙,如果你不太愿意翻墙的话,可以访问这个地址:</span><span>http://downloads.jasig.org/cas/</span><span>,同样可以下载。</span>

2. Merge into Tomcat

打开你刚刚下载好的安装包,下面有:/modules/cas-server-webapp-3.5.2.war 到 Tomcat 的 webapps 目录下,并重命名为 ROOT.war。

3. Configure tomcat to support HTTPS and open the conf/server.xml file in the Tomcat directory.

<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="off" /><span>
SSLEngine配置为off,默认为on</span>
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"<span>
               maxThreads</span>="150" SSLEnabled="true" scheme="https" secure="true"<span>
               clientAuth</span>="false" sslProtocol="TLS" /><span>
其实这段在配置文件中是本身就存在的,只需要你复制一下,替换掉之前的就可以了!Tommat很近人意的嘛</span>

4. Add host local path

<span>127.0.0.1 cas</span>

Next, you can enter https://cas:8443/login to access. The account and password are actually not the same as what is said on the Internet. OK, maybe it worked before

It seems that it is no longer available. The account and password are in Tomcat installation directory webappsROOTWEB-INFdeployerConfigContext.xml. You can find the account and password by searching for the "users" keyword!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/818151.htmlTechArticle======================== ================================================== =============================== Setp3: Binding operation between Tomcat and cas server::Reference: http:// www.open-...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn