tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Will tomcat allow me to configur access to a single folder?
Date Mon, 02 Nov 2009 02:42:00 GMT
Josh Gooding wrote:
> Unlike Apache HTTPD, can Tomcat be configured to allow access to a single
> directory?  I am looking at writing a bit of code to be able to upload spare
> files to a section on the webserver, and then be able to view them and d/l
> them.  Writing the code for the upload is not hard, but just wondering since
> I have a .com, if I had say domain.com/external site dump/  Can I configure
> tomcat so that everytime someone went to the /external site dump section, it
> would ask for credentials?  Is this just a simple realm configuration?

Yep. Create it as a separate context and add a realm.

Mark


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


Mime
View raw message