Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 11th, 2002, 08:39 PM
SpuTTer SpuTTer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: California, USA
Posts: 9 SpuTTer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
mod_jk overriding my DirectoryIndex values?

Trying to setup Tomcat 4.04 and Apache 2.039.

Everything appears to be working correctly.

I can access the files manually:

http://127.0.0.1/index.jsp
http://127.0.0.1:8080/index.jsp

The problem I'm having is that for some reason, I cannot use any .jsp as an index. Apache doesnt "see" the file, so it doesnt work. any other extention works great.

It works on the 8080 port, because Tomcat handles that indexing with no problem. However, on the 80 port with Apache httpd, it doesnt see the file, and I see a directory list instead. However the file is valid.

Any ideas?

Here is my directoryindex:

######### HTTPD.CONF ##############

DirectoryIndex index.jsp Index.jsp index.html Index.html

######### HTTPD.CONF ##############

Im not running virtual hosts, my servername is setup as 127.0.0.1...


######### HTTPD.CONF ##############

<IfModule mod_jk.c>

JkWorkersFile "c:/Apache/Tomcat/conf/jk/workers.properties"
JkLogFile "c:/Apache/Tomcat/logs/mod_jk.log"

JkLogLevel warn

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

</IfModule>

######### HTTPD.CONF ##############



If I take out the JKMount directives, the indexing works great, but of course the jsp page doesnt process.... Any ideas?

Thanks in advance!

Reply With Quote
  #2  
Old August 13th, 2002, 01:26 PM
SpuTTer SpuTTer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: California, USA
Posts: 9 SpuTTer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Anyone? Any help is appreciated!

Reply With Quote
  #3  
Old August 13th, 2002, 07:22 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What's your docroot?
Where in full server path is your jsp file?
Post that <Directory> block here.

Reply With Quote
  #4  
Old August 13th, 2002, 11:58 PM
SpuTTer SpuTTer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: California, USA
Posts: 9 SpuTTer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your response freebsd, I was hoping you'd see the post. Below is the section from my httpd.conf The location of my jsp file is C:/apache/Apache2/htdocs/index.jsp

I setup an "application" in tomcat to the same directory as the root of my server, so that it will server all jsp's on the site.

Please let me know if you need more information to help me diagnose the problem.


#### HTTPD.CONF #######

DocumentRoot "C:/apache/Apache2/htdocs"

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "C:/apache/Apache2/htdocs">

Options Indexes

AllowOverride None

Order allow,deny
Allow from all

</Directory>

<Location "/WEB-INF/">
AllowOverride None
deny from all
</Location>

....

DirectoryIndex index.jsp Index.jsp index.html Index.html

#### HTTPD.CONF #######


#### TOMCAT SERVER.XML ####

<Host name="127.0.0.1" debug="0" appBase="C:/Apache/Apache2/htdocs" unpackWARs="true">


###### TOMCAT SERVER.XML ######

Reply With Quote
  #5  
Old August 14th, 2002, 11:53 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
First off I have to tell you that I have never tried mod_jk and any Server related software running on win32. Though I am just trying my best to see if there is anything to do with your httpd.conf configuration.
When you are troubleshooting the problem, ALWAYS give higher log level. JkLogLevel warn almost doesn't produce any log. As a rule of thumb you should change that to debug or so, if it's available.
Now that you should know the web content handling of standard Apache is completely different from mechanism used in mod_jk. I believe the JkMount directive is equivalent to <Location> in standard Apache, which doesn't care about DirectoryIndex.

>> It works on the 8080 port, because Tomcat handles that indexing with no problem

That said, why must standard Apache goes beyond the border and serve jsp files when it's handled by mod_jk?

BTW, here has a sub-forum of Apache named Java Servlets & JSP in which your topic should fit better there.

Last edited by freebsd : August 14th, 2002 at 11:55 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > mod_jk overriding my DirectoryIndex values?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT