Is post_action deprecated?

2017-06-14 Thread wonderer
Hi All, To start with, here's some context. From what i've read around, the post_action directive is to be used with caution. I was able to find this information following the link from this post: https://forum.nginx.org/read.php?2,262008,262012#msg-262012 I also found documentation on the dire

Re: several sibling location block

2017-06-14 Thread Ingo Schmidt
Hi! to nginx, as follows: location / { # force download for ceratain file types location ~* \.(?:fb2|mobi|mp3)$ { add_header Content-Disposition "attachment"; } location ~* \.fb2$ { add_header Content-type "text/fb2+xml"; } location ~* \.mobi$ {

Re: apache rewrite to nginx

2017-06-14 Thread frank3427
Aleks, How does this look? server { listen *:443 ssl; server_name ~^(?rwa|m2m|dwa)-(?\w+)-(\w+)\.(?(diasranch.net))(:\d+)?$; proxy_read_timeout 86400s; proxy_buffering off; #access_log /logs/ssl_access.log; error_log/logs/ssl_error.log error; ssl_protocols

Re: apache rewrite to nginx

2017-06-14 Thread Aleksandar Lazic
Hi frank3427. frank3427 wrote on 14.06.2017: > so far I have come up with the following but , I have been reading that > using if statements is bad. > > if ($http_host ~ "^rwa-(.*)"){ > set $rule_0 1; > set $bref_2 $2; > set $bref_7 $7; > } > if ($http_host ~ "^m2m-(.*)"){ > set $rule_0 1; > set

Connection timeout

2017-06-14 Thread kdt via nginx
Hi, I am using nginx/1.12.0 as reverse proxy with Apache/2.2.15 Relevant configuration is: upstream backend { ip_hash; server 127.0.0.1:8080; # IP goes here. } server { listen 2x; # IP goes here. server_name www.somesite; # Set proxy headers for the passthrough proxy_set_header Host $ho

Re: nginx hogs cpu on Windows

2017-06-14 Thread Maxim Dounin
Hello! On Tue, Jun 13, 2017 at 03:13:19PM -0700, Igal @ Lucee.org wrote: > Downgrading to 1.12.0 did not help. The server ran fine for about 12 > hours and then the problem started again. > > > On 6/12/2017 3:39 PM, Igal @ Lucee.org wrote: > > > > Hello, > > > > I've noticed a few times alrea

Re: apache rewrite to nginx

2017-06-14 Thread frank3427
so far I have come up with the following but , I have been reading that using if statements is bad. if ($http_host ~ "^rwa-(.*)"){ set $rule_0 1; set $bref_2 $2; set $bref_7 $7; } if ($http_host ~ "^m2m-(.*)"){ set $rule_0 1; set $bref_2 $2; set $bref_7 $7; } if ($http_host ~ "^dwa-(.*)"){ set $rul

Re: apache rewrite to nginx

2017-06-14 Thread frank3427
Alex, I have a LUA version of the PHP script. I am not sure about the multiple rewrite or conditions Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274815,274870#msg-274870 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mai

Peer closed connection in SSL handshake

2017-06-14 Thread tory
Hello. I want to authenticate my server using certificates on my hardware. I have created a private certificate with openssl and have completed the connection test without errors in the browser. This is the setting for nginx. server { listen 14443; listen [::]:14443; ssl

Re: proxy_buffering off; does not work!

2017-06-14 Thread juanzi
Solved. It's not nginx's problem. It's protocol stack. Especially on windows os. I found that client(windows os) did not reply ACK timely. It always sent a ACK after received lots of packets which cause the nginx proxy do not send packets uniformly. Then I used another linux pc to act as client.