Apache config apache2.conf default is ok. otherwise ensure .htaccess is enablesites-available/default (may be different) AllowOverride All (setting directory parameters) enable mod_headers sudo a2enmod headers.htaccess AddType application/octet-stream .mp3 SetEnvIf Request_URI "/.mp3$" requested_mp3=mp3 Header add Content-Disposition "attachment" env=requested_mp3