.htaccess

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
kpraman
Forum Contributor
Posts: 172
Joined: Fri Oct 13, 2006 10:54 am

.htaccess

Post by kpraman »

why this is not working?
.htaccess

Code: Select all

AuthName "Admin area"
AuthType Basic
AuthUserFile /http:phpserver:82/ht/.htpasswd
Require valid-user


.htpasswd

Code: Select all

username:password
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post by califdon »

First, your path to the user file doesn't look valid, it should be a local file path on the server, not a URL. Then, the contents of the user file must contain the encrypted password, not the plain language password, although maybe you only showed that as an example.
Post Reply