您可以加载从.htaccess文件Apache模块? [英] Can you load an apache module from the .htaccess file?
本文介绍了您可以加载从.htaccess文件Apache模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
像,我可以修改.htaccess文件来加载Apache模块?具体而言,确实ExpiresActive On配置加载指定mod_expires模块?
Like, can I modify the .htaccess file to load an apache module? Specifically, does "ExpiresActive On" load the mod_expires module?
推荐答案
的LoadModule
指令只能在服务器配置中使用。没有虚拟主机的配置,而不是在htaccess文件。
The LoadModule
directive can only be used in server config. Not vhost config and not in an htaccess file.
具体而言,确实ExpiresActive On配置加载指定mod_expires模块?
Specifically, does "ExpiresActive On" load the mod_expires module?
没有,如果你尝试使用的未加载的模块,你会得到一个500内部服务器错误。
No, if you try to use a module that's not loaded, you'll get a 500 internal server error.
这篇关于您可以加载从.htaccess文件Apache模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文