You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luciano Andress Martini <77...@gmail.com> on 2012/01/11 14:00:06 UTC
Really block a directory
I need to block a directory in Tomcat, with all the files and
sub-dirs, i cant change the path of this directory. =[
Like we do in Apache2, and without changing files permission.
Its possible?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Really block a directory
Posted by Luciano Andress Martini <77...@gmail.com>.
humm thank you so much =[ But how can i make a servlet, i never worked
with tomcat before...
Thank you very much and sorry, but i dont have a good english to
understand all the documentation, maybe if you indicate a page of the
doc...
2012/1/11, Mark Thomas <ma...@apache.org>:
> On 11/01/2012 13:00, Luciano Andress Martini wrote:
>> I need to block a directory in Tomcat, with all the files and
>> sub-dirs, i cant change the path of this directory. =[
>> Like we do in Apache2, and without changing files permission.
>>
>> Its possible?
>
> Yes.
>
> Write a Servlet. Hard code it to return 404 and map it to the path that
> equates to the directory.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Really block a directory
Posted by Luciano Andress Martini <77...@gmail.com>.
Humm thank you the urlrewriterfilter sounds very good, i will try it.
Thank you from Brazil.
2012/1/11, Mikolaj Rydzewski <mi...@ceti.pl>:
> On Wed, 11 Jan 2012 13:04:24 +0000, Mark Thomas wrote:
>> On 11/01/2012 13:00, Luciano Andress Martini wrote:
>>> I need to block a directory in Tomcat, with all the files and
>>> sub-dirs, i cant change the path of this directory. =[
>>> Like we do in Apache2, and without changing files permission.
>>>
>>> Its possible?
>>
>> Yes.
>>
>> Write a Servlet. Hard code it to return 404 and map it to the path
>> that
>> equates to the directory.
>
> Or use some kind of URL rewriter, e.g.
> http://code.google.com/p/urlrewritefilter/
>
> --
> Mikolaj Rydzewski <mi...@ceti.pl>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Really block a directory
Posted by Mikolaj Rydzewski <mi...@ceti.pl>.
On Wed, 11 Jan 2012 13:04:24 +0000, Mark Thomas wrote:
> On 11/01/2012 13:00, Luciano Andress Martini wrote:
>> I need to block a directory in Tomcat, with all the files and
>> sub-dirs, i cant change the path of this directory. =[
>> Like we do in Apache2, and without changing files permission.
>>
>> Its possible?
>
> Yes.
>
> Write a Servlet. Hard code it to return 404 and map it to the path
> that
> equates to the directory.
Or use some kind of URL rewriter, e.g.
http://code.google.com/p/urlrewritefilter/
--
Mikolaj Rydzewski <mi...@ceti.pl>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Really block a directory
Posted by Mark Thomas <ma...@apache.org>.
On 11/01/2012 13:00, Luciano Andress Martini wrote:
> I need to block a directory in Tomcat, with all the files and
> sub-dirs, i cant change the path of this directory. =[
> Like we do in Apache2, and without changing files permission.
>
> Its possible?
Yes.
Write a Servlet. Hard code it to return 404 and map it to the path that
equates to the directory.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org