mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Allow serving of 0-byte, real files
Essential for many HTTP challenges for domain verification, SSL cert issuance, etc.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
# The following rule tells Apache that if the requested filename
|
# The following rule tells Apache that if the requested filename
|
||||||
# exists, simply serve it.
|
# exists, simply serve it.
|
||||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -d
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
RewriteRule ^.*$ - [NC,L]
|
RewriteRule ^.*$ - [NC,L]
|
||||||
|
|||||||
Reference in New Issue
Block a user