Apache crashing when I add Far-Future Expires clause from Rails Guide Apache crashing when I add Far-Future Expires clause from Rails Guide apache apache

Apache crashing when I add Far-Future Expires clause from Rails Guide


What error does it give you? Are you sure you have mod_expires compiled into apache and that the module is loaded?

Invalid command 'ExpiresActive', perhaps misspelled or defined by a module not included in the server configuration

Yeah, that's usually the error you get if you use a directive that's mapped to a module that isn't loaded (or just a mispelled directive, which appears the same to apache). You'll need to check httpd.conf and make sure the LoadModule expires_module modules/mod_expires.so line is not commented out, of if it's missing, to add it. Depending on your apache's version, the line can be slightly different.