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 December 16th, 2001, 01:57 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
DocumentIndex directive

Why does this work:
Code:
DirectoryIndex index.html


...and this doesn't?
Code:
DirectoryIndex index.jsp

# this doesn't either:
DirectoryIndex index.jsp index.html


I'm using Apache 1.3.20 and Tomcat 3.3. Strangely http://localhost/index.jsp works but http://localhost/ .

Last edited by filburt1 : December 16th, 2001 at 08:25 PM.

Reply With Quote
  #2  
Old December 16th, 2001, 02:24 PM
mezz mezz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 310 mezz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Only I can think of is... Did you restart your Apache when you configured the httpd.conf?

That's all I know, since I don't see any of problem with your configure.

Reply With Quote
  #3  
Old December 16th, 2001, 04:09 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I did, let me try restarting Tomcat as well to see if that makes a difference...

Reply With Quote
  #4  
Old December 16th, 2001, 04:16 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
No change. BTW, I meant DirectoryIndex, not DocumentIndex.

Reply With Quote
  #5  
Old December 16th, 2001, 05:06 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
do .jsp pages work OK on your server otherwise?

Reply With Quote
  #6  
Old December 16th, 2001, 05:23 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes.

Reply With Quote
  #7  
Old December 16th, 2001, 07:59 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
Are you applying this server wide or in a virtual host?

I feel like this is a stretch here, but is this DirectoryIndex defined above or below where you added the directives to load Tomcat? If it's above where .jsp pages are assigned to Tomcat, you may want to move it below- httpd.conf is parsed from the top down, I believe.

Do you get an error message? How is it not working? What's in your server error logs?

Reply With Quote
  #8  
Old December 16th, 2001, 08:25 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It's loaded server-wide, mainly because I don't know how to do virtual hosts.

It is defined above the Tomcat definition (all you have to do is Include conf/tomcat.conf). I don't get an error message, it just never serves any page and times out. Strangely enough there is nothing in the error.log file.

Let me try rearranging the Tomcat inclusion and the DirectoryIndex directive.

Reply With Quote
  #9  
Old December 16th, 2001, 08:30 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by filburt1
Let me try rearranging the Tomcat inclusion and the DirectoryIndex directive.


No change:
Code:
Include conf/tomcat.conf

#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.jsp index.html
</IfModule>

Let me try an experiment here...

Reply With Quote
  #10  
Old December 16th, 2001, 08:31 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Commenting the <IfModule> lines made no difference.

Reply With Quote
  #11  
Old December 18th, 2001, 03:30 PM
shakadev shakadev is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: Vienna, Austria
Posts: 12 shakadev User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just guessing here:

Apache is running?
You do get other pages?
Your index.jsp works?
Try a plain html-page and rename it index.jsp.
If you get a time out and you don't have an entry in your access_log, it looks like the request for the page is passed to tomcat and tomcat fails to do whatever it should do.
I don't know much about tomcat but i guess you'd have to do something like

AddType application/x-httpd-php .php

(only for jsp of course) in your httpd.conf

Reply With Quote
  #12  
Old December 19th, 2001, 05:40 AM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Apache is running.
I get other pages.
Index.jsp works.
Trying the rename...
About the timeout, why would a page be served then if I ask it for http://localhost/apacheroot/index.jsp?
Trying the AddType...

Reply With Quote
  #13  
Old December 19th, 2001, 08:18 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I copied the index.html to index.jsp and tried it, now it gives me IE's cheery This page could not be displayed because it couldn't find a server, even though both Apache and Tomcat are running.

Reply With Quote
  #14  
Old December 19th, 2001, 08:19 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
tomcat.conf, which at the end of my httpd.conf is included, already has this: AddType text/jsp .jsp.

Reply With Quote
  #15  
Old December 19th, 2001, 08:46 PM
filburt1 filburt1 is offline
Programmer/Webmaster
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 18 filburt1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I think I found the problem, I mistyped the IP address for the server in the httpd.conf file. I was off by one digit, it was amazing it would work at all.

Thanks for your help guys.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > DocumentIndex directive


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