Server error 500 when adding .htaccess file in the root folder
Posted
by
welou
on Server Fault
See other posts from Server Fault
or by welou
Published on 2011-03-21T15:48:37Z
Indexed on
2012/09/26
9:41 UTC
Read the original article
Hit count: 348
I read a lot of server error 500 questions related to the famous .htaccess file but I have still not found an answer to this error.
I have a folder which I used to test the .htaccess file.
=>http://localhost/xampp/example/
I copied the .htaccess in the example folder and I get server error 500
my .htaccess file contains this:
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/png "access plus 1 days"
</IfModule>
I have changed my httpd.conf file:
all AllowOverrride None to AllowOverride All i have also uncommented this line:
LoadModule expires_module modules/mod_expires.so
error.log says: ExpiresActive not allowed here
I still get the error 500
What is actually happening? How can I resolve this error?
PS: i am running on localhost with XAMPP
© Server Fault or respective owner