| 164 | |
| 165 | |
| 166 | ---- |
| 167 | |
| 168 | |
| 169 | == Update for CaTissue Plus deployed on LAMP servers == |
| 170 | |
| 171 | The user accesses a 'load balancer' by means of an alias: |
| 172 | |
| 173 | https://lcbru-catissue-dev.rcs.le.ac.uk |
| 174 | |
| 175 | which routes the request to the server itself at lamp-api-15.rcs.le.ac.uk:80 - this machine only has port 80 accessible, so Apache is listening on port 80 and using mod_proxy and mod_proxy_http to reverse proxy to port 8080 for JBoss to pick up the request. |
| 176 | |
| 177 | It works sufficiently to show the JBoss interface and the caTissue index page. |
| 178 | |
| 179 | Originally I tried with jboss.server.host set to 'lcbru-catissue-dev.rcs.le.ac.uk' - this caused infinite redirect loops, and is bad. It isn't clear what this config setting is used for, and if it is used for building page URLs then the full alias is needed. I've changed this now to the actual IP address of the server itself (but this will not work if supplied to a browser as a link to a resource). It is now possible to log in to CaTissue. |
| 180 | |
| 181 | There remains an issue with flex / caused by the fact that https is used to connect to the load balancer, but the JBoss connection itself is not securely piped. That isn't a problem because it is all behind the firewall of the load balancer, but flex doesn't like it. The solution as documented on a number of websites is: |
| 182 | |
| 183 | |
| 184 | {{{ |
| 185 | I changed my-secure-amf definition in services-config.xml to use a SecureAMFChannel but point |
| 186 | to a non-secure AMFEndpoint. A re-compile and deploy solved the issue. |
| 187 | |
| 188 | <channel-definition id="my-secure-amf" |
| 189 | class="mx.messaging.channels.SecureAMFChannel"> |
| 190 | <endpoint |
| 191 | url="https://{server.name}:{server.port}/{context.root}/messagebroker/am\ |
| 192 | fsecure" class="flex.messaging.endpoints.AMFEndpoint"/> |
| 193 | <properties> |
| 194 | <add-no-cache-headers>false</add-no-cache-headers> |
| 195 | </properties> |
| 196 | </channel-definition> |
| 197 | |
| 198 | }}} |
| 199 | |