How to configure without extension on nginx

Hi, I want to set http://abc.com/test can be viewed, not downloaded.
how to configure mime.type.conf or nginx.conf file. Thank you!

Posted at Nginx Forum:

Hello!

On Sat, Dec 25, 2010 at 11:59:52AM -0500, letgohome wrote:

Hi, I want to set http://abc.com/test can be viewed, not downloaded.
how to configure mime.type.conf or nginx.conf file. Thank you!

location = /test {
types {}
default_type text/html;
}

http://wiki.nginx.org/HttpCoreModule#default_type
http://wiki.nginx.org/HttpCoreModule#types

Maxim D.

I try it, but unsuccessful,

    server {
        listen       80;
        server_name  localhost;
        root /www/linux;
        index index.html index.php index.htm;

        location = /test {
           types {}
           default_type text/html;
        }

        location ~ \.php$ {
           # fastcgi_pass  unix:/tmp/php-cgi.sock;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            include fcgi.conf;
        }
    }

Posted at Nginx Forum:

On Sat, Dec 25, 2010 at 10:40:16PM -0500, letgohome wrote:

       types {}

[/code]
Probably browser has already cache the response.
Try another browser or try to rename location:

    location = /test1 {
        alias  /www/linux/text;
        ...


Igor S.
http://sysoev.ru/en/

IE is successful , the test file is download with chrome, why?

Posted at Nginx Forum: