I'd like to serve a unique pdf file by location in nginx.
I followed the instruction here:
https://stackoverflow.com/questions/42023339/serve-pdf-file-by-location-in-nginx
and I did:
location /xxx-privacy-disclosure/ {
alias /var/www/public_html/domain.net/xxx-privacy-disclosure/;
index xxx-privacy-disclosure.pdf;
}
Everything is working except
a .pdf
file is downloaded (without the filename)
How can I fix this?