Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you load an apache module from the .htaccess file?

Tags:

apache

Like, can I modify the .htaccess file to load an apache module? Specifically, does "ExpiresActive On" load the mod_expires module?

like image 565
swl1020 Avatar asked Apr 17 '13 19:04

swl1020


1 Answers

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.

like image 81
Jon Lin Avatar answered Sep 30 '22 04:09

Jon Lin