Running liferay behind Apache2 mod_jk and Tomcat6 on Debian

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

1
2http://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

1
2The requested URL /liferay was not found on this server.
3Apache/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

1
2workers.java_home=/data/resourceRepository/external/bin/SDK/jdk
3ps=/
4worker.list=default
5worker.default.port=8009
6worker.default.host=localhost
7worker.default.type=ajp13
8worker.default.lbfactor=1

/etc/apache2/sites-available/liferay

1
2hpmedia:/etc/apache2/sites-available# cat liferay
3<VirtualHost *:80>
4 ServerAdmin webmaster@localhost
5 JkMount /liferay default
6 DirectoryIndex index.php index.html
7
8 ErrorLog /var/log/apache2/error.log
9
10 # Possible values include: debug, info, notice, warn, error, crit,
11 # alert, emerg.
12 LogLevel warn
13
14</VirtualHost>
15hpmedia:/etc/apache2/sites-available#

There is a symbolik link in sites-enabled that points to the above file.

changes to /etc/apache2/apache2.conf

1
2JkWorkersFile /data/resourceRepository/internal/workarea/liferay/liferay_home/apache-tomcat-6.0.20/conf/workers.properties
3
4JkLogFile /data/resourceRepository/internal/workarea/liferay/liferay_home/apache-tomcat-6.0.20/logs/jk.log
5
6JkLogLevel info
7
8JkLogStampFormat “[%a %b %d %H:%M:%S %Y]”
9
10JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
11
12JkRequestLogFormat “%w %V %T”

/etc/apache2/mods-enabled/jk.load

1
2LoadModule 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?

here are my virtual hosts files in /etc/apache2/sites-enabled

1
2<VirtualHost *:80>
3 ServerAdmin webmaster@localhost
4
5 DocumentRoot /data/resourceRepository/internal/workarea/joomla/bravaonline
6 <Directory />
7 Options FollowSymLinks
8 AllowOverride None
9 </Directory>
10 <Directory /data/resourceRepository/internal/workarea/joomal/bravaonline/>
11 Options Indexes FollowSymLinks MultiViews
12 AllowOverride None
13 Order allow,deny
14 allow from all
15 </Directory>
16
17 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
18 <Directory “/usr/lib/cgi-bin”>
19 AllowOverride None
20 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
21 Order allow,deny
22 Allow from all
23 </Directory>
24
25 ErrorLog /var/log/apache2/error.log
26
27 # Possible values include: debug, info, notice, warn, error, crit,
28 # alert, emerg.
29 LogLevel warn
30
31 CustomLog /var/log/apache2/access.log combined
32
33 Alias /doc/ “/usr/share/doc/”
34 <Directory “/usr/share/doc/”>
35 Options Indexes MultiViews FollowSymLinks
36 AllowOverride None
37 Order deny,allow
38 Deny from all
39 Allow from 127.0.0.0/255.0.0.0 ::1/128
40 </Directory>
41</VirtualHost>

and the second one which i want to point to the tomcat installation is

1
2<VirtualHost www.brava1.com>
3 ServerAdmin webmaster@localhost
4 ServerName www.brava1.com
5 ServerAlias brava1.com
6
7 JkMount /lifer* default
8 DirectoryIndex index.php index.html
9
10 ErrorLog /var/log/apache2/error.log
11
12 # Possible values include: debug, info, notice, warn, error, crit,
13 # alert, emerg.
14 LogLevel warn
15
16</VirtualHost>

i changed it slightly to try and access it using http://www.brava1.com/liferay but i still get the same problem.

I setup a similar environment using these steps:
http://cmsclarity.com/node/6