Monday, February 11, 2008

.htaccess: order not allowed here

I was getting an 500 Internal Server Error when trying to access Drupal after installing it, when I checked the http error log it said : .htaccess: order not allowed here.

After adding this to the httpd.conf and restarted apache it worked:

< directory "/home/httpd/html/drupal" >
AllowOverride FileInfo Limit Options Indexes
< /directory >

change "/home/httpd/html/drupal" to wherever your document root is.

1 comment:

Anonymous said...

Here is what fixed the "500 Internal Server Error" and my http error log that said : .htaccess: order not allowed here.

I'll put a (bracket) where there should be an actual bracket character. This form doesn't allow me to put the actual bracket.

My .htaccess file

AuthName "example"
AuthUserFile /home/example/passwd
AuthType Basic
(bracket) LimitExcept NONE (bracket)
order deny,allow
deny from all
allow from
require valid-user
Satisfy any

In my httpd.conf file:

DocumentRoot /home/example/www
ErrorLog logs/example-error_log
CustomLog logs/example-access_log combined
(bracket)Directory /home/example/www(bracket)
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all