mime-type для индексных файлов

Maxim Dounin mdounin at mdounin.ru
Mon Apr 27 19:37:44 MSD 2009


Hello!

On Mon, Apr 27, 2009 at 05:41:22PM +0300, Serguei I. Ivantsov wrote:

> Вопрос. На nginx/0.6.35, если в запросе указать "/", то выдаётся
> индексный файл, но с Content-Type = "text/plain", причём IE его
> показывает как html, а остальные - как текст.
> 
> > Server: nginx/0.6.35
> > Date: Mon, 27 Apr 2009 14:27:56 GMT
> > Content-Type: text/plain; charset=utf-8
> > Connection: close
> > Last-Modified: Mon, 27 Apr 2009 14:12:00 GMT
> > ETag: "c75002-24a-46889ee05ac00"
> > Accept-Ranges: bytes
> > Content-Length: 586

Это ответил апач (note ETag).

> Если же спрашивать "/index.html", то выдаёт всё как положено:
> 
> > Server: nginx/0.6.35
> > Date: Mon, 27 Apr 2009 14:38:29 GMT
> > Content-Type: text/html; charset=utf-8
> > Content-Length: 586
> > Last-Modified: Mon, 27 Apr 2009 14:12:00 GMT
> > Connection: close
> > Accept-Ranges: bytes
> Куда копать?

А это - nginx.

Maxim Dounin





More information about the nginx-ru mailing list