Re: leaking memory nginx 1.8.0

2015-07-06 Thread Umarzuki Mochlis
2015-07-07 14:25 GMT+08:00 evgeni22 : > Hello, need help with leaking memory > i installed fresh system , centos7.1 +directadmin + nginx1.8.0 + > mariadb5.5.41 + php54 & php56 both with php_fpm > the server it for webhosting and i have there 32gb for now have only 4 > website on it, and after 1-2ho

leaking memory nginx 1.8.0

2015-07-06 Thread evgeni22
Hello, need help with leaking memory i installed fresh system , centos7.1 +directadmin + nginx1.8.0 + mariadb5.5.41 + php54 & php56 both with php_fpm the server it for webhosting and i have there 32gb for now have only 4 website on it, and after 1-2hours nginx take all memory when it come to 96% it

Re: [ANN] Nginx-Clojure v0.4.0 Release!

2015-07-06 Thread xfeep
Freebsd port upgraded nginx clojure module from 0.3.0 to 0.4.0! So on Freebsd we can chose clojure module to enable it after run pkg install nginx cd /usr/ports/www/nginx make config Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260065,260105#msg-260105 ___

Re: Multiple add_header

2015-07-06 Thread Alt
Hello okamzol and thanks a lot for your answer! Yes, it's exactly the same question, looks like I'll need to use include. Best Regards Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260102,260104#msg-260104 ___ nginx mailing list nginx@ngin

Re: Multiple add_header

2015-07-06 Thread okamzol
Hi, there is no chance to avoid the duplicates. I asked the same questions some time ago. For detailed answer on my question see http://forum.nginx.org/read.php?2,256270,256279#msg-256279. I think this will answer your question too. Best Regards Posted at Nginx Forum: http://forum.nginx.org/re

Multiple add_header

2015-07-06 Thread Alt
Hello, I'm using PHP with nginx 1.9.2 and it works great! But there's something I don't understand with the add_header directive. I use add_header in server and location block, but it seems only the one in location is used. If I remove the add_header in the location block, I get the header I adde

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-06 Thread Alt
Why don't you try with requests to real pages, not to a fragment? "#" and everything after this character isn't sent to the web server, it's only used by the web client. You really should read at least: https://en.wikipedia.org/wiki/Fragment_identifier Some browsers will keep the fragment after th

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-06 Thread Francis Daly
On Mon, Jul 06, 2015 at 12:40:37PM -0400, ramsoft75 wrote: Hi there, Things seem to be getting a lot more complicated than they need to. > The "^/$" came from : > > #to detect if the device with www entered in domain is mobile > if ($http_user_agent ~* '(iPhone|iPod|iPad|Android|BlackBerry|webO

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-06 Thread ramsoft75
Hi I think the part where de parameters are clean is : 2015/07/06 15:32:21 [debug] 6500#0: *9 http script copy: "http://m.domain.com/"; 2015/07/06 15:32:21 [debug] 6500#0: *9 http script capture: "" 2015/07/06 15:32:21 [debug] 6500#0: *9 http script regex end 2015/07/06 15:32:21 [notice] 6500#0:

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-06 Thread ramsoft75
The "^/$" came from : #to detect if the device with www entered in domain is mobile if ($http_user_agent ~* '(iPhone|iPod|iPad|Android|BlackBerry|webOS|Windows Phone)') { rewrite ^/$ http://m.domain.com$request_uri; } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260033,260097#msg-2

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-06 Thread ramsoft75
I 'am running Nginx with logging in debug mode and the report for "^/$" is : 2015/07/06 15:32:21 [debug] 6500#0: *9 accept: 193.137.170.139 fd:20 2015/07/06 15:32:21 [debug] 6500#0: *9 event timer add: 20: 6:1436196801837 2015/07/06 15:32:21 [debug] 6500#0: *9 reusable connection: 1 2015/07/06

Re: proxy_cache_key with variables

2015-07-06 Thread Roman Arutyunyan
> On 06 Jul 2015, at 16:49, sz_g wrote: > > I've just created a configuration composed of two servers. > Both just forwards traffic from different ports (and protocols) to different > servers, and keep responses in cache. It works nice. > > For both servers "GET /" request is sent, in the respo

Re: DNS cache in nginx

2015-07-06 Thread Maxim Dounin
Hello! On Sat, Jul 04, 2015 at 09:42:06AM +0300, Shay Peretz wrote: > Hello , > > I have an A record which resolve to 2 CNAME's , the DNS failover will > make the switch if something go wrong . > > The problem is that after a change the nginx stick to the OLD IP > unless I reload it .. > any wa

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-06 Thread ramsoft75
I entered in a url an url similar to the tested before : http://www.domain.com/#\!/pt/--item-view/en/3190/Wok-Vintage And the Nginx didn't recorded the access in the nginx access.log file Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260033,260092#msg-260092

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-06 Thread ramsoft75
Hi I tested in a iPad and Safari the request and the nginx log reported a 401 error : xxx.xxx.xxx.xxx - - [06/Jul/2015:13:42:24 +] "GET /pt/api_cp/user_counts/ HTTP/1.1" 401 27 "http://m.domain.com/"; "Mozilla/5.0 (iPad; CPU OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Versio

Re: proxy_cache_key with variables

2015-07-06 Thread xnirchan
Hi, >>proxy_cache_key "$upstream_addr*$request"; I am not sure that you are using the correct format for proxy_cache_key directive. my I know what is the wildcard char "*" doing out there, between $upstream_addr and $request? refer to nginx directive example: proxy_cache_key "$host$request_uri $c

proxy_cache_key with variables

2015-07-06 Thread sz_g
I've just created a configuration composed of two servers. Both just forwards traffic from different ports (and protocols) to different servers, and keep responses in cache. It works nice. For both servers "GET /" request is sent, in the response there is proper resource. Thus (to distinguish resp

stub_status newrelic plugin

2015-07-06 Thread xnirchan
Hello nginx experts, I wonder how nginx generate the server status by stub_status directive. I have set several virtual host on single server and I put the several nginx server behind load balancer. I have 2 questions: 1. does stub_status show difference results between virtual hosts in one serve

Re: websocket causes "client sent invalid method ..."

2015-07-06 Thread snagytx
Thank you. As a temporary solution I used port-forwarding at the firewall level, it doesn't do load balancing but I don't need it for now. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260007,260083#msg-260083 ___ nginx mailing list nginx@ng

Re: High load due to reload

2015-07-06 Thread Maxim Dounin
Hello! On Mon, Jul 06, 2015 at 08:45:53AM +0200, 5hosting GmbH wrote: > thanks for your explanation. Is there a formula we can use to calculate the > amount of RAM needed in a reload scenario? As previously suggested, nginx memory consumption during a reload may be doubled compared to normal op

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-06 Thread Francis Daly
On Sun, Jul 05, 2015 at 03:31:22PM -0400, ramsoft75 wrote: Hi there > This only append's with Safari, there's no problem with Chrome (Desktop, > Mobile) or Internet Explorer in Pc, could this be a browser problem and not > an Nginx configuration problem ? For one request that gets the response y

Re: Debian Packages from nginx.org

2015-07-06 Thread Sergey Budnevitch
> On 06 Jul 2015, at 11:37, Sebastian Stabbert > wrote: > > Hey Guys, > > the Debian package for latest stable nginx contains a logrotate.d file with > following contents: > "create 640 nginx adm“ Yes, nginx package creates user nginx, while arm is a system group. > > However, the package

Re: Nginx doesn't redirect www no m in Safari, iPhone, iPad

2015-07-06 Thread ramsoft75
Good day There was a problem in testing in the terminal with the character "!", it should be with "\" after, like this : $ curl -A iPad -i http://www.domain.com/#\!/pt/--item-view/en/3190/Wok-Vintage And the result was : HTTP/1.1 301 Moved Permanently Server: nginx Date: Mon, 06 Jul 2015 08:50:

Debian Packages from nginx.org

2015-07-06 Thread Sebastian Stabbert
Hey Guys, the Debian package for latest stable nginx contains a logrotate.d file with following contents: "create 640 nginx adm“ However, the package does not create a user „debian“ and the user does not exist in Debian by default. Id say this is a bug - however Im not able to login to TRAC, I