Like, can I modify the .htaccess file to load an apache module? Specifically, does "ExpiresActive On" load the mod_expires module?
1 Answer
The LoadModule
directive can only be used in server config. Not vhost config and not in an htaccess file.
Specifically, does "ExpiresActive On" load the mod_expires module?
No, if you try to use a module that's not loaded, you'll get a 500 internal server error.
-
If you set expires headers, wrapped in <IfModule mod_expires.c>, but mod_expires isn't loaded, will it still 500 error? Will the expire headers do anything if it's not loaded?– swl1020Apr 17, 2013 at 19:26
-
1@swl1020 No, if you wrap the statements inside an
<IfModule>
container, then those won't be processed if the module isn't loaded. So you won't get a 500 error.– Jon LinApr 17, 2013 at 19:27