Skip to content

Instantly share code, notes, and snippets.

@mobeigi
Last active June 14, 2022 21:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mobeigi/c73af3c2513c7d6f1ce720ad07dd0e62 to your computer and use it in GitHub Desktop.
Save mobeigi/c73af3c2513c7d6f1ce720ad07dd0e62 to your computer and use it in GitHub Desktop.
FastDL Virtual Host Example
########## 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