nginx dockerfile.

2015-08-26 Thread Atul Sowani
Hi, I checked nginx code repository as well as Internet to see if I can get a Dockerfile to build nginx. I got a few references (like https://github.com/dockerfile/nginx) but those are essentially to _run_ nginx, not _build_ it. I am looking to build different versions of nginx (say top-of-the-tr

Re: php server side events [sse]

2015-08-26 Thread dmiller
I thought I had done both...not seeing any difference in behaviour. --- Daniel On 2015-08-26 14:08, Maxim Dounin wrote: Hello! On Wed, Aug 26, 2015 at 12:33:48PM -0700, dmil...@amfes.com wrote: I have several virtual servers operating with php-fpm perfectly fine. Buffering/caching with Wordp

Re: php server side events [sse]

2015-08-26 Thread Maxim Dounin
Hello! On Wed, Aug 26, 2015 at 12:33:48PM -0700, dmil...@amfes.com wrote: > I have several virtual servers operating with php-fpm perfectly fine. > Buffering/caching with Wordpress is great. But now... > > I'm trying to implement a new site that uses php for server-side events to > stream live

Re: Persistent connections timeout (keepalive on upstream)

2015-08-26 Thread biazus
Yes, they do recicle, but it will depends how the keep alive timeout is configured in the backend. I believe there is a similar topic here: http://forum.nginx.org/read.php?2,249924,249953 Regards, Biazus Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261284,261290#msg-261290 ___

Re: Persistent connections timeout (keepalive on upstream)

2015-08-26 Thread ionut_rusu
Hi Quanah, I think your suggestion is for client -> nginx connections, i need a setting for nginx -> backend connections. Thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261284,261289#msg-261289 ___ nginx mailing list nginx@nginx.org

Re: Persistent connections timeout (keepalive on upstream)

2015-08-26 Thread ionut_rusu
Thanks Biazus, i'll give it a try. Do you know if the keepalive connections to the backend have a timeout ? do they recycle ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261284,261288#msg-261288 ___ nginx mailing list nginx@nginx.org http:

php server side events [sse]

2015-08-26 Thread dmiller
I have several virtual servers operating with php-fpm perfectly fine. Buffering/caching with Wordpress is great. But now... I'm trying to implement a new site that uses php for server-side events to stream live updates to clients. This is, I believe, properly done with an infinite loop in p

Re: Persistent connections timeout (keepalive on upstream)

2015-08-26 Thread Quanah Gibson-Mount
--On Wednesday, August 26, 2015 3:11 PM -0400 ionut_rusu wrote: The short question is how can be set the timeout for an upstream for persistent connections (using keepalive) - looks like they never timeout. Details: I have a configuration where i need to setup a reverse proxy for SSL connect

Re: Persistent connections timeout (keepalive on upstream)

2015-08-26 Thread biazus
Hi, You may check dynamic upstream module: https://github.com/GUI/nginx-upstream-dyanmic-servers Alternatives: http://www.senginx.org/en/index.php/Dynamic_DNS_Resolve http://openresty.org/ Regards, Biazus Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261284,261285#msg-261285

Persistent connections timeout (keepalive on upstream)

2015-08-26 Thread ionut_rusu
The short question is how can be set the timeout for an upstream for persistent connections (using keepalive) - looks like they never timeout. Details: I have a configuration where i need to setup a reverse proxy for SSL connections, and reuse the backend SSL connections. For doing this i'm using

Re: disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread biazus
Please try something like that: proxy_redirect http://$proxy_host/ $scheme://$host/; Regards, Biazus Posted at Nginx Forum: http://forum.nginx.org/read.php?2,261275,261283#msg-261283 ___ nginx mailing list nginx@nginx.org http://mailman.ngin

Re: disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread Etienne Champetier
2015-08-26 18:20 GMT+02:00 Edho Arief : > On Thu, Aug 27, 2015 at 12:52 AM, Etienne Champetier > wrote: > > > > > > 2015-08-26 17:36 GMT+02:00 Edho Arief : > >> > >> On Thu, Aug 27, 2015 at 12:30 AM, Etienne Champetier > >> wrote: > >> > Hi, > >> > > >> > I have this setup > >> > browser -> ssl

Re: disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread Edho Arief
On Thu, Aug 27, 2015 at 12:52 AM, Etienne Champetier wrote: > > > 2015-08-26 17:36 GMT+02:00 Edho Arief : >> >> On Thu, Aug 27, 2015 at 12:30 AM, Etienne Champetier >> wrote: >> > Hi, >> > >> > I have this setup >> > browser -> ssl proxy -> nginx >> > browser to ssl proxy is https only >> > ssl p

Re: disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread Payam Chychi
On 2015-08-26, 8:36 AM, Edho Arief wrote: On Thu, Aug 27, 2015 at 12:30 AM, Etienne Champetier wrote: Hi, I have this setup browser -> ssl proxy -> nginx browser to ssl proxy is https only ssl proxy to nginx is http only now i browse to "https://exemple.com/aaa";, where aaa is a directory, s

Re: disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread Etienne Champetier
2015-08-26 17:36 GMT+02:00 Edho Arief : > On Thu, Aug 27, 2015 at 12:30 AM, Etienne Champetier > wrote: > > Hi, > > > > I have this setup > > browser -> ssl proxy -> nginx > > browser to ssl proxy is https only > > ssl proxy to nginx is http only > > > > now i browse to "https://exemple.com/aaa";

Re: disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread Edho Arief
On Thu, Aug 27, 2015 at 12:30 AM, Etienne Champetier wrote: > Hi, > > I have this setup > browser -> ssl proxy -> nginx > browser to ssl proxy is https only > ssl proxy to nginx is http only > > now i browse to "https://exemple.com/aaa";, where aaa is a directory, > so nginx send back a 301 redire

disable 301 redirect for directory / use relative redirect / change scheme

2015-08-26 Thread Etienne Champetier
Hi, I have this setup browser -> ssl proxy -> nginx browser to ssl proxy is https only ssl proxy to nginx is http only now i browse to "https://exemple.com/aaa";, where aaa is a directory, so nginx send back a 301 redirect with "Location: http://exemple.com/aaa/"; Is it possible to send https in

Create a single config for multiple Apache virtual hosts.

2015-08-26 Thread YemSalat
Hi everyone! First time posting here, I have been searching online but have not found any good solutions yet. I am trying to run nginx as reverse proxy for Apache, running multiple virtual hosts (domains) on the same ip. I wanted to know if it is possible to have a single nginx config, that woul