Re[2]: How to disable PHP output buffering

2014-02-12 Thread wishmaster
--- Original message --- From: "gaspy" Date: 13 February 2014, 08:20:21 > "To ensure configuration of the PHP part is done correctly, you can dump > communication between nginx and PHP." > > Now that sounds interesting. How can I do this? > Use php process listening on inet/inet6 soc

Re: How to disable PHP output buffering

2014-02-12 Thread gaspy
"To ensure configuration of the PHP part is done correctly, you can dump communication between nginx and PHP." Now that sounds interesting. How can I do this? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247451,247493#msg-247493 ___ nginx

Re: How to disable PHP output buffering

2014-02-12 Thread gaspy
I already have fastcgi_buffering off (it was in my original email). Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247451,247492#msg-247492 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Delete temp upload files at the end of the request?

2014-02-12 Thread kate_r
I guess upload_cleanup 200 is relevant here. I'll give that a try. Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247462,247491#msg-247491 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Delete temp upload files at the end of the request?

2014-02-12 Thread kate_r
Yes, this is the one I use - but I can't find it in the documentation. Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247462,247490#msg-247490 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: proxy_pass & getServerPort problems

2014-02-12 Thread Jiang Web
Francis Daly wrote in post #1136476: > On Wed, Feb 12, 2014 at 08:51:13AM +0100, Jiang Web wrote: > > Hi there, > >> location /NetWeb/ { >> proxy_pass http://w3new_cls/NetWeb/; >> proxy_redirect off; >> proxy_set_header Host $host:80; > >> when I access the URL: http://w3.huawei.com/NetWeb and the

Re: How to disable PHP output buffering

2014-02-12 Thread B.R.
Don't forget taking into account browser buffering: depending on which one you are using, it waits for a certain amount of data before displaying anything. To convince you of that, listen to the incoming network traffic to check that data is arriving to the client. That's a limit upon you cannot d

minimal fastcgi config for 1 file?

2014-02-12 Thread Grant
Is it OK to use a minimal fastcgi configuration for a single file like this: location ~ ^/piwik/piwik.php$ { fastcgi_pass unix:/run/php-fpm.socket; include fastcgi_params; } - Grant ___ nginx mailing list nginx@nginx.org http://mailman.nginx.or

fastcgi & index

2014-02-12 Thread Grant
I've found that if I don't specify: index index.html index.htm index.php; in the server blocks where I use fastcgi, I can get a 403 due to the forbidden directory index. I would have thought 'fastcgi_index index.php;' would take care of that. If this is the expected behavior, should the index d

Re: Using memcached from an Nginx module

2014-02-12 Thread erankor2
Thank you for your reply. But, actually, I am looking for a native C module... Eran Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247481,247483#msg-247483 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ngi

Re: Using memcached from an Nginx module

2014-02-12 Thread David Birdsong
On Wed, Feb 12, 2014 at 1:45 PM, erankor2 wrote: > Hi All, > > I want to develop an Nginx HTTP module that gets several values from > memcache, performs some processing on them and returns the result to the > client. I want all memcache operations to be performed asynchronously > without blocking

Using memcached from an Nginx module

2014-02-12 Thread erankor2
Hi All, I want to develop an Nginx HTTP module that gets several values from memcache, performs some processing on them and returns the result to the client. I want all memcache operations to be performed asynchronously without blocking the worker process for maximum scalability. For this reason,

Re: How to disable PHP output buffering

2014-02-12 Thread António P . P . Almeida
http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_buffering Set: fastcgi_buffering off; and you're done. appa On Wed, Feb 12, 2014 at 9:37 PM, gaspy wrote: > Well, I tried with postpone_output off anyway, no joy. > > I verified that gzip is actually off. I'm out of ide

Re: How to disable PHP output buffering

2014-02-12 Thread gaspy
Well, I tried with postpone_output off anyway, no joy. I verified that gzip is actually off. I'm out of ideas Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247451,247479#msg-247479 ___ nginx mailing list nginx@nginx.org http://mailman.n

Re: proxy_pass & getServerPort problems

2014-02-12 Thread Francis Daly
On Wed, Feb 12, 2014 at 08:51:13AM +0100, Jiang Web wrote: Hi there, > location /NetWeb/ { > proxy_pass http://w3new_cls/NetWeb/; > proxy_redirect off; > proxy_set_header Host $host:80; > when I access the URL: http://w3.huawei.com/NetWeb and the application > use the <%request.getServerPort%> t

Re: Delete temp upload files at the end of the request?

2014-02-12 Thread Francis Daly
On Wed, Feb 12, 2014 at 10:36:39AM -0500, kate_r wrote: Hi there, > With the upload module, is the uploaded file supposed to be removed > automatically at the end of the request? That is, the file that has just > been uploaded and stored in upload_store. I think I saw some behaviour of > the file

After 1 minute, I get this error: "connect() to 127.0.0.1:8080 failed (99: Cannot assign requested address) while connecting to upstream"

2014-02-12 Thread Jack Andolini
Hi, First of all, my environment: - About 1.6 GB RAM, which doesn't seem to be a bottleneck because actually I'm barely using it. - CPU fast enough (I guess) - Ubuntu 12.0.4 (32 bits, probably thats irrelevant here) - My users make requests using port 80 (actually not specifyng the port) to call

Re: Nginx crash !!

2014-02-12 Thread Maxim Dounin
Hello! On Wed, Feb 12, 2014 at 10:37:59PM +0500, shahzaib shahzaib wrote: > Hello maxim, > >I've enabled debug option and found the following error with > nginx : > > cache loader process exited with code 0 > > Any hint regarding crash ? This is not an error, it's just a norma

Re: Nginx crash !!

2014-02-12 Thread Maxim Dounin
Hello! On Wed, Feb 12, 2014 at 10:25:58PM +0500, shahzaib shahzaib wrote: > Thanks for replying, i have upgraded nginx to 1.4.4 using following > guide but still facing the same error. > > http://nginxcp.com/installation-instruction/ I would recommend upgrading to latest version, as ava

Re: How to disable PHP output buffering

2014-02-12 Thread Valentin V. Bartenev
On Wednesday 12 February 2014 12:03:15 Richard Stanway wrote: > Did you check postpone_output? > > http://nginx.org/en/docs/http/ngx_http_core_module.html#postpone_output [..] It doesn't matter since fastcgi_buffering switched off. wbr, Valentin V. Bartenev ___

Re: Nginx crash !!

2014-02-12 Thread shahzaib shahzaib
Hello maxim, I've enabled debug option and found the following error with nginx : cache loader process exited with code 0 Any hint regarding crash ? Regards. Shahzaib On Wed, Feb 12, 2014 at 10:25 PM, shahzaib shahzaib wrote: > Hello, > > Thanks for replying, i have up

Re: Nginx crash !!

2014-02-12 Thread shahzaib shahzaib
Hello, Thanks for replying, i have upgraded nginx to 1.4.4 using following guide but still facing the same error. http://nginxcp.com/installation-instruction/ Regards. Shahzaib On Wed, Feb 12, 2014 at 10:16 PM, Maxim Dounin wrote: > Hello! > > On Wed, Feb 12, 2014 at 10:06:29PM +050

Re: Nginx crash !!

2014-02-12 Thread Maxim Dounin
Hello! On Wed, Feb 12, 2014 at 10:06:29PM +0500, shahzaib shahzaib wrote: > Hello, > >We're using nginx (1.4.2) as reverse proxy in front of apache. Looks > like nginx keeps on crashing. Is following alerts in nginx error_log are > normal ? > > 2014/02/12 11:57:12 [alert] 6076#0: ignore

Nginx crash !!

2014-02-12 Thread shahzaib shahzaib
Hello, We're using nginx (1.4.2) as reverse proxy in front of apache. Looks like nginx keeps on crashing. Is following alerts in nginx error_log are normal ? 2014/02/12 11:57:12 [alert] 6076#0: ignore long locked inactive cache entry f88e22ec45c2a0e03dd1284a6b4fb582, count:1 2014/02/12 11:

Delete temp upload files at the end of the request?

2014-02-12 Thread kate_r
Hi With the upload module, is the uploaded file supposed to be removed automatically at the end of the request? That is, the file that has just been uploaded and stored in upload_store. I think I saw some behaviour of the files disappearing at the end of a request, but now I don't get that any mor

Fwd: .conf files

2014-02-12 Thread jack linkers
> > Hello there, > > Does anybody can check my .conf files and maybe comment suggest good ones > for prestashop please ? > > Attached you'll find my domain .conf && my nginx.conf files > > Thanks in advance for time / help ! > > > user www-data; worker_processes 4; pid /run/nginx.pid; events {

Re: Path components interpretation by nginx.

2014-02-12 Thread Maxim Dounin
Hello! On Wed, Feb 12, 2014 at 02:16:29PM +0100, António P. P. Almeida wrote: > Hello Maxim, > > Thank you. In fact since I never saw this type of URI before on an API I > thought that > trying to use the path segment parameters as a query string argument was > borderline > RFC compliant. > > T

Re: nginx-1.4.5

2014-02-12 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.4.5 for Windows http://goo.gl/8l0JhQ (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org. Announcements are also availab

Re: Path components interpretation by nginx.

2014-02-12 Thread António P . P . Almeida
Hello Maxim, Thank you. In fact since I never saw this type of URI before on an API I thought that trying to use the path segment parameters as a query string argument was borderline RFC compliant. The original API I was referring to uses the parameter as an argument since they pass a session tok

Re: How to disable PHP output buffering

2014-02-12 Thread Richard Stanway
Did you check postpone_output? http://nginx.org/en/docs/http/ngx_http_core_module.html#postpone_output On Wed, Feb 12, 2014 at 10:41 AM, gaspy wrote: > Hi, > > I know this has been asked before, but I could not find a definitive > answer. > I tried different solutions, nothing worked. > > I h

Re: Path components interpretation by nginx.

2014-02-12 Thread Maxim Dounin
Hello! On Wed, Feb 12, 2014 at 02:07:50AM +0100, António P. P. Almeida wrote: > Hello, > > While doing an audit for a client I came across an URL of the from: > > http://host/foobar;arg=quux?q=en/somewhere&a=1&b=2 > > Now doing something like: > > location /test-args { > return 200 "u: $u

How to disable PHP output buffering

2014-02-12 Thread gaspy
Hi, I know this has been asked before, but I could not find a definitive answer. I tried different solutions, nothing worked. I have a PHP script that has to do time intensive operations and provide a status update from time to time. No way around it. I built a sample PHP script: I have output_

Re: security risks... ( a bit OT )

2014-02-12 Thread wishmaster
Hi, Steve. I use a lot of sites, like you: joomla, opencart, etc. I have 2 security principals: - virtualization. I use FreeBSD "light" jails + vnet. Each CMS in own jail, e.g. joomla-jail with all sites written on joomla cms, opencart-jail and so on. - php pools. Each site in own pool with ri