Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I seem to be having a problem with my htaccess file. Here is the code

AuthUserFile /core/.htpasswd
AuthGroupFile /dev/null
AuthName "Restricted Area"
AuthType Basic
require valid-user

Basically what happens is that it asks for the password, you put it in and it launches into an infinite redirect. This eventually times out and the connection is reset. Anyone have any ideas?

share|improve this question

migrated from stackoverflow.com Jun 29 '10 at 1:15

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

If you dont need groups, you should simply remove the "AuthGroupFile" directive. The path /dev/null points to a device and the stream "never ends". Any process will infinitly read the ressource, hence the timeout.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.