Welcome! Log In Create A New Profile

Advanced

Re: proxy_buffering context and unexpected error

Drew Dixon
March 03, 2021 02:54PM
Hi there, thanks for the quick reply, sure, the config is rather simple for
some initial testing, I'm not sure the directive being turned off will have
any effect w/ the present config but the directive is not within any "if"
within the "server" context and seems to be throwing an error when I would
expect it not to:

/etc/nginx/conf.d/test.conf:
```
stream {
upstream upstreams {
least_conn;
server 192.168.1.100:9998;
server 192.168.1.101:9998;
server 192.168.1.102:9998;
}

server {
proxy_buffering off;
listen 9998 udp;
proxy_pass upstreams;
proxy_timeout 1s;
proxy_responses 0;
error_log /var/log/nginx/test-lb.log;
}
}
```

Thank you!

On Wed, Mar 3, 2021 at 12:40 PM Francis Daly <francis@daoine.org> wrote:

> 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@daoine.org
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_buffering context and unexpected error

Drew Dixon March 03, 2021 12:04PM

Re: proxy_buffering context and unexpected error

Francis Daly March 03, 2021 12:42PM

Re: proxy_buffering context and unexpected error

Drew Dixon March 03, 2021 02:54PM

Re: proxy_buffering context and unexpected error

Francis Daly March 03, 2021 03:16PM

Re: proxy_buffering context and unexpected error

Drew Dixon March 03, 2021 03:30PM

Re: proxy_buffering context and unexpected error

Fatma MAZARI March 04, 2021 06:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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