Forum Moderators: phranque

Message Too Old, No Replies

Password protect files in Tomcat

         

aspdaddy

1:01 pm on Jun 5, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi

want to provide way for a customer to download some files from a Windows/Tomcat server without having to use FTP.

For small numbers of requests, normally in Windows/IIS I would put the files in a virtual folder, turn off anonymous access to the folder, create a temp windows account with just access to the folder, turn on directory listing, give the the link to mysite.com/downloadfolder/ and the user/pass.

Can I do the same on Tomcat running on Windows? How? Someone said I should use HTAccess ... Whats the solution.

Thanks

lucy24

6:06 pm on Jun 5, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Not htaccess, htpasswd. Well, both in combination, I guess. Are you asking specifically about Tomcat, as opposed to Apache generically? If Apache, is it 2.2 or 2.4? (I don't want to consider the possibility that it's anything older, since it sounds as if you've just installed the system.) Is it your own server or shared hosting?

aspdaddy

9:05 am on Jun 9, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Lucy - Its Apache Tomcat 7.0.20 Server for hosting Java web applications. Its on my laptop at the moment as I'm just sorting out hosting
Thanks