Quellcode durchsuchen

Allow serving of 0-byte, real files

Essential for many HTTP challenges for domain verification, SSL cert issuance, etc.
Roy-Orbison vor 3 Jahren
Ursprung
Commit
79ff12a1b0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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]