Welcome! Log In Create A New Profile

Advanced

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

August 25, 2009 05:46AM
On Tue, Aug 25, 2009 at 11:29:57AM +0200, J?r?me Loyet wrote:

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

It's better to set new "types" for location:

location /saveonly/ {
types { application/octet-stream html; }
...
}


> ++ Jerome
>
> 2009/8/25 jzhang <nginx-forum@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
> >
> >
> >

--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

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

jzhang August 25, 2009 04:51AM

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

J August 25, 2009 05:29AM

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

Igor Sysoev August 25, 2009 05:46AM

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

jzhang August 25, 2009 10:25PM

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

jzhang August 27, 2009 09:18PM

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

Nick Pearson August 28, 2009 09:27AM

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

jzhang August 28, 2009 02:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 287
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready