Hello, I am running Apache 2.2.3 on Windows 2000. I cannot seem to get Apache to read my .htaccess files. (I am trying to implement password protection). Even when I set up a very basic .htaccess file with "deny fromall", Apache still ignores it and lets everyone in. Can anyone spot any problems below ? Thanks kindly for any help. This is driving me nuts ! Here is my .htaccess file which is located in the "tan" directory. (This is the directory I want to restrict access to. The ".htpasswd file" is in the folder "password" within the "tan" directory.) authUserFile "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\tan\password" AuthName "welcome user" AuthType Basic <Limit GET POST> require christan </Limit> Here is my password file: (located in tan\password) christan:$apr1$vd4.....$pKzzFaSCp8XuTBGz0KH2q0 Here are the relevant parts of my httpd.conf file: # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride AuthConfig Order deny,allow Deny from all Satisfy all </Directory> # <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/tan"> AllowOverride AuthConfig Order deny,allow </Directory> # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride AuthConfig # Controls who can get stuff from this server. # Order allow,deny Allow from all
Edit file .htaccess: AuthType Basic AuthName "Security Area" AuthUserFile "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\tan\password\.htpasswd" require valid-user
Hi there, I am trying to protect my folder through htaccess but after placing files in folder it does'nt enter me in folder. Code for htaccess: AuthType basic AuthName "Secure directory" AuthUserFile "C:/xampp/htdocs/statusmedia/reports/25125/.htpasswd" <Limit GET POST> require valid-user </Limit> and for htpasswd: admin:adpexzg3FUZAk please help me regarding this.