HTTP – AH01627: AuthType error configured with no corresponding authorization directives

Receiving the above (AH01627) error?

You have a misconfiguration usually in .htaccess. It usually happens when you’ve upgraded Apache.

HTTP – AH01627: AuthType configured with no corresponding authorization directives

It’s quite simple, all you need to add is the following line into your .htaccess file:

Require valid-user

So for example a full .htaccess file would look like this:

AuthGroupFile /dev/null
AuthType Basic
AuthUserFile /path/to/.htpasswd
AuthName "Testing"
Require valid-user

 

Leave a Reply

Your email address will not be published. Required fields are marked *

 

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>