Welcome! Log In Create A New Profile

Advanced

Mime type text/plain

December 06, 2009 10:36AM
Hi,

i'm trying to get some files delivered via nginx. These files are textfiles containing HTML code. They don't have any file extension (and i can't change that due to special reasons). I'd like to deliver them with Content-Type text/html instead of text/plain which is chosen bei nginx due to reasons i don't know.

I've set default content type to text/html and also do explicitly set the conten type via add/header. Unfortunately the text/plain content type get's set before what results in a a header like this. "Content-Type text/plain text/html". In Safari this leads to a plain text display of the code instead of rendering the website.

How can i overwrite the content type to text/html for files without extenions?

Thanks,
Frank
Subject Author Posted

Mime type text/plain

Helmi December 06, 2009 10:36AM

Re: Mime type text/plain

Igor Sysoev December 06, 2009 02:28PM

Re: Mime type text/plain

Helmi December 06, 2009 11:17PM

Re: Mime type text/plain

Igor Sysoev December 07, 2009 04:00AM

Re: Mime type text/plain

Helmi December 07, 2009 05:09AM

Re: Mime type text/plain

Igor Sysoev December 07, 2009 05:30AM

Re: Mime type text/plain

Jean-Baptiste Quenot December 07, 2009 05:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 322
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