Hi all,
I cant figure out what i need to do to configure apache2 to talk to tomcat on my Debian linux environment. I have liferay running on Tomcat which i can access via the following URL
Code:
http://192.168.0.2:8080/web/guest
I am trying to configure Apache2 using mod_jk to allow me to access liferay using something like
http://192.168.0.2/liferay but everything i do just returns the following error
Code:
The requested URL /liferay was not found on this server.
Apache/2.2.9 (Debian) mod_jk/1.2.26 PHP/5.2.6-1+lenny3 with Suhosin-Patch Server at 192.168.0.2 Port 80
Here is my configuration
workers.properties
Code:
workers.java_home=/data/resourceRepository/external/bin/SDK/jdk
ps=/
worker.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1
/etc/apache2/sites-available/liferay
Code:
hpmedia:/etc/apache2/sites-available# cat liferay
<VirtualHost *:80>
ServerAdmin webmaster@localhost
JkMount /liferay default
DirectoryIndex index.php index.html
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
</VirtualHost>
hpmedia:/etc/apache2/sites-available#
There is a symbolik link in sites-enabled that points to the above file.
changes to /etc/apache2/apache2.conf
Code:
JkWorkersFile /data/resourceRepository/internal/workarea/liferay/liferay_home/apache-tomcat-6.0.20/conf/workers.properties
JkLogFile /data/resourceRepository/internal/workarea/liferay/liferay_home/apache-tomcat-6.0.20/logs/jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
/etc/apache2/mods-enabled/jk.load
Code:
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
My environment is as follows
Debian 5.2
Java5
Tomcat 6
Liferay 5.2.3
Apache2
Is there anything i am doing wrong in the above configuration?
Thanks in advance.