Re: Forwarding to upstream server at port specified in url query paramter

2013-03-05 Thread dakun
Thanks for the advice on $arg_PARAMETER. It allows me to retrieve the parameter. However I am not able to use it as a port number for proxy_pass. This shows that I can get the parameter and use it in rewrite: location /test { rewrite ^ http://www.google.com/?q=$arg_p; } This does not work. Got e

Ngixn не отдает файлы больше 1 мб

2013-03-05 Thread Evgeny T.
Nginx не отдает файлы > 1мб Есть Rails + Nginx + Unicorn Все работает, мелкие файлы отдаются, даже видео через JWPlayer проигрывается. Проблема в том, что есть флешка 1.8 МБ и когда пытаешься ее вывести на страницу или прямой ссылкой открыть, то она не показывается. В заголовках приходит следующе

Re: nginx stats

2013-03-05 Thread mex
> > Yes, the stub one is quite limited. We've been working on a much > better version, which is going to appear soon. > any more info on this topic yet? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,224597,236976#msg-236976 ___ nginx mail

Re: Need help to convert .htaccess to nginx rules

2013-03-05 Thread mex
maybe this helps as a start: http://stackoverflow.com/questions/5840497/convert-htaccess-to-nginx and you may want to read http://wiki.nginx.org/HttpCoreModule#location http://wiki.nginx.org/HttpRewriteModule since usage and order-of-procerssing is quite a little different regards, mex

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

2013-03-05 Thread mex
looks like a recursion to me, no? you point your nginx.conf to proxy_pass to http://www.masterjoestoybox.net/ and then you define with your mjtb a config that listens to www.masterjoestoybox.net and proxy_passes to http://www.masterjoestoybox.net/ and you configure a upstream unicorn_server in yo

how work ip_hash and weight in nginx 1.2.7

2013-03-05 Thread moke110007
sorry,my english is poor. >>> webserver: tomcat 6.0.23 When I tested on four tomcat servers, one server load is higher always.How to set up to make each server load is balanced. >>> Use weight to decide load distribution, iphash to decide the next should be assigned to which server. Thanks! Poste

Problem configuring Nginx to host SpreeCommerce - 502 error

2013-03-05 Thread Joseph O.
I have had a terribly difficult time deploying SpreeCommerce, despite (or perhaps because of) following the Spree documentation. I have eventually gotten to the point where the Capistrano deployment runs through entirely, but I seem to have configured Nginx incorrectly, as I am getting a "502 - Bad

Re: Forwarding to upstream server at port specified in url query paramter

2013-03-05 Thread Jonathan Matthews
On 6 March 2013 00:51, dakun wrote: > I am trying to use the HttpProxyModule to forward traffic to an upstream > server. The incoming request will be like: > > http://foobar.com/path?p=1234 > > where p=1234 indicates the upstream port to use. > > For this example I would want to forward to htt

Forwarding to upstream server at port specified in url query paramter

2013-03-05 Thread dakun
I am trying to use the HttpProxyModule to forward traffic to an upstream server. The incoming request will be like: http://foobar.com/path?p=1234 where p=1234 indicates the upstream port to use. For this example I would want to forward to http://upstreamserver.com:1234. How can I achiev

Why would nginx 0.7.6 is drop requests randomly

2013-03-05 Thread Arman Mirk
I notice our server is rapidly responding 500 errors for random pages. Our setup is pretty basic. We are running Nginx 0.7.6 with Unicorn and a Rails app on a Ubuntu 10.4 server. What ever the problem, it doesn't seem to happen at the application level since Unicorn logs don't contain any errors.

Re: nginx-1.3.14: alert sched_setaffinity() failed

2013-03-05 Thread Patrick Lists
Hi Maxim, Thank you for your feedback. On 05-03-13 20:07, Maxim Dounin wrote: Do you have worker_cpu_affinity (http://nginx.org/r/worker_cpu_affinity) in your config? Does it match CPUs available? My bad, a config was copied which had worker_cpu_affinity set. I removed it and the alert is g

Re: Websocket on port 80

2013-03-05 Thread trm asn
On Tue, Mar 5, 2013 at 1:20 AM, trm asn wrote: > Hi List, > > I am using Nginx-1.3.13 for this websocket support. I am doing socket.ioproxy > from Nginx . Below is my nginx.conf for websocket . > > > http { > include /etc/nginx/mime.types; > default_type application/octet-

Re: nginx-1.3.14: alert sched_setaffinity() failed

2013-03-05 Thread Maxim Dounin
Hello! On Tue, Mar 05, 2013 at 07:38:30PM +0100, Patrick Lists wrote: > Hi, > > On an updated CentOS 6.3 x86_64 VM I just installed nginx 1.3.14 > with extra modules ngx_cache_purge and nginx-auth-ldap, the SPDY 66 > patch and built statically against openssl-1.0.1e. In the error log > I see thi

QNs about cookies and caching

2013-03-05 Thread Peter Booth
I'm wondering if someone can help with the following? I have a java app where I'm using nginx as a caching reverse proxy. I have a location defined for five distinct JSPs and different cache configurations and custom keys for each. Some locations are using: proxy_ignore_headers Set-Cookie Proxy_

nginx-1.3.14: alert sched_setaffinity() failed

2013-03-05 Thread Patrick Lists
Hi, On an updated CentOS 6.3 x86_64 VM I just installed nginx 1.3.14 with extra modules ngx_cache_purge and nginx-auth-ldap, the SPDY 66 patch and built statically against openssl-1.0.1e. In the error log I see this message: 2013/03/05 19:31:39 [alert] 13363#0: sched_setaffinity() failed (22

Need help to convert .htaccess to nginx rules

2013-03-05 Thread onel0ve
[code] #Compress SetOutputFilter DEFLATE Options +FollowSymLinks RewriteEngine on RewriteBase / # please use .php at url for admin RewriteRule ^recent-articles-feed rss.php [NC] RewriteRule ^rss/([^/]+) rss.php?q=$1 [NC] # To ignore htaccess - enlist here RewriteCond $1 !^(index\.php|ftpservice|d

Re: nginx/KQUEUE+SPDY breaks proxy_ignore_client_abort

2013-03-05 Thread Valentin V. Bartenev
On Saturday 02 March 2013 02:09:46 Valentin V. Bartenev wrote: > On Saturday 02 March 2013 00:56:06 Phil Pennock wrote: > > [fixed Subject: to help others with issue track it] > > > > On 2013-03-01 at 17:12 +0400, Maxim Dounin wrote: > > > It looks like you are running nginx with experimental SPDY

nginx-1.3.14

2013-03-05 Thread Maxim Dounin
Changes with nginx 1.3.1405 Mar 2013 *) Feature: $connections_active, $connections_reading, and $connections_writing variables in the ngx_http_stub_status_module. *) Feature: support of WebSocket connections in the ngx_http_uwsgi_modul

Re: No such file or directory errors, nginx hang after a few hours

2013-03-05 Thread Maxim Dounin
Hello! On Tue, Mar 05, 2013 at 05:48:03AM -0500, arty777 wrote: > Hi , after i clean cache , i see critical warning in my log, its normal? > > 2013/03/05 12:41:42 [crit] 40771#0: unlink() > "/nginx/temp/proxy/3/9b/79fac0c8634496bb89b7d9d9dd3349b3" failed (2: No such > file oectory) > 2013/03/05

Rewrite inside location block before proxy to local port

2013-03-05 Thread John Wong
Hi, I asked somewhat releated question here: http://serverfault.com/questions/484573/nginx-proxy-to-a-new-vm-without-affect-old-site-enabled-rules Problem arises with one java program. This java program now expects /beta/scm because it said "/scm not found" in its pretty java error page. Not ngin

Re: Is it possible that nginx will not buffer the client body?

2013-03-05 Thread double
Are there any plans to integrate this feature into NGINX? It would be very great. > Maxim Dounin: > As a non-default mode of operation the aproach taken is likely > good enough (not looked into details), but the patch won't work > with current nginx versions - at least it needs (likely major) >

Re: No such file or directory errors, nginx hang after a few hours

2013-03-05 Thread arty777
I clear only files, don't remove dir, my script example #!/bin/bash CACHE_DIR='/nginx/temp/proxy' for i in `find ${CACHE_DIR} -type f`; do rm $i ; done Posted at Nginx Forum: http://forum.nginx.org/read.php?2,28335,236947#msg-236947 ___ nginx mailing

Re: No such file or directory errors, nginx hang after a few hours

2013-03-05 Thread arty777
Hi , after i clean cache , i see critical warning in my log, its normal? 2013/03/05 12:41:42 [crit] 40771#0: unlink() "/nginx/temp/proxy/3/9b/79fac0c8634496bb89b7d9d9dd3349b3" failed (2: No such file oectory) 2013/03/05 12:41:42 [crit] 40771#0: unlink() "/nginx/temp/proxy/f/0c/f04ebf30ad0cea667ee5

Getting HTTP 500 Error

2013-03-05 Thread Demontager
I'm trying to setup Nginx+phpFPM for first time (php5.2) and can't get it working. Base system is FreeBSD 9.1. So my main configs: nginx.conf - http://pastebin.com/KwhHr0NK php-fpm.conf - http://pastebin.com/KQBwp3KL vhost config - http://pastebin.com/qyFzc9Xa Nginx started and working as i m