Welcome! Log In Create A New Profile

Advanced

Re: Nginx proxy_intercept_errors

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 3.5 KB open | download Kiril Kalchev 03/06/2013 Read message
smime.p7s 3.5 KB open | download Kiril Kalchev 03/06/2013 Read message
smime.p7s 3.5 KB open | download Kiril Kalchev 03/06/2013 Read message
smime.p7s 3.5 KB open | download Kiril Kalchev 03/06/2013 Read message
Maxim Dounin
March 06, 2013 09:34AM
Hello!

On Wed, Mar 06, 2013 at 04:02:30PM +0200, Kiril Kalchev wrote:

> Is there any way to force nginx to read request body? I really
> don't care about this overhead, I hit connection limit much more
> faster. Thank you for the super fast answer.

No, there is no way to force nginx to read response body - errors
interception happens right after reading response headers and
before the body is read. (Well, you may configure another proxy
layer without intercept errors, but this probably doesn't counts
as a real solution to what you are trying to do.)

On the other hand, if you have only 403/404 responses you want to
intercept - you may force your backend to return only headers by
using

proxy_method HEAD;

in your config (see http://nginx.org/r/proxy_method).

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx proxy_intercept_errors Attachments

Kiril Kalchev March 06, 2013 08:46AM

Re: Nginx proxy_intercept_errors

Maxim Dounin March 06, 2013 08:56AM

Re: Nginx proxy_intercept_errors Attachments

Kiril Kalchev March 06, 2013 09:04AM

Re: Nginx proxy_intercept_errors

Maxim Dounin March 06, 2013 09:34AM

Re: Nginx proxy_intercept_errors Attachments

Kiril Kalchev March 06, 2013 09:46AM

Re: Nginx proxy_intercept_errors

Maxim Dounin March 06, 2013 10:46AM

Re: Nginx proxy_intercept_errors Attachments

Kiril Kalchev March 06, 2013 10:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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