Page History
...
- Instructions for Gentoo Linux can be found at http://gentoo-wiki.com/index.php?title=HOWTO_Apache2_and_Tomcat5&redirect=no
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):
libtool
(ftp://ftp.gnu.org/gnu/libtool)autoconf
(http://ftp.gnu.org/gnu/autoconf)ant
(http://jakarta.apache.org/ant/)
ant
should already be installed (since it's necessary for DSpace). Iflibtool
orautoconf
are missing (both should be in/usr/bin
), download the source and compile using the following commands:Code Block ./configure make make install
...
(4) Download the latest mod_jk
source from the Tomcat Download site http://jakarta.apache.org/site/downloads/downloads_tomcat.html.
(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/*
will be forwarded to Tomcat! However, if you specify /*
, then all requests to http://my-host-name/*
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/*
or http://my-host-name/anotherApp/*
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!