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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby dancingmongoose » 02. March 2013 03:42

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?
dancingmongoose
 
Posts: 5
Joined: 21. June 2012 08:29
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Server 500 error when using .htaccess on xampp

Postby Altrea » 02. March 2013 05:32

Contents of your \xampp\apache\logs\error.log?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6623
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64

Re: Server 500 error when using .htaccess on xampp

Postby dancingmongoose » 02. March 2013 07:31

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
dancingmongoose
 
Posts: 5
Joined: 21. June 2012 08:29
XAMPP Version: 5.6.3
Operating System: Windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: borus, naimish88 and 66 guests