Re: Nginx add location details to URL when we stop decoding URL

2015-02-13 Thread malintha
hi Maxim , Your answer is right and thank you for it. I applied it with small correction. set $modified_uri $request_uri; if ($modified_uri ~ "^/gateway(/.*)") { set $modified_uri $1; } proxy_pass http://upstream$1; Thank you, Malintha Posted at Nginx Forum: http://forum.nginx.org/read.php?2

Re: Reporter looking to talk about the Silk Road Case / Special Agent Chris Tarbell

2015-02-13 Thread Matthew Phelan
Thanks for the interest, B.R. *---The only way to understand how the backend server behaves is to see its whole configuration, namely 'Exhibit 6' which I cannot seem to find. */* Do you have a direct link to it?* Sadly, no. Here , you will find a torrent to "all t

Proxying websockets, connections sometimes being dropped

2015-02-13 Thread Marius Kjeldahl
I've been investigating a fairly infrequent issue related to websockets being dropped and attempted downgraded to long-polling when talking to a cometd server (a proprietary java server with jetty embedded). To simulate the observed behaviour from our browser clients, I've written my own test scri

Re: Reporter looking to talk about the Silk Road Case / Special Agent Chris Tarbell

2015-02-13 Thread B.R.
Partial information = partial answer. I do not know the case so maybe questions I will ask have obvious answers. The only way to understand how the backend server behaves is to see its whole configuration, namely 'Exhibit 6' which I cannot seem to find. Do you have a direct link to it? It would

Reporter looking to talk about the Silk Road Case / Special Agent Chris Tarbell

2015-02-13 Thread Matthew Phelan
Hey all, esteemed members of this Nginx mailing list. I'm a freelance reporter (former Onion headline writer and former chemical engineer) trying to gather some kind of technical consensus on a part of the Silk Road pretrial that seems to have become mired in needless ambiguity. Specifically, the

Re: Fwd: Deny access to subfolder/files

2015-02-13 Thread itpp2012
basti Wrote: --- > Hello, > > i have a URL like > > https://example.com/foo/doc/bar/filename.txt > > I want to deny access to all files and folders in /doc/... > and try > location ~ ^/foo/(doc|etc|lib|log|sbin|var/cache|var/lib|var/log)/ { >

Re: Fwd: Deny access to subfolder/files

2015-02-13 Thread Francis Daly
On Fri, Feb 13, 2015 at 02:20:29PM +0100, basti wrote: > https://example.com/foo/doc/bar/filename.txt > location ~ ^/foo/(doc|etc|lib|log|sbin|var/cache|var/lib|var/log)/ { > deny all; > } http://nginx.org/r/location One request is handled in one location. Which one location in your config w

Fwd: Deny access to subfolder/files

2015-02-13 Thread basti
Hello, i have a URL like https://example.com/foo/doc/bar/filename.txt I want to deny access to all files and folders in /doc/... and try location ~ ^/foo/(doc|etc|lib|log|sbin|var/cache|var/lib|var/log)/ { deny all; } I does not work, i can download the file above. How can please help? Tha

Re: keep-alive confused

2015-02-13 Thread Maxim Dounin
Hello! On Fri, Feb 13, 2015 at 02:55:38PM +0800, kevin_wan...@sina.cn wrote: > hello, > > I use nginx as a reverse proxy, and I find a question that confused me. > > In upstream loction I use keepalive direction to keep a connection pool. > As everyone knows, > that can reduse tcp ha

Re: Nginx add location details to URL when we stop decoding URL

2015-02-13 Thread Maxim Dounin
Hello! On Fri, Feb 13, 2015 at 01:07:15AM -0500, malintha wrote: > I am accessing a URL which has encode characters > > http:../malintha/tel%3A%2B6281808147137 > > > >location /gateway/ { > proxy_set_header X-Forwarded-Host $host; > proxy_set_header X-Forwarded-Server $host; >