| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: Probel with password protected folder |  |  
| Author |  |  
| rictus 
 
 
 Joined: 12 Sep 2006
 Posts: 4
 
 
 | 
|  Posted: Wed 13 Sep '06 20:21    Post subject: Probel with password protected folder |   |  
| 
 |  
| Hi, Im trying to password protect a folder and on that folder I place the file .htaccess, on other folder outside my root I put the .passwordfile. 
 On the httpd.conf file I make this change:
 
 <Directory />
 Options FollowSymLinks
 AllowOverride AuthConfig
 Order deny,allow
 Deny from all
 Satisfy all
 
 </Directory>
 
 For some reson everytime I go to the protected folder ... it never ask for the password.
 
 On the error.log I find this message:
 client denied by server configuration: C:/webserver/public_html/secure/.htaccess
 
 Note that C:/webserver/ = /home/
 
 What I did wrong?
 |  |  
| Back to top |  |  
| Steffen Moderator
 
 
 Joined: 15 Oct 2005
 Posts: 3131
 Location: Hilversum, NL, EU
 
 | 
|  Posted: Wed 13 Sep '06 20:38    Post subject: Re: Probel with password protected folder |   |  
| 
 |  
| Always good to know which version of Apache you are using ? 
 
 First try the basic stuff and see if that works:
 
 <Directory />
 AllowOverride all
 AuthBasicAuthoritative Off
 AuthUserFile x:/xxxxx/passwordfile
 </Directory>
 |  |  
| Back to top |  |  
| rictus 
 
 
 Joined: 12 Sep 2006
 Posts: 4
 
 
 | 
|  Posted: Wed 13 Sep '06 20:59    Post subject: Prblem with Password protected directory |   |  
| 
 |  
| Well I have Apache Version 2.2 
 And I make the change on my httpd.conf file as you said and for some reason it still not working
 |  |  
| Back to top |  |  
| rictus 
 
 
 Joined: 12 Sep 2006
 Posts: 4
 
 
 | 
|  Posted: Wed 13 Sep '06 21:19    Post subject: Resolution for this problem |   |  
| 
 |  
| I find the problem so I will post it here....Maybe I use a old tutorial or something like that, but at least for version 2.2 it seems that "AuthConfig" must be added here (it is on bold and underline).... 
 
 <Directory "root directory">
 #
 # Possible values for the Options directive are "None", "All",
 # or any combination of:
 #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
 #
 # Note that "MultiViews" must be named *explicitly* --- "Options All"
 # doesn't give it to you.
 #
 # The Options directive is both complicated and important.  Please see
 # http://httpd.apache.org/docs/2.2/mod/core.html#options
 # for more information.
 #
 Options Indexes FollowSymLinks ExecCGI
 
 #
 # 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
 
 </Directory>
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |