Hei, just commented

<servlet servlet-name="directory" servlet-class="com.caucho.servlets.DirectoryServlet"/>

on resin.conf and when try to access folders a 404 Not Found Error Shows. It should be a 403 Permission Denied (since the folder exists) but it's ok with me!

Thanks

Lucas


From: Mattias Jiderhamn <[EMAIL PROTECTED]>
Reply-To: General Discussion for the Resin application server<resin-interest@caucho.com>
To: General Discussion for the Resin application server<resin-interest@caucho.com>, resin-interest@caucho.com
Subject: Re: [Resin-interest] How to deny directory listing with Resin?
Date: Wed, 10 Jan 2007 22:08:42 +0100

At least with 3.0, just uncomment this from resin.conf
  <servlet servlet-name="directory" servlet-class="com.caucho.servlets.DirectoryServlet"/>


At 2007-01-10 21:53, Lucas Pereira wrote:
Hi all,
 
I'm currently using Resin-3.1.0 as a standalone web server, and my question is how to deny the listing of the directorys that i am using.
For instance, i have a php folder, wich contains all my .php files) inside the webapps folder, and when i browse for http://localhost:8080/php i get the list of all my php files, and that also for other folders, like images. I've tried to use the .htaccess inside the folders but no success (since i don't no if i'm supose to use that of is the content of the file is correct.
 
.htaccess
<Directory /php>
AllowOverride None
Deny From All
</Directory>
 
Thanks
 
Lucas

>_______________________________________________
>resin-interest mailing list
>resin-interest@caucho.com
>http://maillist.caucho.com/mailman/listinfo/resin-interest



Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE!
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to