Re: Rewrite URL to only show value of $_GET argument

2013-09-19 Thread Andrew Martin
Steve, Thanks for the suggestion. How would this additional check change the solution I proposed on 9/16? It looks like it would prevent the rewrite from occurring if other arguments (instead of title) were present? Thanks again, Andrew On Sun, Sep 8, 2013 at 11:31 PM, Steve Holdoway wrote: >

Re: ngx_lua + proxy_next_upstream

2013-09-19 Thread Yichun Zhang (agentzh)
Hello! On Wed, Sep 18, 2013 at 6:09 AM, Jedrzej Nowak wrote: > The question is how can I archive proxy_next_upstream. > Preferably I would like to return to lua with a error reason. > If the only way is to return several servers in upstream from lua, how to do > so ? > If you want to return the c

Re: Rewrite URL to only show value of $_GET argument

2013-09-19 Thread Steve Holdoway
I think you need to do some regexp on the args if ( $args ~ title=([^&]+) { rewrite ^(.*)title=([^&]+).*$ /article/$2? last; } Note... totally untested. Steve On Sun, 2013-09-08 at 23:01 -0500, Andrew Martin wrote: > Hello, > > > I have read through the nginx rewrite documentation an

Send data in fragments with nginx !!

2013-09-19 Thread shahzaib shahzaib
Hello, We're using video streaming site with nginx and most of the users download videos via IDM(Internet Download Manager). We want to prevent this downloading by sending videos into fragments so IDM will not be able to download full video instead it'll cut the video into fragments of KBs

Re: Root inside Location Block? Pitfalls says NO, Beginner’s Guide says YES

2013-09-19 Thread chrisrob
Thanks Maxim, That's pretty obvious I suppose - providing that a root at Server context level is always the default in absence of root in Location Block. I had only been reading the docs for 30 mins, after downloading nginx, and that just jumped out at me. I'd better make sure I read all the doc

Re: Root inside Location Block? Pitfalls says NO, Beginner’s Guide says YES

2013-09-19 Thread Maxim Dounin
Hello! On Thu, Sep 19, 2013 at 06:57:35AM -0400, chrisrob wrote: > Practically the first two pages I read when starting with nginx were: > > http://wiki.nginx.org/Pitfalls > > which says "putting Root inside Location Block is BAD" - don't do it. > > and > > http://nginx.org/en/docs/beginners_

Re: Fedora 19 performs poorly

2013-09-19 Thread Maxim Dounin
Hello! On Wed, Sep 18, 2013 at 04:47:01PM -0700, Konstantin Svist wrote: > Note: same message also posted in -ru list Please see detailed response in nginx-ru@ list. It's actually not a good idea to cross-post. Short version for others here: from the information provided it looks more like a

Root inside Location Block? Pitfalls says NO, Beginner’s Guide says YES

2013-09-19 Thread chrisrob
Practically the first two pages I read when starting with nginx were: http://wiki.nginx.org/Pitfalls which says "putting Root inside Location Block is BAD" - don't do it. and http://nginx.org/en/docs/beginners_guide.html which gives this as its example of a config file: The resulting configur

Re: HTTP_X_FORWARDED_FOR being truncated/prefixed with a comma and no IP for some requests

2013-09-19 Thread Maxim Dounin
Hello! On Wed, Sep 18, 2013 at 07:50:13PM -0400, scianos wrote: > Hi - > > I have confirmed an unusual situation in which it appears the leading > address is being stripped from x-forwarded-for headers passed on to > downstream hosts (running Apache in this case) on very specific requests. I > h

Re: Timeout serving large requests

2013-09-19 Thread FooBarWidget
Hi Anatoly. In case you haven't seen my other reply: my name is Hongli Lai, and I am the CTO of Phusion and main developer behind Phusion Passenger. We noticed this topic moments ago. As I've mentioned in my other reply, we take pride in writing stable, robust, well-performing software, whether we

Re: Timeout serving large requests

2013-09-19 Thread FooBarWidget
Hi BrindleFly. My name is Hongli Lai, and I am the CTO of Phusion and main developer behind Phusion Passenger. We noticed this topic moments ago. I apologize for the inconvenience that this problem has caused you, but I'd like to point out that your problem has got absolutely nothing to do with u

Re: How to get rid of 204 Intercepted requests of IDM ?

2013-09-19 Thread shahzaib shahzaib
@Javi, Thanks for explaining things. @Maxim i've also contacted IDM through the link you provided me. I'll let you know about their reply. Regards. Shahzaib On Thu, Sep 19, 2013 at 1:54 PM, Javier Lavandeira wrote: > Hi Shahzaib, > > I don't think there's much to do on the server side. This is

Re: How to get rid of 204 Intercepted requests of IDM ?

2013-09-19 Thread Javier Lavandeira
Hi Shahzaib, I don't think there's much to do on the server side. This is a third party client-side application that is taking over downloads. Maybe you could somewhat mitigate the problem by adding/changing some MIME types, but probably that wouldn't help much in this case. I would tell your

Re: How to get rid of 204 Intercepted requests of IDM ?

2013-09-19 Thread shahzaib shahzaib
Isn't there anything i can do on server side ? On Thu, Sep 19, 2013 at 11:50 AM, shahzaib shahzaib wrote: > Hello Maxim, > > We didn't ask yet. I'll back to you with details. > > Thanks > Shahzaib > > > On Wed, Sep 18, 2013 at 7:38 PM, Maxim Dounin wrote: > >> Hello! >> >> On W