0

I've a lot of files with ASP extension running on linux, but I can't rename. The content of that files is HTML, but when I open, the Nginx takes me to download.

Does anyone know what I can insert on Nginx to open ASP files as text/html?

Caio Tarifa
  • 65
  • 2
  • 10

2 Answers2

0

Just add a MIME type with types. This should appear after the line in nginx.conf which reads include /etc/nginx/mime.types:

http {
   ......
   types {
       text/html asp;
   }
   .....
}
Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
-1
location ~* .(asp)$ {
      add_header Content-Type text/plain;}
Suzk AL
  • 1
  • 1