htaccess htpasswd tomacat on windows

htaccess htpasswd tomacat on windows

am 23.06.2007 17:35:40 von TEO

how can i anable the .htaccess and .htpasswd under tomcat 5.5 installed on
windows xp without iis.
I found that I need to add:


AllowOverride All



under httpd.conf, but that file is not present on the default installation
of tomcat 5.5 for windows, i shoul find it under

C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf but ther is
not!!

I have positioned the two files under the folder that I wont to protect:

..htaccess:

==========

AuthUserFile /server/webapps/private/.htpasswd

AuthName "Protected Site"

AuthType Basic



require valid-user



================

..htpasswd:

user1:password



But the auth form does not appear. The access is always free.

How can i do to anable the folder autentication???



Thx

Teo.

Re: htaccess htpasswd tomacat on windows

am 23.06.2007 22:26:44 von unknown

Post removed (X-No-Archive: yes)

Re: htaccess htpasswd tomacat on windows

am 24.06.2007 19:12:07 von TEO

> As far as I know, TomCat does not support .htaccess or .htpasswd.
> Davide
>
> --


Ciao Davide,
mi sa che hai ragione!

Sono riuscito a risolvere solo con la creazione della cartella WEB-INF ed ho
gestito l'autenticazione tramite il file web.xml.

Ti ringrazio.
Teo.