Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 如何使apache包含文件夹中的所有文件_Linux_Apache_Centos - Fatal编程技术网

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

Linux 如何使apache包含文件夹中的所有文件,linux,apache,centos,Linux,Apache,Centos,我知道我能做到 Include "/usr/local/apache/conf/php.conf" 如何让apache以类似dir的方式加载所有文件 Include /usr/mydir/* 你可以做: Include dir/* 例如,在Debian中,模块以这种方式包含在apache2.conf中: # Include module configuration: Include mods-enabled/*.load Include mods-enabled/*.conf 顺便说一句

我知道我能做到

Include "/usr/local/apache/conf/php.conf"
如何让apache以类似dir的方式加载所有文件

Include /usr/mydir/*
你可以做:

Include dir/*
例如,在
Debian
中,模块以这种方式包含在
apache2.conf
中:

# Include module configuration:
Include mods-enabled/*.load
Include mods-enabled/*.conf

顺便说一句,这不是特定于平台的。Windows上的语法完全相同(包括对路径使用正斜杠)。