Nginx as forward proxy and maintaining persistent connections

2018-03-23 Thread vi54
am trying to configure nginx as a forward proxy and establish persistent connection between the nginx and the upstream server. When I set server { location / { proxy_pass http://$http_host$request_uri; proxy_http_version 1.1; proxy_set_header Connection ""; ... } } in

Trouble with SSL connection and let's encrypt certificates

2018-03-23 Thread Ph. Gras
Hello there, I'm running several websites with different domain names on a Debian 9 server and have problems to have a connection on port 443 for some days. Certificates are generated by let's encrypt and do the job on other services except NginX, for example : # openssl s_client -connect mailb

Cache size exceeds max_size?

2018-03-23 Thread linnading
Hi there, I've noticed that our cache directory grew over the max_size(5G) defined with proxy_cache_path. We're running on Nginx 1.13.5. Is this a known issue? What should I do to fix this? Thanks! Linna Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279185,279185#msg-279185 ___

Re: 301 Redirect from www version to non www.

2018-03-23 Thread Jeff Dyke
A couple things here guess. Is 80 even open in the firewall? Also could cloudflare be picking up 80 and redirecting to https, also this won't solve your problem, but having a server name prefixed with https is not valid, it may pass a configtest, but not sure that it would every match. On Fri, Ma

301 Redirect from www version to non www.

2018-03-23 Thread lichandro
Hello I have to redirect my whole traffic to the non www version of my website. I have the http2 SSL free form cloudflare. I did this in my .conf file and It doesn't work. server { listen 80; server_name www.kasacja-aut.pl kasacja-aut.pl https://www.kasacja-aut.pl; return 301 https://

Re: Only compressed version of file on server , and supporting clients that don't send Accept-Encoding.

2018-03-23 Thread Hemant Bist
Thanks, it worked like a charm! The lua script that handled 404 logic worked without any changes with error_page. There were some other add_header cofiguration, they also worked fine with it... HB On Thu, Mar 22, 2018 at 5:38 PM, Maxim Dounin wrote: > Hello! > > On Thu, Mar 22, 2018 at 05:00:20

Re: Redirect question

2018-03-23 Thread Friscia, Michael
Great, thank you for that explanation, I do happen to have hundreds. ___ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobile http://web.yale.edu On 3/23/18, 11:37 AM, "ngi

Re: Redirect question

2018-03-23 Thread Igor Sysoev
> On 23 Mar 2018, at 18:22, Friscia, Michael wrote: > > Ok, that worked out really well. > > For anyone following I had to go here > https://forum.nginx.org/read.php?2,279172,279176#msg-279176 > because our exchange server destroyed the sample URLs. > > But I’m not sure how the location order

Re: Redirect question

2018-03-23 Thread Friscia, Michael
Ok, that worked out really well. For anyone following I had to go here https://forum.nginx.org/read.php?2,279172,279176#msg-279176 because our exchange server destroyed the sample URLs. But I’m not sure how the location order is mitigated. Is this because the first location match is a regex in

Re: Redirect question

2018-03-23 Thread Igor Sysoev
> On 23 Mar 2018, at 16:14, Friscia, Michael wrote: > > I’m wondering how to achieve this in the config > > I have a url like this > http://example.com/people/mike > > and I want to redirect to > https://www.othersite.com/users/mike > > the problem at hand is switching “/people/” to “/use

Unit 0.7 beta release

2018-03-23 Thread Valentin V. Bartenev
Hello, I'm glad to announce a new beta of NGINX Unit with a number of bugfixes and Ruby/Rack support. Now you can easily run applications like Redmine with Unit. The full list of supported languages today is PHP, Python, Go, Perl, and Ruby. More languages are coming. Changes with Unit 0.7

Redirect question

2018-03-23 Thread Friscia, Michael
I’m wondering how to achieve this in the config I have a url like this http://example.com/people/mike and I want to redirect to https://www.othersite.com/users/mike the problem at hand is switching “/people/” to “/users/” but keep everything else so if I was to have http://example.com/people/mi

proxy_cache_key case sensitivity question

2018-03-23 Thread Friscia, Michael
The question is if these are cached as different files http://myurl.html http://MyUrl.html I’m assuming that both would be different cache locations since the md5 would be different on each but ideally these would be the same cached file to prevent dupes. My question is about the proxy_cache_ke