#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2016
    Location
    Lakewood, WA
    Posts
    239
    Rep Power
    65

    .htpasswd / .htaccess problem


    I have an .htpasswd file located at /var/www/.htpasswd ...

    I have an .htaccess file located at /var/www/html/someDirectory/.htaccess

    I'm not getting a uid/password prompt, opens the directory straight-away.

    Here's the .htaccess file:
    Code:
    AuthUserFile /var/www/.htpasswd
    AuthName EnterPassword
    AuthType Basic
    <Limit GET POST>
    require valid-user
    </Limit>
    Any ideas?
  2. #2
  3. Headless Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,972
    Rep Power
    9647
    Are you sure the .htaccess is being read? They aren't by default.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2016
    Location
    Lakewood, WA
    Posts
    239
    Rep Power
    65
    Correct. Edited the httpd.conf.

IMN logo majestic logo threadwatch logo seochat tools logo