小编Jer*_*mie的帖子

如何使用Apache 2.4上的标记<If ...>测试文件是否存在?

我想在Apache 2.4的httpd.conf中测试一个文件的存在.

我使用这样的标签:

<If "%{DocumentRoot}/maintenance.enable -f"> ...code to execute ... </If>

但我的代码不好,apache的服务不想启动.我在很多网站上阅读了很多教程或文档,但从未找到答案:(

请帮我 ...

apache if-statement httpd.conf

12
推荐指数
2
解决办法
6736
查看次数

标签 统计

apache ×1

httpd.conf ×1

if-statement ×1