Welcome! Log In Create A New Profile

Advanced

Re: nginx отдает неправильный хедер Content-Type

Andrew Kopeyko
October 28, 2009 04:24PM
On Wed, 28 Oct 2009, Станислав wrote:

> Здравствуйте!

Вечер добрый!

> Вот недавно столкнулся с проблемой...
....
>
> location ^~ /forum/style_images/ {
> root /var/www/blahblah.ru;
> types {
> text/plain php php3 php4 php5 phtml phps pl pm;
> }
> }
>
> и тут пдыщ......
....
> Content-Type: application/octet-stream
> Content-Length: 31730
> Last-Modified: Sat, 18 Apr 2009 09:48:59 GMT
> Connection: close
> Accept-Ranges: bytes
>
> в mime.types четко написано

Ещё чётче написано в
http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#types - types
будут переопределяться, а не добавляться к вышеописанным.

Задайте в этом location все нужные вам mime-types, "отрезав" опасные - и
будет вам счастье.



--
Best regards,
Andrew Kopeyko <kaa@zvuki.ru>
Subject Author Posted

nginx отдает неправильный хедер Content-Type

San October 28, 2009 03:54PM

Re: nginx отдает неправильный хедер Content-Type

Andrew Kopeyko October 28, 2009 04:24PM

Re: nginx отдает неправильный хедер Content-Type

San October 28, 2009 04:50PM

Re: nginx отдает неправильный хедер Content-Type

Andrew Kopeyko October 29, 2009 08:02AM

Re: nginx отдает неправильный хедер Content-Type

Sergey Shepelev October 29, 2009 02:08PM

Re: nginx отдает неправильный хедер Content-Type

Sergey Shepelev October 28, 2009 07:20PM

Re: nginx отдает неправильный хедер Content-Type

San October 28, 2009 08:32PM

Re: nginx отдает неправильный хедер Content-Type

Sergey Shepelev October 29, 2009 01:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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