Live rtmp broadcast with Nginx and ffmpeg

2015-12-23 Thread Roman Ameth
Hello and good time of day. I trying to create live stream on Win 7 Prof licensed with Nginx. Vod working fine, but live not, and i can't understand why. http://puu.sh/m5PBf/0e4550407b.png - stream from virtual cam sent to ffmpeg. ffmpeg -f dshow -i video="e2eSoft VCam" -c:v libx264 -an -f flv "r

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Alt
Hello again :-) As said in my last message, in theory you shouldn't lose your configuration. But : backup, backup and backup :-) And compile and test on a test server, not on a production server :-) Best Regards. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,263657,263677#msg-263677

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Alt
Hello Thierry, Just rebuilding a Debian package and installing it shouldn't break anything. But a problem or mistake can always happen, so I don't recommend doing eveything I said in my previous message on your production server. I don't think you want to spend your XMas fixing your server :-) So

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Руслан Закиров
On Wed, Dec 23, 2015 at 7:19 PM, Maxim Dounin wrote: > On Wed, Dec 23, 2015 at 07:10:43PM +0300, Руслан Закиров wrote: > > > On Wed, Dec 23, 2015 at 6:49 PM, Maxim Dounin > wrote: > > > > > X-Accel-Redirect changes a request from POST to GET. > > > > > > > No, it doesn't. Getting request method

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Thierry
Bonjour nanaya, Ok, but if I recompile everything, do I lose the actual nginx's config ? Le mercredi 23 décembre 2015 à 19:33:11, vous écriviez : > On Thu, Dec 24, 2015, at 02:31, Thierry wrote: >> Bonjour Alt, >> >> Thx a lot But, I might mistaken ... >> My nginx is already working,

Re: nginx modsecurity on Debian 8

2015-12-23 Thread nanaya
On Thu, Dec 24, 2015, at 02:31, Thierry wrote: > Bonjour Alt, > > Thx a lot But, I might mistaken ... > My nginx is already working, as already been compiled with a certain > number of modules ... I do not want to break something ... > If I am doing what you said ... It might happen no ?

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Thierry
Bonjour Alt, Thx a lot But, I might mistaken ... My nginx is already working, as already been compiled with a certain number of modules ... I do not want to break something ... If I am doing what you said ... It might happen no ? Thx* Le mercredi 23 décembre 2015 à 18:47:18, vous écrivie

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Alt
Hello Thierry, Here's a quick howto build a nginx debian package, I hope it's clear and that I'm not making mistakes. First, you need to get the source of nginx and others files to build the package. You can probably do something like "apt-get source nginx", but I prefer to go on this page: https

Re: Cache doesn't expire as should

2015-12-23 Thread Руслан Закиров
On Wed, Dec 23, 2015 at 6:35 PM, Maxim Dounin wrote: > Hello! > > On Wed, Dec 23, 2015 at 11:57:53AM +0300, Руслан Закиров wrote: > > > On Tue, Dec 22, 2015 at 4:49 PM, Maxim Dounin > wrote: > > > > > Hello! > > > > > > On Tue, Dec 22, 2015 at 02:43:11PM +0300, Руслан Закиров wrote: > > > > > >

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Maxim Dounin
Hello! On Wed, Dec 23, 2015 at 07:10:43PM +0300, Руслан Закиров wrote: > On Wed, Dec 23, 2015 at 6:49 PM, Maxim Dounin wrote: > > > X-Accel-Redirect changes a request from POST to GET. > > > > No, it doesn't. Getting request method POST on the backend and even form > data is intact. It does,

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Руслан Закиров
On Wed, Dec 23, 2015 at 7:10 PM, Руслан Закиров wrote: > > On Wed, Dec 23, 2015 at 6:49 PM, Maxim Dounin wrote: > >> X-Accel-Redirect changes a request from POST to GET. >> > > No, it doesn't. Getting request method POST on the backend and even form > data is intact. > Output from the psgi app

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Руслан Закиров
On Wed, Dec 23, 2015 at 6:49 PM, Maxim Dounin wrote: > X-Accel-Redirect changes a request from POST to GET. > No, it doesn't. Getting request method POST on the backend and even form data is intact. -- Руслан Закиров Руководитель отдела разработки веб-сервисов +7(916) 597-92-69, ruz @

Re: x-accel-redirect enables caching for POST requests

2015-12-23 Thread Maxim Dounin
Hello! On Wed, Dec 23, 2015 at 03:54:31PM +0300, Руслан Закиров wrote: > Hi, > > If location /a/ redirects a POST request to location /b/ using > X-Accel-Redirect then result of the POST request is cached. > > Tested this and reproduced with nginx 1.6.3 and 1.9.7. > > Setup: > https://gist.git

Re: Cache doesn't expire as should

2015-12-23 Thread Maxim Dounin
Hello! On Wed, Dec 23, 2015 at 11:57:53AM +0300, Руслан Закиров wrote: > On Tue, Dec 22, 2015 at 4:49 PM, Maxim Dounin wrote: > > > Hello! > > > > On Tue, Dec 22, 2015 at 02:43:11PM +0300, Руслан Закиров wrote: > > > > [...] > > > > > Our error log has "ignore long locked inactive cache entry"

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Thierry
Hi Nikolai, Seems for me to be a bit tricky. Not going to do something because I do not want to break something who is already working perfectly Why is it so complicated to install a module for nginx ? Thx anyway and happy christmas. Le mercredi 23 décembre 2015 à 15:03:10, vous écriviez

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Nikolai Lusan
Greetings, On Wed, 2015-12-23 at 14:21 +0200, Thierry wrote: > A bit lost ... > I know nothing concerning nginx, I am more confortable with Apache2. > I am using an email server who is using nginx on debian 8. > I would need to install modsecurity as module. > I have understood that I need to comp

x-accel-redirect enables caching for POST requests

2015-12-23 Thread Руслан Закиров
Hi, If location /a/ redirects a POST request to location /b/ using X-Accel-Redirect then result of the POST request is cached. Tested this and reproduced with nginx 1.6.3 and 1.9.7. Setup: https://gist.github.com/ruz/4a66ee78fedf27181799 Logs from hitting /a/: [1450873503.675] 200 HIT 127.0.0.1

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Anoop Alias
append the configure argument you already mentioned ./configure --add-module=/opt/ModSecurity-nginx with the --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Thierry
What I have ... Could you please explain to me what do I have to do ? I do not understand ... Sorry nginx version: nginx/1.6.2 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,rel

Re: nginx modsecurity on Debian 8

2015-12-23 Thread Anoop Alias
nginx -V will show configure arguments. You need to add mod_sec at the beginning of whatever is in there. On Wed, Dec 23, 2015 at 5:51 PM, Thierry wrote: > Hi, > > A bit lost ... > I know nothing concerning nginx, I am more confortable with Apache2. > I am using an email server who is using ngi

nginx modsecurity on Debian 8

2015-12-23 Thread Thierry
Hi, A bit lost ... I know nothing concerning nginx, I am more confortable with Apache2. I am using an email server who is using nginx on debian 8. I would need to install modsecurity as module. I have understood that I need to compile from the working directory of nginx ./configure --add-mo

Re: Cache doesn't expire as should

2015-12-23 Thread Руслан Закиров
On Tue, Dec 22, 2015 at 4:49 PM, Maxim Dounin wrote: > Hello! > > On Tue, Dec 22, 2015 at 02:43:11PM +0300, Руслан Закиров wrote: > > [...] > > > Our error log has "ignore long locked inactive cache entry" alerts, but I > > really couldn't match it to "defreeze" event. Access log has > STALE/UPDA

Multiple responses to one request

2015-12-23 Thread Ortal
Hello, I am writing a NGINX module, and I would like to know if there is an option to send the client a response in parts? Meaning, in case of large files my server return the response to the GET request in parts, I would like to send each part to the user without saving it to a temp file. I would