/var/www/mywebsite/.htaccess:
1 2 3 4 | < FilesMatch ".+"> ForceType application/octet-stream Header set Content-Disposition attachment </ FilesMatch > |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | root@ks:~ # a2en a2enconf a2enmod a2ensite root@ks:~ # a2enmod headers Enabling module headers. To activate the new configuration, you need to run: service apache2 restart root@ks:~ # apache2ctl configtest Syntax OK root@ks:~ # apache2ctl restart root@ks:~ # l /etc/apache2/mods-enabled/ ... headers.load -> .. /mods-available/headers .load ... |