Martin, The difference between the two URLs is the trailing "/" character. With Apache httpd I can specify the URL http://foo.bar/help/ and http://foo.bar/help and I will get the index.html under the help directory.
With Tomcat the first URL, with the trailing slash, will return the index.html. The second URL, without the trailing "/" seems to be treated as a filename, and returns a 404. So what I'm trying to get Tomcat to is return the index.html for both URLs, similar to what Apache httpd is doing. Thanks Len On 5/6/07, Martin Gainty <[EMAIL PROTECTED]> wrote:
the URLs look identical??? inside /WEB-INF/web.xml you *should* see a welcome-file-list <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> This should be the file displayed when the webapp is loaded Is this not the case??? Thanks Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. ----- Original Message ----- From: "Leonard Smith" <[EMAIL PROTECTED]> To: <users@tomcat.apache.org> Sent: Sunday, May 06, 2007 12:03 PM Subject: Tomcat treating a directory as a file > To all, > > I'm running Tomcat 5.5 on linux and I'm running into a problem with > URLs. I have a directory in my webapp called "help" with an index.html > in that directory. If I goto the URL http://foo.bar/help I get a 404 > and the index.html is not loaded. However if I goto the URL > http://foo.bar/help/ things work fine. > > This is different than what i've seen with Apache httpd and I'm > assuming it is just a config change, but I haven't been able to track > it down yet. > > Can someone point me in the right direction? > > Thanks, > Len > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]