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

Михаил Монашёв postmaster at softsearch.ru
Mon Apr 27 19:23:39 MSD 2009


Здравствуйте, Serguei.

http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#default_type

SII> Вопрос. На nginx/0.6.35, если в запросе указать "/", то выдаётся
SII> индексный файл, но с Content-Type = "text/plain", причём IE его
SII> показывает как 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
SII> Если же спрашивать "/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
SII> Куда копать?

SII> Regards,
SII>  Serguei I. Ivantsov




  

--

С уважением,
Михаил Монашёв, SoftSearch.ru
mailto:postmaster at softsearch.ru
ICQ# 166233339
http://michael.mindmix.ru/
Без бэкапа по жизни.






More information about the nginx-ru mailing list