| | 162 | |
| | 163 | |
| | 164 | |
| | 165 | == Configure Apache == |
| | 166 | |
| | 167 | 1. Configure mod_proxy_ajp. Add the file /etc/httpd/conf.d/proxy_ajp.conf with the contents: |
| | 168 | |
| | 169 | {{{ |
| | 170 | LoadModule proxy_module modules/mod_proxy.so |
| | 171 | LoadModule proxy_ajp_module modules/mod_proxy_ajp.so |
| | 172 | |
| | 173 | ProxyPass /grouper/ ajp://localhost:8009/grouper/ |
| | 174 | }}} |
| | 175 | |
| | 176 | 2. Add the following to the end of /etc/httpd/conf.d/shib.conf to require Shibboleth |
| | 177 | |
| | 178 | {{{ |
| | 179 | <Location /> |
| | 180 | AuthType shibboleth |
| | 181 | ShibRequestSetting requireSession 1 |
| | 182 | require valid-user |
| | 183 | </Location> |
| | 184 | }}} |
| | 185 | |
| | 186 | 3. Restart Apache |
| | 187 | |
| | 188 | {{{ |
| | 189 | [root@grinnell conf.d]# /etc/init.d/httpd restart |
| | 190 | Stopping httpd: [ OK ] |
| | 191 | Starting httpd: [ OK ] |
| | 192 | [root@grinnell conf.d]# |
| | 193 | }}} |
| | 194 | |
| | 195 | |
| | 196 | |
| | 197 | == Configure Tomcat == |
| | 198 | |
| | 199 | 1. In the file /etc/tomcat6/server.xml, make sure the AJP connector listening on port 8009 is not commented out and make sure request.tomcatAuthentication is set to false. |
| | 200 | |
| | 201 | {{{ |
| | 202 | <!-- Define an AJP 1.3 Connector on port 8009 --> |
| | 203 | <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" request.tomcatAuthentication="false" /> |
| | 204 | }}} |
| | 205 | |
| | 206 | 2. Restart Tomcat |
| | 207 | |
| | 208 | {{{ |
| | 209 | [root@grinnell tomcat6]# /etc/init.d/tomcat6 stop |
| | 210 | Stopping tomcat6: [ OK ] |
| | 211 | [root@grinnell tomcat6]# ps -ef | grep -i tomcat |
| | 212 | root 18377 7627 0 09:21 pts/3 00:00:00 grep -i tomcat |
| | 213 | [root@grinnell tomcat6]# /etc/init.d/tomcat6 start |
| | 214 | Starting tomcat6: [ OK ] |
| | 215 | }}} |