Re: Rewriting location directive by upstream servers

2014-09-25 Thread thunder hill
Hi, On Fri, Sep 26, 2014 at 2:35 AM, Francis Daly wrote: > On Fri, Sep 26, 2014 at 01:20:18AM +0530, thunder hill wrote: > > Hi there, > > > When I access mysite.com/app1 the upstream server rewrites the url like > > mysite.com/login instead of mysite.com/app1/login and the result is a > > blan

Re: prepend a php script in all requests

2014-09-25 Thread Reinis Rozitis
Once i have nginx installed with php fastcgi. Is it possible to preppend a php script to be executed when serving any request? (similar to apache prepend function). If yes could I please have an example. Thanks PHP itself has such functionality http://php.net/manual/en/ini.core.php#ini.auto-pr

Re: Forward single request to upstream server via proxy_store !!

2014-09-25 Thread Reinis Rozitis
It will also prevent users seeking the video because the arguments after "?" will remove whenever user will try to seek the video stream, isn't it ? In general it shouldn’t since the ‘?start=’ is handled by nginx and not varnish, but I’m not exactly sure how the mp4 module of nginx handles a

Re: prepend a php script in all requests

2014-09-25 Thread Francis Daly
On Thu, Sep 25, 2014 at 12:05:30PM -0600, Alex Flex wrote: Hi there, > Once i have nginx installed with php fastcgi. Is it possible to > preppend a php script to be executed when serving any request? > (similar to apache prepend function). That sounds like it should be a feature of your fastcgi

Re: Rewriting location directive by upstream servers

2014-09-25 Thread Francis Daly
On Fri, Sep 26, 2014 at 01:20:18AM +0530, thunder hill wrote: Hi there, > When I access mysite.com/app1 the upstream server rewrites the url like > mysite.com/login instead of mysite.com/app1/login and the result is a > blank page. > > Users are allowed either mysite.com/app1 or mysite.com/app2

Rewriting location directive by upstream servers

2014-09-25 Thread thunder hill
Hi, I have two back end application servers behind nginx. The configuration is as follows upstream backend1 { server 10.1.1.11; } upstream backend2 { server 10.2.2.2; } server { listen 80; server_name mysite.com; location /appl1 { #proxy_set_header X-Real

Re: Forward single request to upstream server via proxy_store !!

2014-09-25 Thread shahzaib shahzaib
@RR, thanks a lot for the explanation and examples. It really helped me :) >>set req.url = regsub(req.url, "\?.*", ""); It will also prevent users seeking the video because the arguments after "?" will remove whenever user will try to seek the video stream, isn't it ? >>unset req.http.Cookie; un

prepend a php script in all requests

2014-09-25 Thread Alex Flex
Hey guys, Once i have nginx installed with php fastcgi. Is it possible to preppend a php script to be executed when serving any request? (similar to apache prepend function). If yes could I please have an example. Thanks Alex ___ nginx mailing list

Re: Forward single request to upstream server via proxy_store !!

2014-09-25 Thread Reinis Rozitis
3 clients requested for test.mp4 (file size is 4mb) --> nginx --> file not existed (proxy_store) --> varnish --> backend (fetch the file from origin). When nginx proxied these three requests subsequently towards the varnish,, despite of filling 4mb of tmp dir it was filled with 12MB which means

Re: Forward single request to upstream server via proxy_store !!

2014-09-25 Thread shahzaib shahzaib
@RR, i've prepared the local environment with the following structure :- client --> nginx (edge) --> varnish --> backend (Origin) When i tested this method i.e :- 3 clients requested for test.mp4 (file size is 4mb) --> nginx --> file not existed (proxy_store) --> varnish --> backend (fetch the f

Re: CVE-2014-6271 : Remote code execution through bash

2014-09-25 Thread mex
foo ... http://www.openwall.com/lists/oss-security/2014/09/24/17 "Note that on Linux systems where /bin/sh is symlinked to /bin/bash, any popen() / system() calls from within languages such as PHP would be of concern due to the ability to control HTTP_* in the env. /mz" $ ls -la /bin/sh lrwxrwx