- .htaccess
- AuthType Basic
- AuthName "Password Protected Area"
- AuthUserFile /var/www/html/.htpasswd
- Require valid-user
- .htpasswd
- micha:$apr1$2cGB44M5$WHX.GjwxyjDm9KeJjUXS1/
- timo:$apr1$VZdMh.J/$wlVg50QesIV5XyFBuuG6/1
- AuthUserFile needs the full path, check path in your phpinfo() or with the following
- <?php
- echo "<p>Full path to this dir: " . $dir . "</p>";
- echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>";
Recent Pastes