Re: Reorder output chain when subrequests are used

2013-05-04 Thread agentzh
Hello! On Fri, May 3, 2013 at 3:28 PM, Marat Dakota wrote: Ok, I need improper way then. Just some way. The problem is that I know bbb only after the subrequest is made. And subrequest's body is being completely filtered by body filter. So, in fact I will not have ccc, just aaabbb, but I

[PATCH] Add directive to always gunzip content

2013-05-04 Thread Roy Reznik
Use this by adding gunzip_always on; to configuration. This was in the modules to-do list. Cheers. @@ -16,6 +16,7 @@ typedef struct { ngx_flag_t enable; ngx_bufs_t bufs; +ngx_flag_t always; } ngx_http_gunzip_conf_t; @@ -77,6 +78,13 @@

Помогите написать конфиг

2013-05-04 Thread CYB3R
Привет всем! На ЛОРе посоветовали обратиться на форум nginx (http://www.linux.org.ru/forum/admin/9128165?cid=9128167), не уверен, что пишу туда, куда следует. Недавно снёс tomcat, поставил nginx и обрадовался, как же мало памяти он кушает. Но с конфигами всё не так просто, как я ожидал. Для

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

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, but

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

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' = '',

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

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

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

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: status 009 on post action handler after client connection abort

2013-05-04 Thread Andre Jaenisch
2013/5/4 Jader H. Silva jader...@gmail.com: 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

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-end

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 http://www.php.net/manual/en/reserved.variables.server.php: a very interesting example is being provided there. Yes, I knew

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