Last active
June 14, 2022 21:30
-
-
Save mobeigi/c73af3c2513c7d6f1ce720ad07dd0e62 to your computer and use it in GitHub Desktop.
FastDL Virtual Host Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## fastdl.example.com ########## | |
<VirtualHost *:443> | |
# SSL Config (omitted) | |
# Server Config (omitted) | |
# Allow indexing | |
<Directory /> | |
Options -Indexes | |
AllowOverride all | |
Require all granted | |
</Directory> | |
# Force file to download | |
<FilesMatch "\.(bsp|ain|nav|txt|vtf|vmt|vbf|svg|vtx|vvd|mdl|phy|jpg|pcf|wav|mp3|ogg|png|dem)$"> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment | |
</FilesMatch> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment