I was having trouble loading partial content after upgrading nginx to 1.7.4. I didn't realize it might be nginx until I compared the headers on my dev system which uses nginx 1.6.0 and my production system which uses 1.7.4 (I know, they should be equal). Behind nginx there is a Tomcat 7/Spring MVC server On 1.7.4 it looks like only the first partial receives the accept-ranges:bytes but subseby mschipperheyn - How to...
Ok, yeah, I'm using Trusty Tahr and I was hoping to stay on stable but as I understand it, mainline can be considered production quality. Thanks Marcby mschipperheyn - Nginx Mailing List - English
I have been testing nginx 1.6.0 as a reverse proxy with SPDY support. I sometimes get empty responses. I have seen a bug report (http://trac.nginx.org/nginx/ticket/428) about this which seems to be in line with what I have been seeing. It's marked as fixed but there seems some confusion about whether this fix was accepted. I have also seen that various SPDY related issues were fixed in 1.7.x mainlby mschipperheyn - Nginx Mailing List - English
Ok, I understand that updating to mainline means upgrading to nginx 1.7. This suggests some kind of bug or limitation in older nginx versions. Could you point me to the relevant bug report(s)? I don't quite understand the other option: backporting the SPDY changes.by mschipperheyn - How to...
Hi, I have been experimenting with setting up nginx as a reverse proxy using SPDY SSL. I'm using a self signed wildcard 2048 certificate in my test setup with an nginx 1.6 front end webserver and as backend webservers simple nginx setups serving plain http over port 80. I use two nginx configurations, one for the HTML pages and one for the assets https://test.site.com https://assets.sitby mschipperheyn - How to...
Hi, I have a front end nginx webserver with behind it a tomcat server. I ran into a nasty little redirect loop issue that I still don't understand. I'm trying to redirect users who have a session cookie to a different page than the other users I have a configuration such as this: ## Rewrite index requests rewrite ^(.*)/index.(.*)$ $1/ permanent; map $cookie_msa_country $ctry { defauby mschipperheyn - Nginx Mailing List - English
Thanks all. Really helpfulby mschipperheyn - How to...
Anyone? I also tried using a "longer" regular expression to match but that didn't work either. location = / { try_files $uri @home; } location ~ ^/[^/]+/.._../(.*) { try_files $uri @proxy; } location ~ ^/[^/]+/.._../ { try_files $uri @home; } location @home {by mschipperheyn - How to...
Anyone?by mschipperheyn - How to...
Hi, Our site has urls such as /mexico/MX_en/ /mexico/MX_es/projects/ /brasil/BR_pt/account/ The home page is at "multiple" locations per country / and e.g. /mexico/MX_en/ These pages show the same content. For first time users who arrive at these page, we have an introductory page. After you register, we don't want people to arrive at these pages anymore, so we wrby mschipperheyn - How to...
Hi, I'm want to redirect the user based on the value of a cookie, if present. The scenario is one where there is a "starter" homepage for first time users. As soon as users login, I write a cookie with the relative path of another homepage. If the cookie is present, I want to redirect the user to the cookie value: the relative path. There are multiple cookies present in the requesby mschipperheyn - Nginx Mailing List - English
Sorry, this was a mistake on my part. I accidently linked an existing configuration as a new linkby mschipperheyn - How to...
Hi, I'm getting a duplicate default server for 0.0.0.0:80 error message when adding a virtual host to my existing, working configuration. Strangely enough, the new configuration file just has a server config with listen:80; server_name:*.newdomain.net; and one with list:443; server_name:www.newdomain.net; Is there any other configuration mistake that could trigger this error?by mschipperheyn - How to...
I realize now that I have a rewrite for this location / { keepalive_timeout 30; rewrite ^([^.]*[^/])$ $1/ permanent; try_files $uri @proxy; } This must be the problem. Rewriting obviously doesn't take into account post requests? Is this a bug? Marcby mschipperheyn - How to...
Hi, I have a bit of a weird problem. I have not configured any 301s, but I just deployed a new page with a GET and POST option for the same url. When I post to this page nginx redirects me to the GET for the same page with a 301. The url structure for this page is: http://mydomain/brasil/BR_en/editor/offer/3/changeowner/ I use nginx 1.0.4 and a reverse proxy cache. Any ideas? Kind regby mschipperheyn - How to...
Hi, I'm using nginx 0.8.4 with reverse proxy cache and Tomcat. Tomcat sends me cookies such as www.domain.com. Since I'm using multiple subdomains, I would like to rewrite the cookies to .domain.com in order to allow users to not have to login for each sub domain. Can I make nginx rewrite www.domain.com to domain.com in this scenario? Kind regards, Marcby mschipperheyn - How to...
Ok, resolved, running tcpdump on eth1 showed me a stupid configuration error on my sideby mschipperheyn - How to...
Come on guys, some help or suggestions please Kind regards, Marcby mschipperheyn - How to...
Sorry, I made a typo in the config for the example. proxy_bind 2.2.2.100by mschipperheyn - How to...
I'm trying to use proxy_bind but it doesn't work. I have Web server nginx eth0 private ip: 2.2.2.200 eth1 public/internet ip: 1.1.1.200 App server tomcat eth0 private ip: 2.2.2.100 eth1 public ip: 1.1.1.100 My nginx config is like so nginx.conf http { upstream msa { server 2.2.2.100:8080; } [...] site config [...] location @proxby mschipperheyn - How to...
Hi, I'm trying to create a reverse proxy on Rackspace with nginx and tomcat. Rackspace servers have two ethernet adapters eth0 (public internet, public ip address) and eth1 (private Rackspace network, private ip address, no bandwidth costs). I can't get my nginx webserver to connect to the appserver over the local ip address. I keep getting a timeout. I'm thinking, not sure, that nginx isby mschipperheyn - How to...
Was there ever a resolution to this? I would like to be able to refresh a page based on some kind of http request Marcby mschipperheyn - Nginx Mailing List - English
I realize that this is an old thread but it relates to my question. I use proxy_cache with a somewhat special approach. User can log in to our site that has been designed to be completely reverse proxy cacheable, even when a user is logged in. We use a separate json call to retrieve session information for the user. So some pages like /product/* are cacheable but they may still be retrieved bby mschipperheyn - Nginx Mailing List - English
Hi, is there a way to show a default image when a certain image can't be retrieved, as opposed to generating a 404 message? Kind regards, Marcby mschipperheyn - How to...
@Weibin Do you know the difference between the apr_cache directives and the proxy_cache directives They are probably fudnamentally different but because they look so similar I'm wonderingby mschipperheyn - Nginx Mailing List - English
@Jérôme Yes and yes. I tried both Nio and Apr connectorby mschipperheyn - Nginx Mailing List - English
Ok, I've found the reason why the cache is missing. Tomcat sends a cookie for logged in users. I've built my site so that it is cacheable even if users are logged in. So, I can safely ignore those cookies. When I set proxy_ignore_headers Set-Cookie; it works. When I set proxy_pass_header Set-Cookie; it does NOT work. I expected it to cache the file ans strip the Set-Cookieby mschipperheyn - How to...
Anyone? I'm really stuck here. Cheers, Marcby mschipperheyn - How to...
I use this site to test my regular expressions http://www.fileformat.info/tool/regex.htmby mschipperheyn - How to...
I get that. I used launchpad which has some ready made distros. That worked ok.by mschipperheyn - How to...