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

时间:2023-01-14 11:13:28

I know i can do this

我知道我能做到这一点

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

How can i make apache to load all files in some dir like

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

Include /usr/mydir/*

1 个解决方案

#1


6  

You can do:

你可以做:

Include dir/*

For example in Debian the modules are included this way, from apache2.conf:

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

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

#1


6  

You can do:

你可以做:

Include dir/*

For example in Debian the modules are included this way, from apache2.conf:

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

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