Re: uWSGI - upstream prematurely closed connection while reading response header from upstream

2015-06-24 Thread ajjH6
BTW - this is uWSGI HTTP Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259882,259883#msg-259883 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

uWSGI - upstream prematurely closed connection while reading response header from upstream

2015-06-24 Thread ajjH6
Hi, I have a script which runs for 70 seconds. I have NGINX connecting to it via uWSGI. I have set "uwsgi_read_timeout 90;". However, NGINX drops the connection exactly at 60 seconds - "upstream prematurely closed connection while reading response header from upstream" My script continues to ru

Re: Understanding alias (used as rewrite)

2015-06-24 Thread E.B.
First big appreciated to you and Edho for helping!! Especially for things not documented . :) > you seem to keep referring to "alias used as rewrite". I do not know > what you mean by that. > > Could you explain? Sure I wanted to take a prefix: /my-long-base-path and make sure all uris that ma

Re: Understanding alias (used as rewrite)

2015-06-24 Thread E.B.
> >> This config works for me. > >> > >> location ~ ^/test { > >> alias /data/public_html/somefile.php; > >> > >> include fastcgi.conf; > >> > >> fastcgi_pass 127.0.0.1:8900; > >> } > > > > Yes, I had also got similar to work, but > > only for the exact match uri-- the first > > in

Nginx support fot Weedfs !!

2015-06-24 Thread shahzaib shahzaib
Hi, We're deploying WeedFS distributed filesystem for thumbs storage and scalabilty. Weedfs is composed of two layers (Master, Volume). Master server does all metadata mapping to track the corresponding volume server against user requested file whereas volume server is the actual storage to ser

Re: Nginx not logging to socket

2015-06-24 Thread djczaski
> On Jun 24, 2015, at 10:45 AM, Vladimir Homutov wrote: > >> On Wed, Jun 24, 2015 at 10:21:06AM -0400, Danomi Czaski wrote: >>> On Wed, Jun 24, 2015 at 10:00 AM, Vladimir Homutov wrote: On Wed, Jun 24, 2015 at 08:31:31AM -0400, Danomi Czaski wrote: > On Wed, Jun 24, 2015 at 7:03 AM, Vl

Re: Convert Apache .htaccess rewrite to nginx

2015-06-24 Thread nngin
searching the site, i found that this same question goes unanswered. Please point me in the right direction of where i would be able to get help. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259810,259876#msg-259876 ___ nginx mailing list n

Re: ModSecurity compile, ""WARNING: APR util was not compiled with crypto support."

2015-06-24 Thread zimmerle
Hi, It should not be a problem. The parameter "crypto" is optional and should not affect ModSecurity behavior. Check the SecRemoteRules description on ModSecurity reference manual, at: https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#secremoterules Br, Z. Posted at Nginx Forum:

Re: Caching fastcgi url

2015-06-24 Thread CJ Ess
Everything is fastcgi, my question is how best to treat one single fastcgi URL differently (caching it instead of forwarding every request to the backend). On Wed, Jun 24, 2015 at 12:37 PM, ryd994 wrote: > > > On Tue, Jun 23, 2015 at 6:27 PM CJ Ess wrote: > >> So looks like your saying the bes

Re: unknown directive "thread_pool"

2015-06-24 Thread bagas
Это я все понимаю. Спасибо за содействие. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259166,259872#msg-259872 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: unknown directive "thread_pool"

2015-06-24 Thread bagas
Спасибо. На хабре же я и прочитал твою статью, сделал как у тебя а в этоге фиг. ) Пока отложу настройку пулов, пусть используются родные фряхины. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259166,259871#msg-259871 ___ nginx mailing list

Re: Caching fastcgi url

2015-06-24 Thread ryd994
On Tue, Jun 23, 2015 at 6:27 PM CJ Ess wrote: > So looks like your saying the best way to do it is to do a separate > location and duplicate the fastcgi setup in that location and add the > fastcgi_cache stuff. > > I can work with that, however I came across this example while googling ( > https:

Re: unknown directive "thread_pool"

2015-06-24 Thread Valentin V. Bartenev
On Wednesday 24 June 2015 09:32:45 bagas wrote: > То-есть, на системе FreeBSD смысла нет использовать пул потоков от nginx? > Про пул от nginx мало информации и примерров. > You should use native AIO on FreeBSD instead. See: http://nginx.com/blog/thread-pools-boost-performance-9x/ or in Russian:

Re: unknown directive "thread_pool"

2015-06-24 Thread Maxim Konovalov
Hi Francis, it seems that you start to learn Russian! :-) On 6/24/15 6:36 PM, Francis Daly wrote: > On Wed, Jun 24, 2015 at 08:11:28AM -0400, bagas wrote: >> Добрый день. > > "unknown directive" != "directive is not allowed here" > >> Не понятно мне, куда помещать настройку по пулам. > > http:

Re: Understanding alias (used as rewrite)

2015-06-24 Thread Francis Daly
On Tue, Jun 23, 2015 at 11:44:33PM -0700, E.B. wrote: Hi there, > Thanks for your ongoing helps! I hope someone > can advise further you seem to keep referring to "alias used as rewrite". I do not know what you mean by that. Could you explain? When you do, it may be that it becomes clear where

Re: unknown directive "thread_pool"

2015-06-24 Thread Francis Daly
On Wed, Jun 24, 2015 at 08:11:28AM -0400, bagas wrote: > Добрый день. "unknown directive" != "directive is not allowed here" > Не понятно мне, куда помещать настройку по пулам. http://nginx.org/ru/docs/ngx_core_module.html#thread_pool """ Контекст: main """ nginx.conf: == thread_pool

Re: Nginx not logging to socket

2015-06-24 Thread Vladimir Homutov
On Wed, Jun 24, 2015 at 10:21:06AM -0400, Danomi Czaski wrote: > On Wed, Jun 24, 2015 at 10:00 AM, Vladimir Homutov wrote: > > On Wed, Jun 24, 2015 at 08:31:31AM -0400, Danomi Czaski wrote: > >> On Wed, Jun 24, 2015 at 7:03 AM, Vladimir Homutov wrote: > >> > On Wed, Jun 24, 2015 at 06:12:49AM -04

Re: Nginx not logging to socket

2015-06-24 Thread Danomi Czaski
On Wed, Jun 24, 2015 at 10:00 AM, Vladimir Homutov wrote: > On Wed, Jun 24, 2015 at 08:31:31AM -0400, Danomi Czaski wrote: >> On Wed, Jun 24, 2015 at 7:03 AM, Vladimir Homutov wrote: >> > On Wed, Jun 24, 2015 at 06:12:49AM -0400, Danomi Czaski wrote: >> >> Hello, >> >> >> >> On Sun, Jun 21, 2015

Re: unknown directive "thread_pool"

2015-06-24 Thread bagas
У меня aio работает, оно помоему по умолчанию до 1,9 ветки. Я прописывал в локейшены свои aio threads; но это стандартно, хотелось для каждого проекта сделать свой пул. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259166,259851#msg-259851 _

Re: Nginx not logging to socket

2015-06-24 Thread Vladimir Homutov
On Wed, Jun 24, 2015 at 08:31:31AM -0400, Danomi Czaski wrote: > On Wed, Jun 24, 2015 at 7:03 AM, Vladimir Homutov wrote: > > On Wed, Jun 24, 2015 at 06:12:49AM -0400, Danomi Czaski wrote: > >> Hello, > >> > >> On Sun, Jun 21, 2015 at 8:19 AM, Andrew Holway > >> wrote: > >> > Hallo! > >> > > >> >

Re: unknown directive "thread_pool"

2015-06-24 Thread Anatoli Marinov
RTFM :) http://nginx.org/en/docs/http/ngx_http_core_module.html#aio 2015-06-24 16:39 GMT+03:00 Anatoli Marinov : > > http://serverfault.com/questions/476765/how-do-i-enable-aio-on-nginx-on-freebsd > Just add 'aio on;' instead of 'aio threads;'. > Also you should compile nginx without threads. > >

Re: unknown directive "thread_pool"

2015-06-24 Thread Anatoli Marinov
http://serverfault.com/questions/476765/how-do-i-enable-aio-on-nginx-on-freebsd Just add 'aio on;' instead of 'aio threads;'. Also you should compile nginx without threads. 2015-06-24 16:32 GMT+03:00 bagas : > То-есть, на системе FreeBSD смысла нет использовать пул потоков от nginx? > Про пул от

Re: unknown directive "thread_pool"

2015-06-24 Thread bagas
То-есть, на системе FreeBSD смысла нет использовать пул потоков от nginx? Про пул от nginx мало информации и примерров. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259166,259845#msg-259845 ___ nginx mailing list nginx@nginx.org http://mail

ModSecurity compile, ""WARNING: APR util was not compiled with crypto support."

2015-06-24 Thread ajjH6
Hi, When compiling modsec, I came across the following - "configure: WARNING: APR util was not compiled with crypto support. SecRemoteRule will not support the parameter 'crypto'" Basically the rhel6 apr-devel rpm does not have crypto support. Trying to determine what are the ramifications are h

Re: unknown directive "thread_pool"

2015-06-24 Thread Anatoli Marinov
I am not sure you need threads with freebsd because it has native aio support. 2015-06-24 15:11 GMT+03:00 bagas : > Добрый день. > Не понятно мне, куда помещать настройку по пулам. > # uname -orm > FreeBSD 10.1-RELEASE-p12 amd64 > nginx -v > nginx version: nginx/1.8.0 > nginx собран с оцией --wit

Re: Nginx not logging to socket

2015-06-24 Thread Danomi Czaski
On Wed, Jun 24, 2015 at 7:03 AM, Vladimir Homutov wrote: > On Wed, Jun 24, 2015 at 06:12:49AM -0400, Danomi Czaski wrote: >> Hello, >> >> On Sun, Jun 21, 2015 at 8:19 AM, Andrew Holway >> wrote: >> > Hallo! >> > >> > Using rsyslog I have set up a logging socket and confirmed that its working >> >

Re: 502 Error Issue

2015-06-24 Thread Miguel Clara
On June 24, 2015 11:45:38 AM GMT+01:00, "mudgil.gaurav" wrote: >Hi All, > >We recently migrated from apache to nginx. > >OS - CetnOS 6 >Nginx - 1.62 (4 CPU 8 GB RAM) >PHP-FPM (php 5.4.37) (4 CPU 8 GB RAM) >APC (Code Cache APC 3.1.13 beta) >Memcache (data cache) > >I have upstream of 4 php serv

Re: unknown directive "thread_pool"

2015-06-24 Thread bagas
Добрый день. Не понятно мне, куда помещать настройку по пулам. # uname -orm FreeBSD 10.1-RELEASE-p12 amd64 nginx -v nginx version: nginx/1.8.0 nginx собран с оцией --with-threads Далее. nginx.conf в секцию http добавил: thread_pool one threads=32; thread_pool cen threads=32; После делаю проверку.

Re: Nginx not logging to socket

2015-06-24 Thread Vladimir Homutov
On Wed, Jun 24, 2015 at 06:12:49AM -0400, Danomi Czaski wrote: > Hello, > > On Sun, Jun 21, 2015 at 8:19 AM, Andrew Holway > wrote: > > Hallo! > > > > Using rsyslog I have set up a logging socket and confirmed that its working > > by piping in some stuff to "logger -u /dev/log" > > nginx/1.8.0 doe

Re: Understanding alias (used as rewrite)

2015-06-24 Thread Edho Arief
On Wed, Jun 24, 2015 at 3:44 PM, E.B. wrote: > Thanks for your ongoing helps! I hope someone > can advise further > >> >> You're probably looking for this >> >> >> >> fastcgi_param SCRIPT_FILENAME /another/different/path/anotehrscript.php; >> > >> > Excellent point! Thanks you! >> > However, what

502 Error Issue

2015-06-24 Thread mudgil.gaurav
Hi All, We recently migrated from apache to nginx. OS - CetnOS 6 Nginx - 1.62 (4 CPU 8 GB RAM) PHP-FPM (php 5.4.37) (4 CPU 8 GB RAM) APC (Code Cache APC 3.1.13 beta) Memcache (data cache) I have upstream of 4 php servers for php-fpm service. I am facing two issues: 1. I am getting 502 status

Re: Nginx not logging to socket.

2015-06-24 Thread Danomi Czaski
Hello, On Sun, Jun 21, 2015 at 8:19 AM, Andrew Holway wrote: > Hallo! > > Using rsyslog I have set up a logging socket and confirmed that its working > by piping in some stuff to "logger -u /dev/log" > nginx/1.8.0 does not seem to be dumping in logs however. The nginx config is > below.. Any luc