Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Step 1 - Check if mod_jk is installed

...

(2) Before trying to build mod_jk, you must make sure you have the following pre-requisite programs installed (use the which command to check for each):

...

(4) Download the latest mod_jk source from the Tomcat Download site http://jakarta.apache.org/site/downloads/downloads_tomcat.htmlImage Removed.

(5) Unzip the contents into your home directory:

...

The big thing to pay attention to is the context which you specify in JkMount! If you specify /dspace/*, then only requests to http://my-host-name/dspace/*Image Removed will be forwarded to Tomcat! However, if you specify /*, then all requests to http://my-host-name/*Image Removed will be forwarded to Tomcat.

...

Notice, first you specify that all requests should be forwarded to Tomcat. But, then for specific UI's you can specify to ignore mod_jk (using the no-jk environment variable). So, the above specifies that everything except paths matching http://my-host-name/cgi-bin/*Image Removed or http://my-host-name/anotherApp/*Image Removed are forwarded to Tomcat.

Step 5 - Configure Tomcat

...

Restart Tomcat and Apache!
Now, test the connection between Apache and Tomcat. You should now be able to get to DSpace whether you specify port 8080 (for Tomcat) or not. For example, the following URLs should bring you to the same DSpace (you may need to replace localhost with your server path):

Hopefully everything works for you! If it doesn't, ask questions to the dspace-tech@lists.sourceforge.net DSpace-Tech mailing list. If you find any problems with the above instructions, feel free to edit and enhance them!