How to test if file exists with the tag on Apache 2.4?

前端 未结 1 1910
没有蜡笔的小新
没有蜡笔的小新 2020-12-30 07:37

I would like to test the existence of a file in my httpd.conf of Apache 2.4.

I use the tag like this :

相关标签:
1条回答
  • 2020-12-30 08:03

    You should read Apache error log as it might provide some hint on how it is interpreted.

    Anyway, the right syntax is: <If "-f %{DOCUMENT_ROOT} . '/maintenance.enable'">

    0 讨论(0)
提交回复
热议问题