You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Forte, Graham" <gr...@ngc.com> on 2004/03/22 22:56:33 UTC

welcome page exposes contents of directory

When I add the following to my web.xml file the page is not displayed, but rather the "TC directory listing page" which displays the contents of my webapp(all pages and directories). 
Why does it do this?

<welcome-file-list>
	<welcome-file>https://www.myDomain.com/index.jsp</welcome-file>
</welcome-file-list>

To remedy this I have to do a response.sendredirect in test.jsp

[code]
<%response.sendRedirect("https://www.myDomain.com/index.jsp");
[/code]

and in my web.xml I do this:

<welcome-file-list>
	<welcome-file>test.jsp</welcome-file>
</welcome-file-list>

The reason is my site is https only.

One caveat:
I deleted contents of the ROOT directory that TC4 created during install and have dumped my webapp in there instead.
I dont know if this matters or not.

Thanks, Graham

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org