Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I use.htaccess to passprotect a folder?

Status
Not open for further replies.

MrKovacic

IS-IT--Management
Nov 5, 2002
213
US
Hello,
I am having touble password protecting a directory on my site. With what I have now, it does ask me for a username and password, but it does not accep any username/pass combo I give it. I have the password encoded. Anyone have any ideas???


.htaccess File
AuthUserFile /usr/m/muzaic/htdocs/aptest/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic

require user mike

.htpasswd File
mike:27VVnwfPglBks
 
I solved my own problem, seems my .htaccess File had a bad path! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top