|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Will tomcat allow me to configur access to a single folder?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? Thanks. - Josh |
|
|
Re: Will tomcat allow me to configur access to a single folder?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@... For additional commands, e-mail: users-help@... |
|
|
RE: Will tomcat allow me to configur access to a single folder?> From: Josh Gooding [mailto:josh.gooding@...]
> Subject: Will tomcat allow me to configur access to a single folder? > > Can I configure tomcat so that everytime someone went to the > /external site dump section, it would ask for credentials? Read section 12 of the servlet spec for a description of how to configure security. In particular, you will need a WEB-INF/web.xml file containing a <security-constraint> section with a <url-pattern> of / (which indicates all URLs are covered; you will not need any <servlet> or <servlet-mapping> declarations, since they're covered by Tomcat's default web.xml. Look at the WEB-INF/web.xml of Tomcat's manager or host-manager app for examples. You will need a <Realm> declaration for the webapp to provide the authentication mechanism. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Will tomcat allow me to configur access to a single folder?Josh Gooding wrote:
> Unlike Apache HTTPD, can Tomcat be configured to allow access to a single > directory? Huh ? Which Apache http documentation have you been reading ? Not this one : http://httpd.apache.org/docs/2.2/howto/auth.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Will tomcat allow me to configur access to a single folder?What I was saying is that in httpd, you can configure httpd to do what I
want, but I was unsure if you could in tomcat. Since I'm not using httpd, I just wanted to see if I can configure access to a specific folder in Tomcat. I am setting up a backup site for a group of people on my domain. That's all. On Mon, Nov 2, 2009 at 4:03 AM, André Warnier <aw@...> wrote: > Josh Gooding wrote: > >> Unlike Apache HTTPD, can Tomcat be configured to allow access to a single >> directory? >> > Huh ? > > Which Apache http documentation have you been reading ? > Not this one : > http://httpd.apache.org/docs/2.2/howto/auth.html > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: Will tomcat allow me to configur access to a single folder?Josh Gooding wrote:
> What I was saying is that in httpd, you can configure httpd to do what I > want, but I was unsure if you could in tomcat. Since I'm not using httpd, I > just wanted to see if I can configure access to a specific folder in > Tomcat. I am setting up a backup site for a group of people on my domain. > That's all. > >> Josh Gooding wrote: >> >>> Unlike Apache HTTPD, can Tomcat be configured to allow access to a single >>> directory? >>> Q: Can Tomcat, like httpd, be configured to allow access to a single directory ? A: yes. :-) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Will tomcat allow me to configur access to a single folder?Basically this is a dump for back up files, that's all. I have a website at
the .com level, would I have to put in another entry in the server.xml for this and then populate the (dump) directory with the WEB-INF / META-INF resources? I think I can configure the login with a file instead of having to have a JDBC connection to a database. On Mon, Nov 2, 2009 at 10:51 AM, André Warnier <aw@...> wrote: > Josh Gooding wrote: > >> What I was saying is that in httpd, you can configure httpd to do what I >> want, but I was unsure if you could in tomcat. Since I'm not using httpd, >> I >> just wanted to see if I can configure access to a specific folder in >> Tomcat. I am setting up a backup site for a group of people on my domain. >> That's all. >> >> Josh Gooding wrote: >>> >>> Unlike Apache HTTPD, can Tomcat be configured to allow access to a >>>> single >>>> directory? >>>> >>>> So, you really meant : > Q: Can Tomcat, like httpd, be configured to allow access to a single > directory ? > A: yes. > :-) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
| Free embeddable forum powered by Nabble | Forum Help |