Hi all,

I have been following this excellent tutorial http://apacheguide.org/ to
setup Apache 2.2.4 with Tomcat 5.5.23 and mod_jk.  It's mostly working,
except that http://mydomain.com/jsp-examples/num/numguess.jsp is showing the
.jsp source.  If I log into my web server and go to
http://localhost:8080/j<http://localhost:8080/jsp-examples/jsp2/el/basic-arithmetic.jsp>
sp-examples/num/numguess.jsp<http://mydomain.com/jsp-examples/num/numguess.jsp>everything
works as expected.  So based on this I am assuming that the
problem is with the workers and mod_jk.  I've done some googling, but wasn't
able to find any solutions.

If anyone can give me a hand, it would be much appreciated.

Below are the parts of all of the config files that I thought might be
related to the problem.  Let me know if I should include more info.  Thanks
in advance to anyone who can point me in the right direction.

jessica


***** Partial C:\Program Files\Apache Software
Foundation\Apache2.2\conf\http.conf ******

LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
Include "C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\auto\mod_jk.conf"




******* Complete C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\auto\mod_jk.conf ********

########## Auto generated on Wed May 23 19:03:26 CDT 2007##########

<IfModule !mod_jk.c>
 LoadModule jk_module "C:/Program Files/Apache Software
Foundation/Apache2.2/modules/mod_jk.so"
</IfModule>

JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
/conf/jk/workers.properties"
JkLogFile "C:/Program Files/Apache Software Foundation/Tomcat 5.5
/logs/mod_jk.log"

JkLogLevel emerg



<VirtualHost localhost>
   ServerName localhost

   JkMount /lib ajp13
   JkMount /lib/* ajp13

   JkMount /htdocs ajp13
   JkMount /htdocs/* ajp13

   JkMount /cgi-bin ajp13
   JkMount /cgi-bin/* ajp13

   JkMount /include ajp13
   JkMount /include/* ajp13

   JkMount /error ajp13
   JkMount /error/* ajp13

   JkMount /icons ajp13
   JkMount /icons/* ajp13

   JkMount /proxy ajp13
   JkMount /proxy/* ajp13

   JkMount /manager ajp13
   JkMount /manager/* ajp13

   JkMount /conf ajp13
   JkMount /conf/* ajp13

   JkMount /logs ajp13
   JkMount /logs/* ajp13

   JkMount /modules ajp13
   JkMount /modules/* ajp13

   JkMount /bin ajp13
   JkMount /bin/* ajp13

   JkMount /host-manager ajp13
   JkMount /host-manager/* ajp13

   JkMount /manual ajp13
   JkMount /manual/* ajp13
</VirtualHost>




******** C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\jk\workers.properties ********

[logger]
level=DEBUG
file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.log
[config]
file=C:/Program Files/Apache Software
Foundation/Apache2.2/conf/workers2.properties
debug=0
debugEnv=0


[shm]
file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.shm
size=1048576

# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# worker for the connector
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/status/*]
worker=status:status

[uri:/jsp-examples/num/*.jsp]
worker=ajp13:localhost:8009

[uri:/*.jsp]
worker=ajp13:localhost:8009







******** C:/Program Files/Apache Software
Foundation/Apache2.2/conf/workers2.properties (The tutorial told me to
create this file, but then I noticed the server logs were compaining that
there was no C:\Program Files\Apache Software Foundation\Tomcat
5.5\conf\jk\workers.properties so I just copied this file to that location
and changed the config file reference.  Not sure if that was the right thing
to do....) *******


[logger]
level=DEBUG
file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.log
[config]
file=C:/Program Files/Apache Software
Foundation/Apache2.2/conf/workers.properties
debug=0
debugEnv=0


[shm]
file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.shm
size=1048576

# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# worker for the connector
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/status/*]
worker=status:status

[uri:/jsp-examples/num/*.jsp]
worker=ajp13:localhost:8009

[uri:/*.jsp]
worker=ajp13:localhost:8009

Reply via email to