After the proper installation of DSpace. The DSpace instance can be accessed by typing this url in address bar of web browser.
After the integration of Apache Tomcat and Apache 2 the DSpace instance can be accessed by
In this blog I'll explain how you can connect Apache Tomcat with Apache 2 webserver so that you'll have to open only one port and can provide better security.
To install the Jakarta Tomcat Apache connector type as follows:
aptitude install libapache2-mod-jk libapache-mod-jk-doc
To setup Apache2 to use the mod_jk connector type the following:
a2enmod jk
/etc/init.d/apache2 reload
To configure the connector on the Apache side open the /etc/apache2/conf.d/tomcat.conf file with your favorite editor as my fav is vi I am using vi you can use any other. Type the following in terminal
sudo vi /etc/apache2/conf.d/tomcat.conf
Then insert the following:
<IfModule mod_jk.c> JkWorkersFile /etc/tomcat5.5/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkRequestLogFormat "%w %V %T" # JkMount directive is: JkMount [URL prefix] [Worker name] # send all requests ending in .jsp to ajp13_worker JkMount /*.jsp localhost # send all requests ending /servlet to ajp13_worker JkMount /*/servlet/ localhost # OWN ADDITIONS ####################################### JkMount /manager localhost JkMount /manager/* localhost JkMount /jspui localhost JkMount /jspui/* localhost JkMount /xmlui localhost JkMount /xmlui/* localhost JkMount /oai localhost JkMount /oai/* localhost JkMount /lni localhost JkMount /lni/* localhost JkMount /sword localhost JkMount /sword/* localhost </IfModule>
To configure the connector on the Tomcat side open the /etc/tomcat5.5/workers.properties file in your favorite editor and type the following:
sudo vi /etc/tomcat5.5/workers.properties
Then insert the following:
workers.apache_log=/var/log/apache2 workers.tomcat_home=/usr/share/tomcat5.5/ workers.java_home=/usr/lib/jvm/java-6-sun/ worker.list=localhost worker.localhost.port=8009 worker.localhost.host=localhost worker.localhost.type=ajp13 worker.localhost.lbfactor=1
Restart the Apache and Tomcat servers
Now restart apache and tomcat as follows:
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/tomcat5.5 restart
Now type following code in your browser your DSpace should open.
http://localhost/jspui
Done.
Discussion