glitzi85 wrote:OK, please tell exactly what file you created (and how!), what you put inside and where you exactly put it. Where is your forbidden-Directory located?
How is your Apache configured? Did you any changes to the original httpd.conf or another configuration file of the Apache?
glitzi85 wrote:The AuthUserfile is not correct. It have to be the absolute Server Path. I am not sure if relative paths are allowed, here you can try both.
Absolute: AuthUserfile "/xampp/htdocs/forbidden/.htpasswd"
Relative: AuthUserfile "./.htpasswd"
JonNielsen wrote:Tried both.
# 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
# for more information.
Options -Indexes FollowSymLinks Includes 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
# Controls who can get stuff from this server.
Allow from all
Sharley wrote:Did you generate a .htpasswd file or did you just add a user/pass combination?
here are a couple of ways to generate a .htpasswd file:
Open a command console in C:\xampp\apache\bin
At the command prompt type htpasswd.exe
Follow the instructions especially the part about Windows and the m switch.
Easier if you like is to use an online Generator and here is but one of many:
http://www.webmaster-toolkit.com/htacce ... ator.shtml
When you have a valid .htpasswd file just replace your own and follow the paths Glitz outlined - but I did read that a full path including the drive letter should be used.
Users browsing this forum: No registered users and 72 guests