Welcome! Log In Create A New Profile

Advanced

Re: need help reverse-proxy config

Anoop Alias
January 10, 2017 01:22AM
main context means it come directly in nginx.conf

http context means it should be put inside http{ }
server context means it should be in server { }

likewise..

You can search the directive like http://nginx.org/r/xxxxx_xxxx

For eg: http://nginx.org/r/stream

check the context where that directive is applicable ..since stream says
main..if you put like

http{
stream
...
...
}

it will be invalid syntax .

On Tue, Jan 10, 2017 at 11:34 AM, Thierry <nginx-forum@forum.nginx.org>
wrote:

> error_log /var/log/nginx/error.log info;
>
> events {
> worker_connections 1024;
> }
>
> stream {
> upstream backend {
> hash xxx.xxx.xxx.xxx consistent;
>
> server email.domain.tld:448;
> }
>
>
> server {
> listen 448;
> proxy_connect_timeout 1s;
> proxy_timeout 3s;
> proxy_pass backend;
> }
> }
>
> I have difficulties to understand the "main context" idea .... With this
> exemple, is my "stream" in the right context ?? Seems not.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,271891,271899#msg-271899
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
*Anoop P Alias*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

need help reverse-proxy config

Thierry January 09, 2017 01:18PM

Re: need help reverse-proxy config

itpp2012 January 09, 2017 01:43PM

Re: need help reverse-proxy config

Thierry January 09, 2017 11:47PM

Re: need help reverse-proxy config

Anoop Alias January 09, 2017 11:52PM

Re: need help reverse-proxy config

Thierry January 10, 2017 01:04AM

Re: need help reverse-proxy config

Anoop Alias January 10, 2017 01:22AM

Re: need help reverse-proxy config

Thierry January 10, 2017 01:53AM

Re: need help reverse-proxy config

Thierry January 10, 2017 04:34AM

Re: need help reverse-proxy config

Thierry January 10, 2017 08:41AM

Re: need help reverse-proxy config

Thierry January 10, 2017 11:22AM

Re: need help reverse-proxy config

Thierry January 11, 2017 01:06AM

Re: need help reverse-proxy config

Thierry January 11, 2017 12:38PM

Re: need help reverse-proxy config

kalai1302 May 16, 2022 08:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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