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 1.1.1.1
require valid-user
Satisfy any
(bracket)/LimitExcept(bracket)




In my httpd.conf file:


(bracket)VirtualHost test.example.com(bracket)
ServerAdmin admin@example.com
DocumentRoot /home/example/www
ServerName test.example.com
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
(bracket)/Directory(bracket)
(bracket)/VirtualHost(bracket)