[Building Sakai] Deploy sakai + cas to listen all ip addresses

Thach Le thachln at gmail.com
Sun Nov 22 22:25:08 PST 2009


Dear,

I would like to deploy the sakai which supports many address.
Example: My host "rai-server" has an ip address 192.168.1.1.

I have deployed the sakai 2.6.1 and CAS (http://rai-server:7433/cas)
with link http://rai-server:8433/. It's OK. I have not configured
mod_jk and apache yet.

I found there are many fixed values in CAS configuration.
Now, I want to configure the sakai + CAS in order to the user can
access the sakai portal via http://192.1.168.1.1:8433 or
http://rai-server:8433.

How can I do?

Thach Le
-------------- next part --------------
1) Modify Tomcat configuration        
    File: $TOMCAT_HOME/conf/server.xml    
    Open "SSL HTTP/1.1 Connector on port 8443"    
    Add attributes:    
        keystoreFile="${user.home}/keystore/keystore" keystorePass="tomcat"

2) Modify sakai.properties        
    serverUrl    
        serverUrl=https://rai-server:8443

    serverName    
        serverName=rai-server

        loggedOutUrl=https://rai-server:7443/cas/logout?url=http://rai-server/tys

        top.login=false

        container.login=true

        bottom.copyrighttext=
        version.sakai=2.5.5

        server.info.url=/library/content/resources-cdrom.html
        myworkspace.info.url=/library/content/resources-cdrom.html

        setup.request=rai.trainer at openones.com.vn
        ui.service=RAI Training Service

3)    Modify $TOMCAT_HOME\webapps\sakai-login-tool\WEB-INF\web.xml    
            <filter>
                <filter-name>sakai.request</filter-name>
                <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
                <!-- Thach added for CAS.START -->    
                <url-pattern>/*</url-pattern>    
                <dispatcher>REQUEST</dispatcher>    
                <dispatcher>FORWARD</dispatcher>    
                <dispatcher>INCLUDE</dispatcher>    
                <!-- Thach added for CAS.END -->    
            </filter>    


        <!-- Thach added for CAS.START -->    
             <filter>    
                 <filter-name>sakai.cas</filter-name>    
                     <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>    
                     <init-param>    
                         <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>         
                         <param-value>https://rai-server:7443/cas/login</param-value>    
                     </init-param>
                     <init-param>
                        <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
                        <param-value>https://rai-server:7443/cas/serviceValidate</param-value>
                    </init-param>
                    <init-param>
                        <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
                        <param-value>rai-server:8443</param-value>
                    </init-param>
                    <init-param>
                        <param-name>edu.yale.its.tp.cas.client.filter.wrapRequest</param-name>
                        <param-value>true</param-value>
                    </init-param>
             </filter>
         
             <filter-mapping>
                 <filter-name>sakai.cas</filter-name>
                 <url-pattern>/container</url-pattern>
             </filter-mapping> 
             <!-- Thach added for CAS.END -->

4)    Copy "casclient-2.2.0-M3.jar" into $TOMCAT_HOME\webapps\sakai-login-tool\WEB-INF\lib    


More information about the sakai-dev mailing list