如何使apache包含文件夹中的所有文件

时间:2013-07-02 08:12:25

标签: linux apache centos

我知道我可以做到这一点

Include "/usr/local/apache/conf/php.conf"

如何使apache加载某些目录中的所有文件,如

Include /usr/mydir/*

1 个答案:

答案 0 :(得分:7)

你可以这样做:

Include dir/*

例如,在Debian中,apache2.conf

以这种方式包含模块
# Include module configuration:
Include mods-enabled/*.load
Include mods-enabled/*.conf
相关问题