Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
View Interest List Message Details
<< Back to Search Results

Date: 12/31/2002
Subject: RE: [ServletExec] Adding / as context path
When you say "... is not working.", might you mean that you are       
getting a
404 when requesting ?

If so, I think this problem is caused by how Apache handles default pages.
In httpd.conf, you may see:

<IfModule mod_dir.c>
   DirectoryIndex index.html

When apache gets a request like it changes it to be (Apache assumes that you want index.html).
*THEN* it passes the request to your web app running in SE (the one whose
context path is '/')
If index.html is not present, then a 404 results.

I'm not certain how to tell Apache to not do this, but there may be a way.

Basically, I think that Apache is trying to be "smart" and do some    
work with the request before passing it over to SE.

The reason I think this is because I request:

and my apache access log shows: - - [31/Dec/2002:10:55:43 -0500] "GET / HTTP/1.1" 200 3581

But the response in my browser is the error page that is configured in my
web app with context path of '/'.
That error page is mapped to the 404 return code, and it shows me that the
request URI is:
/index.html (that is what SE thinks it is, so that must be what Apache
changed it to be... index.html is NOT a welcome file in my web app)
And that error page tells me:
HTTP Status Code - 404

(I just used the exampleWebApp that comes with SE... deployed with              
'/' as
the context path, it already has this error page setup)
You may want to dig in an Apache adminstration book to see how to make
Apache stop doing that (if it is even possible at all).

One workaround would be to put an index.html in place which just does a
redirect to your index.jsp
Hope all this helps.

If you find out how to setup your Apache to get past this problem, please
let the list know.

Matt McGinty
Software Engineer
New Atlanta Communications, LLC

-----Original Message-----
[]On Behalf Of tom
Sent: Monday, December 30, 2002 5:12 PM
Subject: [ServletExec] Adding / as context path

I want to configure my web application with a context
path of /. So that typing comes
to my web application. This is not working in Apache
1.3.27 and ServletExec 4.2.

I added the following lines to httpd.conf of apache,

ServletExecApplications <instance name> /

<Location />
SetHandler servlet-exec

I also changed the context path of web application in
ServletExec/AS to /.

But this is not working. But if I type, this works.

Can anybody suggest me something else I need to do to
make it work.


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
ServletExec-Interest. For archives and unsubscribe instructions, visit:

ServletExec-Interest. For archives and unsubscribe instructions, visit:

Message Thread
Date Subject Author
12/31/2002 RE: [ServletExec] Adding / as context path
12/31/2002 RE: [ServletExec] Adding / as context path
01/02/2003 RE: [ServletExec] Adding / as context path
01/02/2003 RE: [ServletExec] Adding / as context path
01/06/2003 RE: [ServletExec] Adding / as context path
01/06/2003 RE: [ServletExec] Adding / as context path
12/30/2002 [ServletExec] Adding / as context path
<< Back to Search Results

company media information terms of use privacy policy contact us