Re: Set up Proxy Server

2015-09-18 Thread mex
> I could set up but the Machine A only access to one URL or Site at > same time. > How can I access to any URL at internet from Machine A? > nginx is a reverse-proxy, what you are looking for is a forward-proxy and you could use apache or squid for this for more information on diffferences re

Set up Proxy Server

2015-09-18 Thread ha_saeeda
Dear, I'm trying to set up a proxy server with Nginx. In this case I have two machines both of them on Linux. Machine A: is database server e.g => 192.20.2.100 Machine B: is proxy server e.g=> 192.20.4.50 So I want to access to internet via proxy server like this. DB=>Proxy=>Internet I could s

Re: Multiple server blocks using spdy, reuseport, deferred

2015-09-18 Thread Andrew Hutchings
Hi, >From the documentation (about those two parameters): "The listen directive can have several additional parameters specific to socket-related system calls. These parameters can be specified in any listen directive, but only once for a given address:port pair." It will automatically apply to

realip and remote_port

2015-09-18 Thread Frank Liu
Hi, It seems if I use realip module and X-Forwarded-For header, the $remote_port becomes blank. Any ideas how to work around this? Thanks! Frank ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Recusive includes

2015-09-18 Thread justink101
Arg, sorry for the typos. I really wish this forum allowed edits. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261647,261648#msg-261648 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Recusive includes

2015-09-18 Thread justink101
If I want to include all config files within a directly, and all child directories what is the syntax: If is still: include /etc/nginx/*.conf or is it: include /etc/nginx/**/*.conf Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261647,261647#msg-261647 _

Websocket and proxy pass

2015-09-18 Thread Frank Liu
Hi, If I have upstream running websockets on port1 and non websockets on port2, is it possible to configure nginx reverse proxy to proxy_pass to port1 once it sees websockets incoming? Thanks Frank ___ nginx mailing list nginx@nginx.org http://mailman.n

Multiple server blocks using spdy, reuseport, deferred

2015-09-18 Thread justink101
If we have multiple server blocks binding on https using SPDY, reuseport, and deferred nginx fails to start complaining about port already bound: server { listen 443 deferred ssl spdy reuseport; server_name app.foo.com; ... } server { listen 443 deferred ssl spdy reuseport; se

Re: http2 observations

2015-09-18 Thread Maxim Dounin
Hello! On Fri, Sep 18, 2015 at 05:47:03AM -0400, itpp2012 wrote: [...] > When using: > listen 80 http2; > > This turns port 80 into a stream (application/octet-stream) > Albeit you should not configure http2 with http but nginx does not complain > about it. Much like SPDY, HTTP/2

http2 observations

2015-09-18 Thread itpp2012
Some strange things with http2 When using: listen 443 ssl http2; In firefox you need to set these values (which should already be there but may not have the proper settings): network.http.spdy.enabled.http2 = false network.http.spdy.enabled.http2draft = true When both are set true ssl red

https for websocket

2015-09-18 Thread navern
Hello, I am configuring websockets with nginx in front-end with this article: https://www.nginx.com/blog/websocket-nginx/. I want to setup nginx with SSL for secure web sockets(wss). I have a question is it right approach to solving this task or websockets has native solution for https setup