Mobile app version of vmapp.org
Login or Join
BetL925

: .htaccess and .htpasswd throwing 500 internal server error I've created a .htaccess and a .htpasswd file, both using my hosting's tool, uploaded them, and I get an error when I try to view

@BetL925

Posted in: #Htaccess #Htpasswd

I've created a .htaccess and a .htpasswd file, both using my hosting's tool, uploaded them, and I get an error when I try to view the directory. Why?

my .htaccess file:

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/u947248131/.htpasswd
AuthGroupFile /dev/null
require valid-user

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

1 Comments

Sorted by latest first Latest Oldest Best

 

@Phylliss660

in your .htaccess file is it within
<Directory /path/to/the/directory >
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/u947248131/.htpasswd
AuthGroupFile /dev/null
require valid-user
</Directory>


More help httpd.apache.org/docs/2.2/howto/auth.html#gettingitworking
Otherwise if you can put the error log that would help

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme