Re: Apache benchmark: always a few "super late" requests, why ?

2013-05-04 Thread B.R.
Why do wish so much that comes from Nginx? I would have a look on the network table (listening and connection sockets), on the load of the network, system (processes) suring the tests. But you said nothing of all that, just sending raw ab tests results which say pretty much nothing about anything.

Apache benchmark: always a few "super late" requests, why ?

2013-05-04 Thread henrique matias
Perhaps no matter if i change number of workers, or worker connections, there's always some super late connections on my "ab" tests.. Am very new to benchmark, but the way am doing now is: ab -n 8000 -c 1000 http://address_to_a_plain_text_file ab -n 8000 -c 1000 http://address_to_a_rails_address

Re: Converting subdomain to path component without redirect ?

2013-05-04 Thread henrique matias
Also i tried adding the address to the try_files: try_files $uri $uri @app/de/; and try_files $uri $uri @app/de; but that didn't work either. The way i managed to provide translated content, was using a rewrite inside of my location block: rewrite ^(.*)$ /my-language/$1 break; That solves pa

Re: Converting subdomain to path component without redirect ?

2013-05-04 Thread henrique matias
My first try was to change my location / { } to proxy pass to another language, so i could try "the backend" as you said, but it actually didn't work, i got: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or in

Re: Problem with fastcgi_split_path_info on ubuntu precise

2013-05-04 Thread zakaria
B.R. Wrote: --- > It seems that PATH_INFO is sensitive to points being used in URI... > Check the PHP doc about $_SERVER > : > a very interesting example is being provided there. Yes, I

Re: Problem with fastcgi_split_path_info on ubuntu precise

2013-05-04 Thread B.R.
It seems that PATH_INFO is sensitive to points being used in URI... Check the PHP doc about $_SERVER: a very interesting example is being provided there. Ubuntu is much likely not the problem. Since you are a 'good sysadmin', you also tri

Re: Problem with fastcgi_split_path_info on ubuntu precise

2013-05-04 Thread zakaria
Francis Daly Wrote: --- > On Fri, May 03, 2013 at 09:44:14PM -0400, zakaria wrote: > Hi there, > What output do you expect? > And if it not obvious: how does that differ from this output? > I *think* you're reporting that PATH_INFO is unexpect

Re: [crit] 16665#0 unlink()

2013-05-04 Thread Jim Ohlstein
On 05/03/13 18:01, Maxim Dounin wrote: Hello! You've configured two distinct caches to use single directory. This is not how it's expected to work. You should use distinct directories for each cache you configure. If you want different locations to use the same cache - just use the same cac

Re: Converting subdomain to path component without redirect ?

2013-05-04 Thread Francis Daly
On Mon, Apr 29, 2013 at 10:02:35PM +0100, henrique matias wrote: Hi there, > Am having trouble setting up my nginx.config to transparently proxy the > subdomains and domains to the same app, but with different "path > components" appended to the $uri Frequently, the main problem is that the back

Re: status 009 on post action handler after client connection abort

2013-05-04 Thread Andre Jaenisch
2013/5/4 Jader H. Silva : > Hello, i've notice nginx set $status as 009 on client connection aborted in a > reverse proxy configuration. > Is this the correct behavior? Shouldn't it be 499? > > thanks in advance > Jader H. Sounds somewhat like http://forum.nginx.org/read.php?2,238267,238267#msg-2

Re: proxy_pass only if a file exists

2013-05-04 Thread Francis Daly
On Tue, Apr 30, 2013 at 10:25:34AM -0400, mrtn wrote: Hi there, > I need to make sure a file actually exists before proxy_pass-ing the request > to an upstream server. I don't serve existing files directly using Nginx > because there are some application-specific logic i need to perform on the >

Re: redirect loop with try_files

2013-05-04 Thread Francis Daly
On Sat, May 04, 2013 at 10:20:32AM -0400, mschipperheyn wrote: Hi there, > ## Rewrite index requests > rewrite ^(.*)/index.(.*)$ $1/ permanent; That is likely to lead to a loop, unless you take great care elsewhere. (The typical defaults are: a request for /dir/ leads to an internal rewrite to

status 009 on post action handler after client connection abort

2013-05-04 Thread Jader H. Silva
Hello, i've notice nginx set $status as 009 on client connection aborted in a reverse proxy configuration. Is this the correct behavior? Shouldn't it be 499? thanks in advance Jader H. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailm

Re: file upload with php-fpm

2013-05-04 Thread nateless
Of course I set correct php settings settings: memory_limit => 512M post_max_size => 1000M upload_max_filesize => 1000M Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238838,238841#msg-238841 ___ nginx mailing list nginx@nginx.org http://mai

Re: file upload with php-fpm

2013-05-04 Thread Sylvia
hi. nginx.conf: client_max_body_size 42m; php.ini: memory_limit = 64M post_max_size = 40M upload_max_filesize = 32M it works fine for me with that settings. I havent speficied any timeout settings you used. Have you edited php.ini for php-fpm? If not - default upload file size is 2M Posted

file upload with php-fpm

2013-05-04 Thread nateless
Hello, I've a problem with file upload and googling and checking with everything didn't help to solve it. The problem is when file is being uploaded larger than few megs browser repeats request after about 30 seconds, and on the second request after another 30-40s it throws connection reset and n

Re: Problem with fastcgi_split_path_info on ubuntu precise

2013-05-04 Thread zakaria
Not much different, now even PHP_SELF not set! -- array ( 'USER' => 'www-data', 'HOME' => '/var/www', 'FCGI_ROLE' => 'RESPONDER', 'PATH_INFO' => '', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'CONTENT_TYPE' => '

redirect loop with try_files

2013-05-04 Thread mschipperheyn
Hi, I have a front end nginx webserver with behind it a tomcat server. I ran into a nasty little redirect loop issue that I still don't understand. I'm trying to redirect users who have a session cookie to a different page than the other users I have a configuration such as this: ## Rewrite inde

Re: how to disable nginx internal dns cache?

2013-05-04 Thread Francis Daly
On Sat, May 04, 2013 at 08:42:52AM -0400, nevernet wrote: Hi there, > my network structure is: > proxy server 1(nginx)-->proxy server2(nginx)-->web server > > proxy server2 has dynamic ip address. the ip address will be changed > untime. so i use one domain for it: p2.domain.com. Untested, bu

how to disable nginx internal dns cache?

2013-05-04 Thread nevernet
my network structure is: proxy server 1(nginx)-->proxy server2(nginx)-->web server proxy server2 has dynamic ip address. the ip address will be changed untime. so i use one domain for it: p2.domain.com. but proxy server1(nginx) has been cached the ip of domain: p2.domain.com. so when the new

Re: Problem with fastcgi_split_path_info on ubuntu precise

2013-05-04 Thread Francis Daly
On Fri, May 03, 2013 at 09:44:14PM -0400, zakaria wrote: Hi there, > I must be missing something obvious here. > I rerun my ubuntu configuration script and suddenly my nginx setup not > working correctly anymore. What output do you expect? And if it not obvious: how does that differ from this o