Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner
Hello. I've searched the archives on this subject, but the nearest I've reached has been some posts about not serving static content. It's a bit of a surprise that no one has asked this before, so sorry if it is a recurrent question. I want Tomcat (4) to execute JSPs as usual, but prevent it

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Tim Funk
Ideally, files you don't want to be seen should be placed in WEB-INF. An alternative is to use a security constraint on the directory that has all of the content. This can be done in apache too via the Location directive. Another way is to place all those JSP's with a different extension and

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Ben Souther
It sounds like Albert wants certain (static) files to be viewable. He just doesn't want anyone to be able to execute JSPs from this directory. One thing you could try is a servlet mapping that sends all requests ending in that directory that end with .jsp to a servlet that sends back a message

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Ben Souther
One thing you could try is a servlet mapping that sends all requests ending in that directory that end with .jsp ...all requests FROM that directory that end with .jsp. Haven't had my coffee yet.. ;-) On Friday 12 December 2003 09:36 am, Ben Souther wrote: It sounds like Albert wants

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner
. - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 12, 2003 3:36 PM Subject: Re: Disabling JSP execution under certain dirs It sounds like Albert wants certain (static) files to be viewable. He just doesn't want anyone to be able

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Mark R. Diggory
PROTECTED] Sent: Friday, December 12, 2003 3:36 PM Subject: Re: Disabling JSP execution under certain dirs It sounds like Albert wants certain (static) files to be viewable. He just doesn't want anyone to be able to execute JSPs from this directory. One thing you could try is a servlet mapping

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Tim Funk
JSP execution under certain dirs It sounds like Albert wants certain (static) files to be viewable. He just doesn't want anyone to be able to execute JSPs from this directory. One thing you could try is a servlet mapping that sends all requests ending in that directory that end with .jsp

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner
. Diggory [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 12, 2003 4:24 PM Subject: Re: Disabling JSP execution under certain dirs Yes, Unfortunately, I bounced off this as well, it would have behooved the Servlet API developers to allow URL Rewrites to be a little

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Ben Souther
] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 12, 2003 3:36 PM Subject: Re: Disabling JSP execution under certain dirs It sounds like Albert wants certain (static) files to be viewable. He just doesn't want anyone to be able to execute JSPs from this directory. One

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Mark R. Diggory
PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 12, 2003 4:24 PM Subject: Re: Disabling JSP execution under certain dirs Yes, Unfortunately, I bounced off this as well, it would have behooved the Servlet API developers to allow URL Rewrites to be a little more powerful

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Mark R. Diggory
] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 12, 2003 4:24 PM Subject: Re: Disabling JSP execution under certain dirs Yes, Unfortunately, I bounced off this as well, it would have behooved the Servlet API developers to allow URL Rewrites to be a little more powerful from a REGEXP