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
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
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
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
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
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
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