setting up client ip and hostname in nginx?

2016-10-31 Thread ngineo
i am working on AWS Elastic Beanstalk Instance, which runs Java applicaiton servered through Nginx ( no load balancer in front, just a standalone instance ) I need to set cookie to catch client ip and client hostname. Is this possible to do it in nginx and if yes then how? Below if my nginx configu

Re: Pre-compressed (gzip) HTML using fastcgi_cache?

2016-10-31 Thread seo010
Just for the record: this topic contains 2 suggested solutions: 1) storing gzip compressed and uncompressed HTML separately and have Nginx determine gzip support instead of the client 2) storing gzip permanently and use Nginx gunzip module to gunzip HTML for browsers without gzip support Posted a

Re: Pre-compressed (gzip) HTML using fastcgi_cache?

2016-10-31 Thread seo010
Hi Lucas, Thanks a lot for the information! Hopefully it will help many others that find the topic via Google as there was almost no information about it available. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,270604,270665#msg-270665 ___

Re: Pre-compressed (gzip) HTML using fastcgi_cache?

2016-10-31 Thread Lucas Rolff
Hello, It's not strange behavior, it's expected. What happens is that even though the key is the same - the actual returned content *might* be different, e.g. as an example: If your origin returns Vary: accept-encoding Nginx will cache based on this - so if accept-encoding differs it means t

Re: Pre-compressed (gzip) HTML using fastcgi_cache?

2016-10-31 Thread seo010
Hi Lucas, Thanks a lot for the suggestion. We were already using that solution but a strange behavior occurred (see opening post). The first request uses an expected MD5 hash of the KEY, and the client will keep using that hash (the MISS/HIT header is accurate). However, requests from other client

Help how to Proxy without redirect

2016-10-31 Thread tbaror
Hello All, I need to use Nginx as proxy and to pass all communication trough it without redirecting to original web location. I have following configuration file the initial logon and welcome page works well as soon as i click on link its getting redirected in to the original web page. any idea h