apache - mod expires in .htaccess = 500 Internal Error -
i tried many times still doesn't work:
when add these following mod expires lines 500 internal error if remove them works fine :
<ifmodule mod_expires.c> expiresactive on expiresdefault "access plus 30 seconds" expiresbytype text/html "access plus 15 days" expiresbytype image/gif "access plus 1 months" expiresbytype image/jpg "access plus 1 months" expiresbytype image/jpeg "access plus 1 months" expiresbytype image/png "access plus 1 months" expiresbytype text/js "access plus 1 months" expiresbytype text/javascript "access plus 1 months" </ifmodule>
i did sudo a2enmod expires
, sudo a2enmod header
, both enabled...
any explanation? i've heard can wrong in httpd.conf
don't have file. use apache2 on ubuntu 14.04
thank you
i have checked configuration on test web server (debian 6.0/apache2) , seems working fine.
please check error log (/var/log/apache2/error.log) , configuration file (/etc/apache2/apache2.conf).
edit: after examining log files clear override option not enabled in apache2.conf file (http://imgur.com/a/vmb2k), causing error when parsing .htaccess file.
suggested make following changes:
<directory /var/www> ... allowoverride </directory>
Comments
Post a Comment