I have the following configuration file in my sites-available
<VirtualHost *:80>
ServerName my.domain
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>
<VirtualHost *:443>
ServerName my.domain
DocumentRoot /var/www/html
ErrorLog /var/www/logs/error.log
CustomLog /var/www/logs/access.log combined
SSLEngine on
SSLCertificateFile /var/www/certs/certificate.pem
SSLCertificateKeyFile /var/www/certs/private.key
SSLCertificateChainFile /var/www/certs/ca_bundle.pem
<Directory /var/www/html>
Options -Indexes
AllowOverride All
Require all granted
</Directory>
<Directory /var/www/html/nav>
DirectoryIndex nav.exe
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
And when I go to https://my.domain/nav, I expect it to download the file as nav.exe
. But instead, it downloads it as 'download`.
How can I set a custom name for this download?