need help reverse-proxy config
Anoop Alias
anoopalias01 at gmail.com
Tue Jan 10 06:11:05 UTC 2017
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 at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
--
*Anoop P Alias*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170110/1de66d20/attachment.html>
More information about the nginx
mailing list