开发者

better way to debug XAMPP authentication issue

I've been working with a simple authentication process on localhost, here is the .htaccess file:

AuthType Basic
AuthName "Admin login page"
AuthUserFile /Application/XAMPP/htdocs/.htpasswd
AuthGroupFile /dev/null
Require User admin@coastalbooks.com.au

I have created the related .htpasswd file, the browser can prompt for me to enter the username and password.

However, when I tried to access the protected index.html, after entering the credentials, Firefox only got me a http 500 error.

Tried to use Firebug and curl to inspect the response, only to see the 500 status code, nothing else could give me a clearer idea of what went wrong.

Also check the access.log under XAMPP's Apache logs folder, still just got 500 errors without detailed feedback.

Any thoughts? What would you use to debug in such a case?

Many thanks in advance!

Edited:

Tried to add another new user to t开发者_如何学JAVAhe .htpasswd file, but still cannot get rid of the http 500 error.


The access.log file will only show you info about the requests, not errors. Look for error.log or error_log (or something similar) in the same folder.

If it's not in the same folder, check your virtual host definition and httpd.conf files to see where the error log is stored.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜