500 Error on apache server - "AllowOverride not allowed here"

Tom

I have set up a server on my Mac (OSX 10.9) but it's returning a 500 error with the following message in the error log…

[alert] [client ::1] /Users/user/Sites/mysite/.htaccess: AllowOverride not allowed here

Here's the code in my .htaccess file

Options +FollowSymLinks -MultiViews
AllowOverride All

# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

RewriteMap lc int:toLower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule (.*) ${lc:$1} [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^i/(.*)/(.*)-(.*)$ /items/?id=$1&range=$2&type=$3 [L,QSA,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^c/(.*)$ /category/?menu=$1 [L,QSA,NC]

And here's the relevant httpd.conf code (let me know if there's anything else that would help)

DocumentRoot "/Users/user/Sites/mysite"

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>

<Directory "/Users/user/Sites/mysite">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Any ideas?

Jon Lin

AllowOverride All doesn't belong in the htaccess file. It's used in the server config (httpd.conf) to set what an server config parameters an htaccess file can override. So obviously, it would be wrong to be able to configure what parameters htaccess files can override from within htaccess files.

Remove it from your htaccess file. You've already defined AllowOverride All in your httpd.conf in the right places.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

500 Error on apache server - "AllowOverride not allowed here"

From Dev

"AllowOverride not allowed here" in WAMP

From Dev

AllowOverride not allowed here

From Dev

"AllowOverride not allowed here" in WAMP

From Dev

Apache Server Throwing 500 Internal Server Error

From Dev

500 internal server error with GWT Tomcat Apache

From Dev

Apache2 Internal Server Error 500

From Dev

PHPMyAdmin 500 Internal Server Error in Apache

From Dev

Apache - htaccess 500 internal server error

From Dev

Apache 500 Internal Server Error on my virtual host

From Dev

500 Internal Server Error using apache 2.4 and silverstripe 3.1.12

From Dev

Python Flask debug logger causes 500 server error in production (Apache)

From Dev

Apache2 RewriteRule 500 Internal Server Error

From Dev

PHPMyAdmin 500 Internal Server Error in Apache due to PHP Version

From Dev

500 Internal Server Error using apache 2.4 and silverstripe 3.1.12

From Dev

Apache2 RewriteRule 500 Internal Server Error

From Dev

CodeIgniter 500 server error

From Dev

Android to server 500 error

From Dev

Internal Server Error (500)

From Dev

Internal Server Error 500 with Rewrite Engine On on Shared Server with Apache 2.2, php 5.4 using .htaccess file

From Dev

Apache Regexp 500 Internal Error

From Dev

Apache: “AuthType not set!” 500 Error

From Dev

Apache to serve Django project on EC2 instance -- 500 Internal Server Error

From Dev

Apache/httpd /var/www/html/ .cgi scripts throw 500 internal server error

From Dev

Fresh Laravel 5 shows 500 Internal Server Error no matter what (OS X, Apache)

From Dev

Error 500 on Apache/Linux server when accessing a git-cloned app

From Dev

500 Internal Server Error Apache2 When Opens pdf file

From Dev

Can't get Perl FastCGI script to run on Apache Server: Error 500

From Dev

Why is my Apache2 .htaccess file CORS header causing a 500 internal server error?

Related Related

  1. 1

    500 Error on apache server - "AllowOverride not allowed here"

  2. 2

    "AllowOverride not allowed here" in WAMP

  3. 3

    AllowOverride not allowed here

  4. 4

    "AllowOverride not allowed here" in WAMP

  5. 5

    Apache Server Throwing 500 Internal Server Error

  6. 6

    500 internal server error with GWT Tomcat Apache

  7. 7

    Apache2 Internal Server Error 500

  8. 8

    PHPMyAdmin 500 Internal Server Error in Apache

  9. 9

    Apache - htaccess 500 internal server error

  10. 10

    Apache 500 Internal Server Error on my virtual host

  11. 11

    500 Internal Server Error using apache 2.4 and silverstripe 3.1.12

  12. 12

    Python Flask debug logger causes 500 server error in production (Apache)

  13. 13

    Apache2 RewriteRule 500 Internal Server Error

  14. 14

    PHPMyAdmin 500 Internal Server Error in Apache due to PHP Version

  15. 15

    500 Internal Server Error using apache 2.4 and silverstripe 3.1.12

  16. 16

    Apache2 RewriteRule 500 Internal Server Error

  17. 17

    CodeIgniter 500 server error

  18. 18

    Android to server 500 error

  19. 19

    Internal Server Error (500)

  20. 20

    Internal Server Error 500 with Rewrite Engine On on Shared Server with Apache 2.2, php 5.4 using .htaccess file

  21. 21

    Apache Regexp 500 Internal Error

  22. 22

    Apache: “AuthType not set!” 500 Error

  23. 23

    Apache to serve Django project on EC2 instance -- 500 Internal Server Error

  24. 24

    Apache/httpd /var/www/html/ .cgi scripts throw 500 internal server error

  25. 25

    Fresh Laravel 5 shows 500 Internal Server Error no matter what (OS X, Apache)

  26. 26

    Error 500 on Apache/Linux server when accessing a git-cloned app

  27. 27

    500 Internal Server Error Apache2 When Opens pdf file

  28. 28

    Can't get Perl FastCGI script to run on Apache Server: Error 500

  29. 29

    Why is my Apache2 .htaccess file CORS header causing a 500 internal server error?

HotTag

Archive