Re: Converting subdomain to path component without redirect ?

2013-05-05 Thread Steve Holdoway
On Mon, 2013-05-06 at 00:14 +0100, henrique matias wrote: [snip] > > brings me the error: Starting nginx: nginx: [emerg] "proxy_pass" > cannot have URI part in location given by regular expression, or > inside named location, or inside "if" statement, or inside > "limit_except" block in /etc/nginx

Re: Converting subdomain to path component without redirect ?

2013-05-05 Thread henrique matias
Hello Francis, thanks a lot for your help and words. Sorry if at some point i didn't make something clear. Starting from scratch, 1. My backend already works, http://my_ip/#{language_code}/anything will bring "anything" translated to the specified language. 2. Changing the line 40 on my confi

Re: status 009 on post action handler after client connection abort

2013-05-05 Thread Maxim Dounin
Hello! On Sat, May 04, 2013 at 05:55:22PM -0300, Jader H. Silva wrote: > Hello, i've notice nginx set $status as 009 on client connection aborted in > a reverse proxy configuration. > Is this the correct behavior? Shouldn't it be 499? As I already explained more than once, post_action have nuanc

Re: Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread nano
I appreciate your responses Jonathan. Thank you for replying! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238867,238877#msg-238877 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread Jonathan Matthews
I can't help you any further. Jonathan -- Jonathan Matthews // Oxford, London, UK http://www.jpluscplusm.com/contact.html ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [crit] 16665#0 unlink()

2013-05-05 Thread Maxim Dounin
Hello! On Sat, May 04, 2013 at 07:08:55PM -0400, Jim Ohlstein wrote: [...] > I have just seen a similar situation using fastcgi cache. In my case > I am using the same cache (but only one cache) for several > server/location blocks. The system is a fairly basic nginx set up > with four upstream

Re: Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread nano
Thank you again for the reply Jonathan, I'm sorry. This is not my application I am just trying to "mirror" it. Without losing hope for caching, is there a way I can cache the pages and only show the data to logged in clients? What would I have to do to make sure the user is logged in on the sit

Re: Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread Jonathan Matthews
On 5 May 2013 21:00, nano wrote: > Thank you for the reply Jonathan. > > My intentions are not malicious. The site in question is > http://turkopticon.differenceengines.com/ and to read reports on that site > one has to be logged in. The site is incredibly slow and I had an idea to > cache the rev

Re: Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread nano
Thank you for the reply Jonathan. My intentions are not malicious. The site in question is http://turkopticon.differenceengines.com/ and to read reports on that site one has to be logged in. The site is incredibly slow and I had an idea to cache the review data so reports on "bad requesters" (mtur

Re: Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread Jonathan Matthews
On 5 May 2013 20:05, nano wrote: > Hello, > > I have a reverse proxy setup on a website and I'm proxying logged in pages. > Everything works except there is a vulnerability in my setup. > > I login to the site and I can cache the pages. I share these pages with > everyone else. > > However there i

Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread nano
Hello, I have a reverse proxy setup on a website and I'm proxying logged in pages. Everything works except there is a vulnerability in my setup. I login to the site and I can cache the pages. I share these pages with everyone else. However there is a problem with how the set-cookie is passed ont

Re: location vs. rewite

2013-05-05 Thread locojohn
Yes, location is better and even faster in general. Andrejs Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238002,238866#msg-238866 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Upstream timeout

2013-05-05 Thread thmarx
just forgot one point, the nginx error log is full of lines like this: 2013/05/05 12:34:25 [error] 5388#4772: *35 upstream timed out (10060: FormatMessage() error:(15105)) while connecting to upstream, client: 127.0.0.1, server: backend.myserver1.de, request: "GET /index.html HTTP/1.1", upstream:

Upstream timeout

2013-05-05 Thread thmarx
Hi, I'm using nginx 1.4.0 as loadbalancer for 2 jetty servers. At my windows development/test system I have simple added the following to the default config: upstream backend { server 127.0.0.1:1; server 127.0.0.1:10001; } server {

Re: Problem with fastcgi_split_path_info on ubuntu precise

2013-05-05 Thread zakaria
Francis Daly Wrote: --- > Hi there, > > And the result with cgi.fix_pathinfo = 1 (the default) > As an aside -- I find that "cgi.fix_pathinfo = 1" removes the "do what > I say" part of php configuration, so I run without it. But I don't > believe

Re: Converting subdomain to path component without redirect ?

2013-05-05 Thread Francis Daly
On Sun, May 05, 2013 at 02:38:17AM +0100, henrique matias wrote: Hi there, > Also i tried adding the address to the try_files: > > try_files $uri $uri @app/de/; and try_files $uri $uri @app/de; > > but that didn't work either. Unless you also added new named locations like "@app/de/", I'd expe

Re: Converting subdomain to path component without redirect ?

2013-05-05 Thread Francis Daly
On Sun, May 05, 2013 at 02:21:58AM +0100, henrique matias wrote: > My first try was to change my location / { } to proxy pass to another > language, so i could try "the backend" as you said, but it actually didn't > work, i got: > > [emerg] "proxy_pass" cannot have URI part in location given by re

Re: Problem with fastcgi_split_path_info on ubuntu precise

2013-05-05 Thread Francis Daly
On Sat, May 04, 2013 at 07:41:43PM -0400, zakaria wrote: > Francis Daly Wrote: Hi there, > So on the friday I rerun the script (to enhanced it) and it didn't work like > it used to. > I swear, I got nginx working perfectly before with PATH_INFO and all. > > To answer your question. The PATH_INFO