How to config nginx to download html file instead of opening it?

Jérôme Loyet jerome at loyet.net
Tue Aug 25 13:29:57 MSD 2009


Hi,

in the mime.types file, remove the extension html from the text/html
file. It should do the trick.

++ Jerome

2009/8/25 jzhang <nginx-forum at nginx.us>:
> Hello everyone,
> I want to config the server when user access a html file, the browser would popup the Save File dialog,
> instead of opening it in window. Your help will be appreciated greatly.
>
> Jason Zhang
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,5148,5148#msg-5148
>
>
>





More information about the nginx mailing list