proxy_buffering context and unexpected error

Francis Daly francis at daoine.org
Wed Mar 3 17:39:53 UTC 2021


On Wed, Mar 03, 2021 at 12:02:44PM -0500, Drew Dixon wrote:

Hi there,

> Which states that this is valid within the server context, however whenever
> I attempt to set proxy_buffering to off (proxy_buffering off;) within my
> server configuration context I receive the error message below:
> 
> nginx[6203]: nginx: [emerg] "proxy_buffering" directive is not allowed here
> in /etc/nginx/conf.d/test.conf
> 
> This is clearly within the server context in my config.

Can you show the line, and the surrounding lines or other indentation
that indicates that your "proxy_buffering" directive is directly within
"server", and is not, for example, within an "if" within "server"?

The nginx contexts should be understood to be direct-only.

Cheers,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list