Welcome! Log In Create A New Profile

Advanced

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

September 01, 2013 04:44PM
Oleksandr V. Typlyns'kyi Wrote:

> Как видно из кода стороннего модуля(а туда тоже следовало бы
> посмотреть),
> там несколько return NGX_HTTP_BAD_REQUEST без записи чего-либо в лог
> ошибок.
> И они явно намекают на content type который теперь
> application/javascript.
> Добавление его в concat_types должно помочь.

Спасибо за отличный хинт! Добавление "application/javascript" в concat_types не помогло, пришлось подпатчить исходный модуль concat:

--- ngx_http_concat_module.c
+++ ngx_http_concat_module.c
@@ -30,7 +30,7 @@


static ngx_str_t ngx_http_concat_default_types[] = {
- ngx_string("application/x-javascript"),
+ ngx_string("application/javascript"),
ngx_string("text/css"),
ngx_null_string
};

Ещё раз - спасибо!
Subject Author Posted

400 Bad Request 1.5.4 (1.5.3 = OK)

locojohn August 31, 2013 08:29PM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

Валентин Бартенев August 31, 2013 09:18PM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

locojohn September 01, 2013 06:31AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

Vadim Lazovskiy September 01, 2013 06:44AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

locojohn September 01, 2013 06:59AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

locojohn September 01, 2013 07:04AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

Vadim Lazovskiy September 01, 2013 07:06AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

locojohn September 01, 2013 07:10AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

Vadim Lazovskiy September 01, 2013 07:34AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

Gena Makhomed September 01, 2013 09:26AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

locojohn September 01, 2013 10:02AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

Oleksandr V. Typlyns'kyi September 01, 2013 10:32AM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

locojohn September 01, 2013 04:44PM

Re: 400 Bad Request 1.5.4 (1.5.3 = OK)

Илья Шипицин September 01, 2013 02:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 221
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready