Page 1 of 1

Server 500 error when using .htaccess on xampp [Solved]

PostPosted: 02. March 2013 03:42
by dancingmongoose
Xampp lite 1.7.7, running on windows 7

I have a site:
Code: Select all
xampp/htdocs/site/statssite/admin

and inside there I have what you would expect of a site, and index etc blah blah blah. I also have .htaccess and .htpassword files.

.htaccess file:
Code: Select all
AuthType Basic 
AuthName "Admin Only" 
AuthUserFile /site/StatsSite/admin/.htpasswd
require valid-user


.htpassword file:
Code: Select all
user:papAq5PwY/QQM

(in other words username is user, password is password, yes I will change it to something more secure once I actually get it working).

But whenever I log in, I get a page looking like this:
Image

I have set the httpd.conf AllowOverride to 'ALL', but it still doesn't work.

Anybody help me?

Re: Server 500 error when using .htaccess on xampp

PostPosted: 02. March 2013 05:32
by Altrea
Contents of your \xampp\apache\logs\error.log?

Re: Server 500 error when using .htaccess on xampp

PostPosted: 02. March 2013 07:31
by dancingmongoose
Never mind, I figured out the problem, there was a typo in the AuthUserFile address, and also the password needed to not be encrypted for it to work. Thanks anyway