Solved

mod_jk and apache 2.0

Posted on 2004-08-30
5
495 Views
Last Modified: 2010-04-01
What do I have to do to get JSP's to run in the web root folder?

I have my apache set up to run php and perl and I added the Tomcat server and mod_jk

if I go to localhost/jsp-examples the examples are there and they work, but what I need, is to be able to put jsp's in the apache root folder and have it interpreted by tomcat.

any ideas?

Thanks!
0
Comment
Question by:k41d3n
  • 3
5 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 11935284
Apache htp server itself can't execute JSP pages. mod_jk redirects request to Tomcat server which will execute process request and return back to the Apache HTTPD server.
You should add following lines in your httpd.conf

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount *.jsp  ajp13


And workers.properties file:
worker.list= ajp13
# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=Ip address of tomcat server
worker.ajp13.type=ajp13
0
 
LVL 2

Author Comment

by:k41d3n
ID: 11935428
When I make those changes in my http.conf file, then restart the apache server it fails to start.

I am actually using mod_jk2 not mod_jk that was my mistake in not saying so.

any ideas why it errors?
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 11935542
have never worked with JK2. Only one thing I know that its configuration is differs from JK
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 11935563
Can only poin to site with config guide http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
0
 
LVL 27

Accepted Solution

by:
rrz earned 500 total points
ID: 11936231
I don't know anything about Apache stuff.
>but what I need, is to be able to put jsp's in the apache root folder and have it interpreted by tomcat.                
 But, I think you have to tell Tomcat where to find your JSP files(since you are not putting them in default location.  Please look at    
http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_20883065.html  
rrz
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now