Quantcast
Channel: FedoraForum.org
Viewing all articles
Browse latest Browse all 35424

Apache .htaccess not working

$
0
0
hello everyone, and thank you for your help. I'm new to your forum and I look forward to some good times.

I am a novice at apache and am trying to protect my directories. I could use one of those management programs, but that wouldn't be any fun, right?

anyway, I opted to go with .htaccess and have been reading up on it. I created my .htaccess file, and then my password file using htpasswd.

AuthName "Please Input Credentials"
AuthUserFile /var/www/html/testaccess/passwordfile
AuthType Basic
require user user1

Then, I changed the httpd.conf file to read the following, and I restarted the service using 'service httpd restart'

<Directory />
Options FollowSymLinks
AllowOverride all
</Directory>

this is a fresh install of apache on Fedora 17. The default index.html file will pop up on the web browser with no authentication.

Any thoughts? Thanks again!

Viewing all articles
Browse latest Browse all 35424

Trending Articles