400 Bad Request

Maxim Dounin mdounin at mdounin.ru
Ср Июл 8 14:33:03 UTC 2015


Hello!

On Wed, Jul 08, 2015 at 10:19:41AM -0400, Oleg Kupr wrote:

> äÏÂÒÙÊ ÄÅÎØ!
> 
> óÔÏÌËÎÕÌÓÑ Ó 400 ÏÛÉÂËÏÊ, Õ×ÅÌÉÞÅÎÉÅ ÐÁÒÁÍÅÔÒÁ  "large_client_header_buffers
> 32 16k;" ÎÅ ÄÁÅÔ ÒÅÚÕÌØÔÁÔÁ.
> ÷ËÌÀÞÁÌ error_log c ÕÒÏ×ÎÅÍ ÏÛÉÂÏË info, ÏÛÉÂÏË Ó×ÑÚÁÎÎÙÈ Ó ÜÔÉÍ ÚÁÐÒÏÓÏÍ ÎÅ
> ÎÁÛÅÌ.
> ÷ËÌÀÞÉÌ error_log × ÒÅÖÉÍÅ debug, ÎÏ Ë ÓÏÖÁÌÅÎÉÀ ÔÁË É ÎÅ ÓÍÏÇ ÐÏÎÑÔØ ÓÕÔØ
> ÏÛÉÂËÉ.
> 
> ðÒÉ×ÏÖÕ ÄÏÐÏÌÎÉÔÅÌØÎÕÀ ÉÎÆÏÒÍÁÃÉÀ:
> 
> debug: http://pastebin.com/QJW2ZqSN
> 
> nginx -V:  http://pastebin.com/WJ97eg0R
> 
> nginx-conf: http://pastebin.com/hPdZQpWh
> 
> ðÏ ÚÁÄÕÍËÅ nginx ÐÒÏËÓÉÒÕÅÔ ÚÁÐÒÏÓÙ ÎÁ 5.5.5.5, Á ÓÔÁÔÉÞÅÓËÉÊ ËÏÎÔÅÎÔ
> ÏÐÒÅÄÅÌÅÎÎÙÊ × ÏÔÄÅÌØÎÏÍ location ÐÙÔÁÅÔÓÑ ÐÏÌÕÞÉÔØ Õ varnish. Varnish ×
> ÓÌÕÞÁÅ ÅÓÌÉ ÚÁÐÒÏÛÅÎÎÏÇÏ ËÏÎÔÅÎÔÁ ÎÅÔ × ËÅÛÅ ÉÄÅÔ ÚÁ ÎÉÍ ÎÁ 10.0.2.3 ÎÁ
> ËÏÔÏÒÏÍ ÓÌÕÛÁÅÔ nginx, É ÐÏÌÕÞÁÅÔ ÎÁÐÒÑÍÕÀ Ó ÓÅÒ×ÅÒÁ 5.5.5.5. ÷ upstream
> ÂÌÏËÅ ÓÄÅÌÁÎÁ ÚÁÝÉÔÁ ÎÁ ÓÌÕÞÁÊ ÎÅÄÏÓÔÕÐÎÏÓÔÉ ÓÅÒ×ÅÒÁ Ó varnish, ÏÐÒÅÄÅÌÅÎ
> ÐÒÑÍÏÊ backup ÓÅÒ×ÅÒ 5.5.5.5. åÓÌÉ Ñ ÕÂÉÒÁÀ Ó upstream ÂÌÏËÁ backup-ÓÅÒ×ÅÒ,
> ÔÏ ÓÈÅÍÁ ÒÁÂÏÔÁÅÔ ÂÅÚ 400-ÏÛÉÂÏË. ïÛÉÂËÉ ×ÙÄÁÅÔ ÔÏÌØËÏ ÎÁ ÓÔÁÔÉÞÅÓËÉÊ
> ËÏÎÔÅÎÔ É ÂÅÓÓÉÓÔÅÍÎÏ. ðÒÏÛÕ ÐÏÍÏÝÉ × ÐÏÉÓËÅ ÏÛÉÂËÉ.

÷ÁÍ 400 ×ÏÚ×ÒÁÝÁÅÔ ÂÅËÅÎÄ:

2015/07/07 17:10:52 [debug] 30118#30118: *257100135 connect to 5.254.116.202:443, fd:1363 #257147662
...
2015/07/07 17:10:52 [debug] 30118#30118: *257100135 recv: fd:1363 823 of 32768
2015/07/07 17:10:52 [debug] 30118#30118: *257100135 http proxy status 400 "400 Bad Request"
2015/07/07 17:10:52 [debug] 30118#30118: *257100135 http proxy header: "Server: nginx/1.6.2"
2015/07/07 17:10:52 [debug] 30118#30118: *257100135 http proxy header: "Date: Tue, 07 Jul 2015 14:10:54 GMT"
2015/07/07 17:10:52 [debug] 30118#30118: *257100135 http proxy header: "Content-Type: text/html"
2015/07/07 17:10:52 [debug] 30118#30118: *257100135 http proxy header: "Content-Length: 672"
2015/07/07 17:10:52 [debug] 30118#30118: *257100135 http proxy header: "Connection: close"
2015/07/07 17:10:52 [debug] 30118#30118: *257100135 http proxy header done

îÁ ÂÅËÅÎÄÅ É ÓÌÅÄÕÅÔ ÓÍÏÔÒÅÔØ, ÞÅÍ ÉÍÅÎÎÏ ÅÍÕ ÎÅ ÐÏÎÒÁ×ÉÌÓÑ ÚÁÐÒÏÓ.

-- 
Maxim Dounin
http://nginx.org/



Подробная информация о списке рассылки nginx-ru