Forum Problems Installing LAMS: Apache to Tomcat LAMS configuration question.


 
You may request notification for Apache to Tomcat LAMS configuration question..
Search: 

1: Apache to Tomcat LAMS configuration question.
01/20/09 09:16 PM
[ Reply | Forward ]
Hi All,
I have Apache and LAMS running on separate servers. They are working very nicely via port 8009 by utilizing ajp13 and configuring Apache as follows:

JkWorkersFile /etc/httpd/conf/workers.properties

and the following in order to pickup the style sheets:

JkMount /lams/* lams
JkOptions +ForwardURICompat
JkUnMount /lams/*.css lams
JkUnMount /lams/*.js lams
JkUnMount /lams/*.html lams
JkUnMount /lams/*.png lams

On Apache mylearningsite.com is virtually hosted and I can bring LAMS up via mylearningsite.com/lams and log onto LAMS and do basic things like system admin chores. However, when I go to run a learning activity or bring up the Authoring, things get messed up because the Tomcat reverts to using the SERVER_URL that is setup in the LAMS configuration (i.e., http://remotelams.com:8080/lams) on the popped 800x600 window. I get a new loggin screen. However, I have no intention of opening port 8080 up because everything should be routed through 8009. Does anyone know what I am doing wrong in this setup? Are there some URL Rewrite directives that must be configured? This only seems to be haywire when LAMS pops the new window to run an activity or do authoring work.

Here is my workers.properties

worker.list=lams
worker.lams.type=ajp13
worker.lams.host=remotelams.com
worker.lams.port=8009
worker.lams.lbfactor=3
worker.lams.connection_pool_timeout=600
worker.lams.socket_keepalive=1
worker.lams.mount=/lams /lams/*

My server.xml file is unchanged from the LAMS install.

My etc/lams2/lams.properties has a few of the following directives.
LAMS_PORT=8080
SERVER_URL=http://mylearningsite.com/lams/

Thanks for any suggestions.

John

Posted by John Wubbel

2: Re: Apache to Tomcat LAMS configuration question.
In response to 1 01/20/09 09:43 PM
[ Reply | Forward ]
Your lams.properties has the right ServerURL, but from your description, it sounds like the ServerURL has been changed? It should be 'http://mylearningsite.com/lams/'. The lams.properties is only parsed at install time.

If the value of ServerURL doesn't match the URL in the address bar, then the authoring window won't load properly due to javascript cross domain security kicking in (as it should).

Posted by Jun-Dir Liew

3: Re: Re: Apache to Tomcat LAMS configuration question.
In response to 2 01/21/09 07:18 PM
[ Reply | Forward ]
Thank you, that did the trick. Please note that after I reconfigured your suggestion, the style sheets came up missing so I was not thinking straight on my Apache directives. I removed the JkUnMount lines and added two more
JkMount /lams/css/* lams
JkMount /lams/images/* lams
restarted Apache and now everything works like a charm. Thanks again.
John

Posted by John Wubbel

Reply to first post on this page
Back to Problems Installing LAMS