浏览代码

Allow serving of 0-byte, real files

Essential for many HTTP challenges for domain verification, SSL cert issuance, etc.
Roy-Orbison 3 年之前
父节点
当前提交
79ff12a1b0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/.htaccess

+ 1 - 1
public/.htaccess

@@ -1,7 +1,7 @@
 RewriteEngine On
 # The following rule tells Apache that if the requested filename
 # exists, simply serve it.
-RewriteCond %{REQUEST_FILENAME} -s [OR]
+RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -l [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^.*$ - [NC,L]