using a proxied server as default_server

2013-05-30 Thread angelochen960
Hi, I have a tomcat app running behind nginx, it works, now I make it the default_server, this works if it access with server name like sample.com, but if access with an IP, http://192.168.1.1, it does not work, any idea ? Thanks, server { listen 192.168.1.1:80 default_server; se

Ldap authentication passing to tomcat

2013-05-30 Thread lilyevsky
I am using nginx 1.4.1 as reverse proxy for tomcat 7.0.33. Using LDAP for user authentication. Everything works fine except one critical thing: the authenticated user ID does not get to tomcat. I see it in the Tomcat's access log: it shows "-" where the ID is supposed to be. I tried to set various

[LB]Bad root document set via proxy_pass

2013-05-30 Thread mafious
Hello everybody, I am using several instances of Nginx (1.4.1). One as a LoadBalancer and the others to host rails applications (using module passenger). Depending of the url, I forward to the proper backend: location / { proxy_pass http://_cluster; } But via the proxy, the web page of my appl

Re: 1.4.1 SPDY error FIXME: chain too big in spdy filter

2013-05-30 Thread Valentin V. Bartenev
On Thursday 30 May 2013 05:32:51 ctrlbrk wrote: > What is the maximum amount of the buffer? Currently the total amount of operational buffers cannot exceed 2^24 - 1 bytes (in other words must be less than 16 MiB). > I could not locate any documentation on any of this with regards to how it woul

Re: newbie needs help

2013-05-30 Thread angelochen960
that works, thanks. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239683,239699#msg-239699 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: newbie needs help

2013-05-30 Thread Valentin V. Bartenev
On Thursday 30 May 2013 16:25:18 angelochen960 wrote: > Thanks for the reply, it works, and also I read again those references. a > related issue, say: > > if somebody enter this url in the browser: http://sample.com/not_exist_url > > and I'd like to redirect it to > > http://sample.com/ > > w

Re: newbie needs help

2013-05-30 Thread angelochen960
Thanks for the reply, it works, and also I read again those references. a related issue, say: if somebody enter this url in the browser: http://sample.com/not_exist_url and I'd like to redirect it to http://sample.com/ with the try_files approach, index.html got displayed, that's right, but th

Re: if-none-match with proxy_cache : properly set headers

2013-05-30 Thread Maxim Dounin
Hello! On Thu, May 30, 2013 at 06:41:50AM -0400, kapouer wrote: > Hi, > i struggled a little to get nginx to cache 304 responses from backend using > proxy_cache. > What happens when configuring proxy_cache is that 304 responses are not > happening because > nginx strips If-None-Match request hea

if-none-match with proxy_cache : properly set headers

2013-05-30 Thread kapouer
Hi, i struggled a little to get nginx to cache 304 responses from backend using proxy_cache. What happens when configuring proxy_cache is that 304 responses are not happening because nginx strips If-None-Match request headers. It is a workaround to prevent the client from getting an empty response

newbie needs help

2013-05-30 Thread angelochen960
Hi, new in ths nginx, with following config, I want to achieve: http://sample.com/ render index.html http://sample.com/test, or anything after '/' path, render index.html server { listen 80; server_name sample.com ; root /var/www/sample/public_html; location / {