Re: Set real ip not working

2018-05-09 Thread Francis Daly
On Wed, May 09, 2018 at 02:19:23PM -0400, snir wrote: Hi there, > I want to get the real ip of the client but I'm all ways getting the ip of > the ngnix server. What, specifically, do you mean by "getting the ip"? > I trayed using set_real_ip: The tcp connection from nginx to upstream will (al

Re: inheritance of proxy_http_version and proxy_set_header

2018-05-09 Thread Francis Daly
On Wed, May 09, 2018 at 04:32:51AM -0700, Joe Doe wrote: Hi there, > I have many multiple mirrors for incoming request. To keep the config > clean, I set: > proxy_http_version 1.1; > proxy_set_header ""; > > in the http context. This worked for us (verified keep-alive is working), > and it w

Re: Restricting access by public IP blocking remote content

2018-05-09 Thread Francis Daly
On Tue, May 08, 2018 at 04:28:54PM -0400, pkris wrote: Hi there, > As the subject states when I restrict access to a subdirectory via IP, > remote content like Google fonts, and Favicons are blocked. I don't understand what you are reporting there. Can you give one specific example? It looks li

Re: Problem with to multiple virtual hosts

2018-05-09 Thread Francis Daly
On Tue, May 08, 2018 at 01:46:07AM -0400, auto wrote: Hi there, > Today we create 2 new config-files on the nginx, copy the file to > sites-enabled and make a nginx reload. > > Now, no sites works again. But there was no error after the nginx reload. > > In the Browser we get the error that the

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

inheritance of proxy_http_version and proxy_set_header

2018-05-09 Thread Joe Doe
I have many multiple mirrors for incoming request. To keep the config clean, I set: proxy_http_version 1.1; proxy_set_header ""; in the http context. This worked for us (verified keep-alive is working), and it will inherit to all the mirror proxy_pass. However, I recently added a mirror that

Re: Proxy pass and SSL certificates

2018-05-09 Thread Mephysto On Hell
Hello Goce, but with this configuration, can I disable SSL in target Nginx? Thanks in advance. Meph On 8 May 2018 at 09:34, Joncheski wrote: > Hello Meph, > > In configuration file "cloud.diakont.it.conf": > - "ssl_certificate" please set path of only public certificate of server > (cloud.diak