Allow serving of 0-byte, real files

Essential for many HTTP challenges for domain verification, SSL cert issuance, etc.
This commit is contained in:
Roy-Orbison 2021-02-01 14:47:11 +10:30 committed by GitHub
parent e30c9c86ff
commit 79ff12a1b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]