Re: nginx 1.4.x file upload multipart ecoded

2013-07-25 Thread Yichun Zhang (agentzh)
Hello! On Thu, Jul 25, 2013 at 5:04 PM, nenad wrote: > How I can handle multipart data uploads with the latest nginx release? > Take a look at ngx_lua module and the lua-resty-upload library: https://github.com/agentzh/lua-resty-upload Best regards, -agentzh ___

Re: Update nginx with Ubuntu PPA

2013-07-25 Thread JackB
Valentin V. Bartenev Wrote: > > This might be a little off topic, but how can one upgrade nginx on ubuntu > > with the official ppa via apt without having a restart of nginx but an > > upgrade instead? (/etc/init.d/nginx upgrade) > Please note, there is no "official ppa". > > Official nginx repo

Re: listen directive

2013-07-25 Thread drook
Actually, I've read carefully this part of the manual before creating this topic. I still think the quoted passage explains nothing about virtualhost handling. It doesn't explain that skipping address or port will result in what I prefer to call "less prioritized vhosts". May be it's obvious from t

nginx 1.4.x file upload multipart ecoded

2013-07-25 Thread nenad
How I can handle multipart data uploads with the latest nginx release? The good old upload module won^t compile anymore. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241277,241277#msg-241277 ___ nginx mailing list nginx@nginx.org http://m

Re: Update nginx with Ubuntu PPA

2013-07-25 Thread Paul N. Pace
On Thu, Jul 25, 2013 at 10:29 AM, Valentin V. Bartenev wrote: > On Tuesday 23 July 2013 12:24:38 JackB wrote: >> openletter Wrote: >> --- >> >> > If you are using the apt-get upgrade or aptitude upgrade commands, the >> > service will be restarte

Re: .spec file for 1.4.2 RPM

2013-07-25 Thread Jan Algermissen
On 25.07.2013, at 22:09, Jan Algermissen wrote: > > Ah, ok. Sorry for being n00b maybe . Damn ... got it. The SRPM conatins the .spec file to build the RPM. Oh my - stupid me. Jan > Jan > > > >> >> ___ >> nginx mailing list >> nginx@nginx.o

Re: .spec file for 1.4.2 RPM

2013-07-25 Thread Jan Algermissen
On 25.07.2013, at 21:42, Sergey Budnevitch wrote: > > On 25 Jul2013, at 23:09 , Jan Algermissen wrote: > >> Hi, >> >> can anyone point me to the RPM .spec file for the binary RHEL 6 RPM? >> >> I need to create a binary RPM in a certain context and look for a quick >> starting point. > >

Re: .spec file for 1.4.2 RPM

2013-07-25 Thread Sergey Budnevitch
On 25 Jul2013, at 23:09 , Jan Algermissen wrote: > Hi, > > can anyone point me to the RPM .spec file for the binary RHEL 6 RPM? > > I need to create a binary RPM in a certain context and look for a quick > starting point. Take it from srpm: http://nginx.org/packages/rhel/6/SRPMS/nginx-1.4.

.spec file for 1.4.2 RPM

2013-07-25 Thread Jan Algermissen
Hi, can anyone point me to the RPM .spec file for the binary RHEL 6 RPM? I need to create a binary RPM in a certain context and look for a quick starting point. Jan ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Incorrect redirect protocol when behind a reverse proxy

2013-07-25 Thread Jonathan Matthews
On 25 July 2013 17:14, Glenn Maynard wrote: > On Thu, Jul 25, 2013 at 10:53 AM, Jonathan Matthews > wrote: >> >> On my phone's browser, searching for that module name doesn't bring me >> anything useful I'm afraid. Are you just serving local files off disk? > > src/http/modules/ngx_http_static_mo

Re: Update nginx with Ubuntu PPA

2013-07-25 Thread Valentin V. Bartenev
On Tuesday 23 July 2013 12:24:38 JackB wrote: > openletter Wrote: > --- > > > If you are using the apt-get upgrade or aptitude upgrade commands, the > > service will be restarted for you. > > This might be a little off topic, but how can one upg

Re: Incorrect redirect protocol when behind a reverse proxy

2013-07-25 Thread Glenn Maynard
On Thu, Jul 25, 2013 at 10:53 AM, Jonathan Matthews wrote: > On my phone's browser, searching for that module name doesn't bring me > anything useful I'm afraid. Are you just serving local files off disk? > src/http/modules/ngx_http_static_module.c. This is where the trailing-slash redirects ori

Re: Incorrect redirect protocol when behind a reverse proxy

2013-07-25 Thread Jonathan Matthews
On 25 Jul 2013 15:43, "Glenn Maynard" wrote: > > On Thu, Jul 25, 2013 at 5:11 AM, Jonathan Matthews < cont...@jpluscplusm.com> wrote: >> >> What does this mean? Do you see SSL traffic, or do you mean heroku terminates the ssl leaving you with http connections only? > > Heroku handles SSL, and ngin

Re: Incorrect redirect protocol when behind a reverse proxy

2013-07-25 Thread Glenn Maynard
On Thu, Jul 25, 2013 at 5:11 AM, Jonathan Matthews wrote: > What does this mean? Do you see SSL traffic, or do you mean heroku > terminates the ssl leaving you with http connections only? > Heroku handles SSL, and nginx sees only HTTP traffic. > > This mostly works fine, but nginx has one proble

Re: Hashes / Arrays für $arg_PARAMETER

2013-07-25 Thread Jonathan Matthews
On 25 Jul 2013 12:34, "Maik Unger" wrote: > > hi, > > i think that you don't understand me. I understand you just fine. You want to use the nginx config language in a way it can't be, because it's not a general purpose language and the implementors didn't put in the specific feature you want to u

Custom forced 503 page does not work

2013-07-25 Thread Dennis Jacobfeuerborn
Hi, I'm trying to deliver a custom 503 page for all requests the server receives but with the following config it doesn't work. server { listen 81; server_name localhost; error_log /var/log/nginx/error.log debug; root /usr/share/nginx/html; location / { retu

Re: Hashes / Arrays für $arg_PARAMETER

2013-07-25 Thread edogawaconan
On Thu, Jul 25, 2013 at 8:34 PM, Maik Unger wrote: > hi, > > i think that you don't understand me. > > i will define an array that will check against the $arg_PARAMETER. > > Example: > > Array with the following Values: > > array ("test"; "test2) > > Query-String: > > http://domain.com/?user=test

Re: Hashes / Arrays für $arg_PARAMETER

2013-07-25 Thread Maik Unger
hi, i think that you don't understand me. i will define an array that will check against the $arg_PARAMETER. Example: Array with the following Values: array ("test"; "test2) Query-String: http://domain.com/?user=test $arg_user = "test" if the $arg_PARAMETER match with on of the array value

Re: cannot build variables_hash

2013-07-25 Thread Andrew Alexeev
On Jul 25, 2013, at 2:49 AM, John Watson wrote: > Upgraded from 1.2.9 to 1.4.1 and now started getting: > > [emerg] could not build the variables_hash, you should increase either > variables_hash_max_size: 512 or variables_hash_bucket_size: 64 > > Same configuration and even dropped (2) 3rd

Re: Incorrect redirect protocol when behind a reverse proxy

2013-07-25 Thread Jonathan Matthews
On 24 Jul 2013 23:03, "Glenn Maynard" wrote: > > Our nginx server is running on Heroku, which proxies SSL. What does this mean? Do you see SSL traffic, or do you mean heroku terminates the ssl leaving you with http connections only? > This mostly works fine, but nginx has one problem with it: si

Re: Hashes / Arrays für $arg_PARAMETER

2013-07-25 Thread Jonathan Matthews
On 24 Jul 2013 21:30, "Maik Unger" wrote: > > Hello @all, > > Is it possible to define array / hashes in nginx? I have the following > idea: > > nginx should check $arg_PARAMETER which is defined by an array. If the > right element in the array, then die access is permitted, otherwise > denied. >

Re: 404 not found afther reboot

2013-07-25 Thread Jonathan Matthews
On 25 Jul 2013 08:27, "Furious S." wrote: > I have a problem [snip no detail] > can someone help me ? Come on chap - what would /you/ do if someone sent you a bug report with so little information in it? /Think/ before you email a list! J ___ nginx mai

Re: How to make the log file printed by access_log split

2013-07-25 Thread Richard Kearsley
Hi There's no size limit, it will keep getting bigger until your disk is full Here's a script I use to rotate the log, run it from cron every hour hope it helps #!/bin/sh PID=`cat /usr/local/nginx/logs/nginx.pid` LOG="/usr/local/nginx/logs/access.log" NOW=$(date +"%Y-%m-%d-%H-%M") NEWLOG="${LOG}.

Re: How to make the log file printed by access_log split

2013-07-25 Thread Maxim Dounin
Hello! On Thu, Jul 25, 2013 at 04:52:38AM -0400, shawnxzhou wrote: > what's the limit of the size of log file, and what will happen when it > reaches the limitation? > if I want to split the log file by timeline, say start a new file on the > beginning of an hour, how can I configure ngnix? This

Re: listen directive

2013-07-25 Thread Ruslan Ermilov
On Thu, Jul 25, 2013 at 04:34:53AM -0400, drook wrote: > Thanks a lot, this is much clearer. Actually, 'absent "listen", or "listen" > without both a port and address, assume > the default values for the missing parts' explains everything, and I think > the manual would be more clear mentioning thi

How to make the log file printed by access_log split

2013-07-25 Thread shawnxzhou
what's the limit of the size of log file, and what will happen when it reaches the limitation? if I want to split the log file by timeline, say start a new file on the beginning of an hour, how can I configure ngnix? thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241226,241226#m

Use directive value inside nginx.conf

2013-07-25 Thread olfativo
Hi! I need to send to my application through "fastcgi_param" the value of "client_max_body_size" directive, which is defined in http block in nginx.conf Is there any way to do this without moving the declaration of that directive from http block? So I have this: http { ... client_max_body_siz

Re: listen directive

2013-07-25 Thread drook
Thanks a lot, this is much clearer. Actually, 'absent "listen", or "listen" without both a port and address, assume the default values for the missing parts' explains everything, and I think the manual would be more clear mentioning this explicitly (still imo). Posted at Nginx Forum: http://forum

Re: listen directive

2013-07-25 Thread Francis Daly
On Thu, Jul 25, 2013 at 03:50:02AM -0400, drook wrote: Hi there, > Thanks, I have read this carefully, but this hasn't become more clear for me > - all the examples contain the IP defined, what about undefined IP (which, > as I understand, means "listen to this port everywhere") ? Does it receive

Re: listen directive

2013-07-25 Thread drook
Thanks, I have read this carefully, but this hasn't become more clear for me - all the examples contain the IP defined, what about undefined IP (which, as I understand, means "listen to this port everywhere") ? Does it receive less priority ? Plus, in my case server_name is defined too. I'm not com

Re: listen directive

2013-07-25 Thread Igor Sysoev
On Jul 25, 2013, at 11:23 , drook wrote: > Hi. > > I've noticed that in configuratuion like > > http { >server { >server_name some.domain.tld; >listen 1.1.1.1; >} >server { >server_name another.domain.tld; >listen 1.1.1.1; >} >server { >

404 not found afther reboot

2013-07-25 Thread Furious S.
Hi all, I have a problem Well yesterday everthing was working fine the website etc etc etc but the system behind whmcs needed ioncube loaders so i did install everything right and reboot the server afther that and now im seeing 404 not found can someone help me ? -- Posted via http://www.ruby-

listen directive

2013-07-25 Thread drook
Hi. I've noticed that in configuratuion like http { server { server_name some.domain.tld; listen 1.1.1.1; } server { server_name another.domain.tld; listen 1.1.1.1; } server { server_name one_more.domain.tld *.domain.tld; listen