LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 08-19-2002, 06:34 AM   #1
adcworks
LQ Newbie
 
Registered: Aug 2002
Distribution: Mandrake 8
Posts: 10

Rep: Reputation: 0
Apache 2 Error 302 / JSP


Hi

Day 3 now of total ball aching hair pulling frustration caused by Apache 2.

All I want is a relaxing day at work, being able to develop my nice little JSP/Servlet web apps without the hassle of Apache 2 for one.

So...I have installed Apache 2. Harmless and lovely when working on it's own. Tomcat 4 is not the issue. This is the good part...all configured and fine when working on its own too.

Now, I want to type this...

http://123.456.78.9/webappname

and have my nice web app INDEX.JSP come up on the screen.

But no. I get a blank page instead. I figured this is because there was no trailing slash so I tried

http://123.456.78.9/webappname/

No go. FINALLY I tried

http://123.456.78.9/webappname/index.jsp

IT WORKS!!! But no good to me. I need the URL operational without the INDEX.JSP part.

Things tried so far...

1) added index.jsp to Apache DirectoryIndexes and added Indexes to the Options of the Directory element that maps to my htdocs root.

2) Tried using the Alias and RewriteEngine to map /webappname to /webappname/index.jsp. No go.

3) Tried using a symbolic link to index.jsp in htdocs/webappname. NO GO (you can see why I am pissed off)

4) Tried kicking and punching the screen several times and threatening it. Did not work.

Useful information....

1) I had this working in Apache 1.3 by setting the ServerName ti the IP address (this I already did in my new Apache 2 httpd.conf)

2) Apache 2 access log shows my requests without the index.jsp on the end as Http Error 302 which is some sort of Moved Temporarily error.

3) Tomcat acccess log does not register anything unless the index.jsp is put on originally. This means that Tomcat is not even getting the requests where index.jsp is left off.

4) I am using the warp web_app module to map to web apps. My URL paths only work when I have a trailing slash on them like this;

WebAppDeploy webappname warpConnection /webappname/

HEEEEEEELLLLLPPPPPPPPPPPP
 
Old 08-19-2002, 11:31 AM   #2
chens_83
Member
 
Registered: Dec 2001
Location: Adelaide , South Australia
Distribution: redhat 7.2, Debian , OpenBSD
Posts: 123

Rep: Reputation: 15
hmm

Last edited by chens_83; 08-19-2002 at 11:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error.jsp zakidad Linux - Newbie 1 07-28-2005 03:08 AM
Install tomcat as a module of Apache for running JSP kernelvn Linux - Networking 1 09-28-2004 12:41 AM
Apache/Tomcat : jsp = "No Host matches server name" ghow961 Linux - Networking 0 07-01-2004 07:20 PM
an error occur when jsp connect to mysql? shitian8848 Programming 2 06-04-2004 03:08 PM
error: failed to lstat /tmp/.302.2fa859: ferdog Linux - Newbie 7 07-18-2003 10:14 AM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration