Re: realip - protocol support

2014-11-04 Thread rcoup
Ugh, > 3. adding "set_real_scheme_from" and "real_scheme_header" directives to the realip module that manipulate the $scheme & $https variables in a similar way to $remote_addr. Of course, "set_real_scheme_from" is unnecessary, since it'll be the same list of proxies as "set_real_ip_from". Revis

realip - protocol support

2014-11-04 Thread rcoup
Hi all, I'm successfully using the realip module to validate proxies and set $remote_addr to the external IP for a request, but I'm trying to do the same for HTTP vs HTTPS where the proxy (Amazon ELB, CDN, etc) is terminating SSL and adding an X-Forwarded-Proto header ("https" or "http"). Note tha

Re: connection close on 500, 503, 502.

2014-11-04 Thread newnovice
I have this in config: --- error_page 404 =400; error_page 500 502 503 504 =500 @close_conns; location @close_conns { internal; keepalive_timeout 0; } I still see 502's behind returned in '$status' - Why would this happen? I was expecting to s

map_hash_bucket_size, map_hash_max_size, and memory usage

2014-11-04 Thread abstein2
I was hoping someone could clarify how exactly map_hash_bucket_size and map_hash_max_size should be set and the impact it has on memory. For map_hash_bucket_size, it says it should be a multiple of the processor's line cache size. Under what circumstances does it make sense or would it be necessar

Re: 'location' as an alias for 'server'?

2014-11-04 Thread B.R.
The fact that sites-enabled contains 1 file per server is a *de facto* standard. From nginx point of view, those are just include like others. Since nginx.conf must have some include sites-enabled/*.conf rule, those files are already loaded at http level. To have the behavior you wish, I would do

Re: upstream sent invalid status "-1 Copy failed" while reading response header from upstream

2014-11-04 Thread NaZz
Maxim Dounin Wrote: --- > From nginx point of view, "your upstream server" is _exact_ thing > to dig into. Sounds like this Nginx guy you are talking about is the type of guy who never wants to admit his mistakes. :D Posted at Nginx Forum: h

'location' as an alias for 'server'?

2014-11-04 Thread lockheed
I have nginx set up with several servers in /etc/nginx/sites-enabled However, I want to convert my setup to one domain ***myserver.com*** , so typing in a browser "lalala.com" will no longer get me to the appropriate ***/usr/share/webapps/lalala*** subfolder. Therefore, I want to create so