How to configure without extension on nginx

Maxim Dounin mdounin at mdounin.ru
Sat Dec 25 20:28:52 MSK 2010


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 Dounin



More information about the nginx mailing list