Re: apache2 directory protection



On Fri, Dec 04, 2009 at 11:14:38AM -0500, vr wrote:
I am having trouble getting apache2 recognizing directory protection.

I've created a directory /var/www/mydir and created .htaccess & .htpasswd
files in there but am never prompted for login.

.htaccess
AuthUserFile /var/www/mydir/.htpasswd
AuthType Basic
AuthName "test"
require valid-user

.htpasswd
mytestuser:<hashedScramble>

I understand that .htpasswd should reside someplace else and even moved it
to rule this out but is the above not enough on a default installation of
apache2 under lenny to protect a directory?

Do you have next line in the httpd.conf:

<Directory /var/www/mydir>
AllowOverride AuthConfig
</Directory>



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: apache2 directory protection
    ... .htpasswd files in there but am never prompted for login. ... require valid-user ... I understand that .htpasswd should reside someplace else and even ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: htpasswd
    ... Actually htpasswd is the command /executable to create a file which would be having the list of usernames with the password. ... actually it is also used to work in sync with .htaccess file which defines the access levels for the files and the directories and also to have the authentication purpose to resolve that who can access what files. ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • htpasswd
    ... I need use htpasswd in Fedora 2. ... is necessary start in the httpd service? ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: phpmyadmin
    ... I just don't really understand what is going on as the same server will serve up other php pages, but phpmyadmin seems only able to serve html pages. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ... Trouble? ...
    (Debian-User)
  • Re: _some_ DVDs wont play
    ... the DVD makes xine crash. ... No trouble playing almost all other DVDs. ... A borrowed set of LOTR discs will play on all machines. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)