Re: Set real ip not working

2018-05-10 Thread snir
Thanks That what I needed location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://myapp1; } Posted at Nginx Fo

Set real ip not working

2018-05-09 Thread snir
Hello I want to get the real ip of the client but I'm all ways getting the ip of the ngnix server. I trayed using set_real_ip: http { upstream myapp1 { server 177.17.777.13:8080; } server { listen 80; real_ip_recursive

how to get response headers from internal-requests?

2014-06-09 Thread Amikam Snir
Hi all, Is there a way to get the response headers from internal-requests? p.s. I am using ngx.location.capture(uri) for the internal requests. Thanks in advance. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

sub-request to external resource

2014-06-04 Thread Amikam Snir
Hi all, How can I make sub-request to external resource (without returning it to the user)? The following commands are used only for internal resources: ngx.location.capture ngx.exec any idea? :-) Thanks in advance, ___ nginx mailing list nginx@nginx.o

filter content by checksum

2014-05-24 Thread Amikam Snir
How can I configure nginx to manipulate the content of http-response, for example filtering the content of the response by checksum? ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx