I've set up my VPS, installed httpd under yum install httpd
and restarted the server. When I've added a .htaccess
to /var/www/html
nothing works at all, which inside the htaccess file has an authentication required and does not show anything except gives me an access to the "protected" directory.
AuthType Basic
AuthName "Private"
AuthUserFile /var/www/html/.htpasswd
Require valid-user
The .htpasswd
exists, but still nothing works at all. I've also tried a simple rewrite rule and that doesn't even work.
How do you get apache to work (or run properly)? Everything is just running and working fine except apache.
My server is running Centos 5 x86_64 Standard
.