I’m wondering if anyone has put SOLR behind Nginx or if there might be good reasons not to put it behind Nginx. The obvious part works fine, the admin interface uses all POST which are not cached and I get all the GET requests cached which seems ok. But I’m wondering if I’m missing something that makes SOLR a bad candidate for NGINX caches. ___________________________________________ Micby wickedhangover - Nginx Mailing List - English
I’m not really sure I understand what memory pages are in the Nginx Plus dashboard. I’ve been poking around the documentation and must be missing it. But it seems like every zone is using 5090 and then there is just one zone that is using 2544. My questions: 1. What are “Memory Pages”? 2. Are they configurable? 3. Is it odd that one out of 8 zones is basically half what alby wickedhangover - Nginx Mailing List - English
Thank you for that explanation. I'm still debugging this with our CDN vendor. They have identified a number of bugs on their end which explain the odd behavior I've been seeing. ___________________________________________ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobile http://web.yale.edu http://web.yale.edu/ On 8/by wickedhangover - Nginx Mailing List - English
What would be the reason that setting Gzip_types *; Is bad? I’m running into a compression problem and if I set it to * everything gzips just fine but if I list them out explicitly the type image/jpeg is not being gzip’d via proxy request but all others are gzip’d by proxy. Gzip_proxied is set to any. ___________________________________________ Michael Friscia Office of Communicatiby wickedhangover - Nginx Mailing List - English
Yeah, the sub_filter_types is fine, if I set it correctly it does not work. So I tested by using Sub_filter_types *; This works fine which makes me wonder what Nginx is seeing as the mime type of this json file. I'll dig through the upstream variables again but I don't recall seeing it unless it's right in front of my face and I'm being blind to it. ___________________________________________by wickedhangover - Nginx Mailing List - English
I’m trying to figure out why my sub_filter is not working on a JSON file. I do have application/json and text/json listed in the sub_filter_types but the simple string replace is not happening. It causes me to think that for whatever reason, Nginx is not seeing this file as JSON. Is there a way to output what mime type the file from the upstream server is so I can make sure I have the right filtby wickedhangover - Nginx Mailing List - English
I'm about 98% sure it is returning a 401 but I'm going to do some more research. I don't think we did anything too dumb proxy_cache_valid 200 301 302 404 3m; proxy_cache_use_stale error timeout updating invalid_header http_500 http_502 http_503 http_504; This is kind of what is confusing me but also makes me agree that I'm chasing a problem that is different than what I think. Our fix wasby wickedhangover - Nginx Mailing List - English
I have a problem that I thought I knew how to solve but must be just having a mind blank moment. If the upstream server returns a 401 response I want to make sure Nginx serves the response. Right now it is serving the stale version. What happened is that the upstream page was public but then made secure, so it sends back the 401 redirect for browser login. Nginx is behaving properly in servingby wickedhangover - Nginx Mailing List - English
Ok, never mind. It was working all along. My HOSTS file was screwing me up and pointing to a local instance that did not have this config. ___________________________________________ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobile http://web.yale.eduhttp://web.yale.edu/ From: nginx <nginx-bounces@nginx.org> on behby wickedhangover - Nginx Mailing List - English
I have a regex that works in an online tool but when I put this into my configuration file it is not working. The problem is that I want all URLs that start with /info to be redirected with the exception of one unfortunately named PDF file. This regex tests perfectly in an online tool ^/info(\/)?(?!\.pdf) which shows that anything /information /info and /info/ all redirect and this will not /by wickedhangover - Nginx Mailing List - English
Thanks, I had not heard of that solution so I will chase it down to see if we can make it work. As for the response, I assumed that was the case and what’s the point of SSL if there was a way to bypass it…just wishful thinking… ___________________________________________ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobilby wickedhangover - Nginx Mailing List - English
We have a problem where we have a large number of vanity domain names that are redirected. For example we have surgery.yale.edu which redirects to medicine.yale.edu/surgery. This works fine until someone tries to request https://surgery.yale.edu. For administrative reasons, I cannot get a wildcard certificate to handle *.yale.edu and make this simple to solve. My question is if there is any wayby wickedhangover - Nginx Mailing List - English
I prefer simple setups that start with the question, "What is the least I can do to manage this new thing?" I've worked with all the various things mentioned below like Chef, Puppet, Ansible and many more but scaled everything back to keep it really simple this time. I have 6 Nginx servers (pairs of servers running in USA, Europe and Asia) and we run about 800 DNS names through themby wickedhangover - Nginx Mailing List - English
Yes, the content is dynamic, basically a set of JSON RESTful applications we call feeds that for specific reasons we do not cache but most we do. The use-case is simple, if we have to release new code these feeds are down/returning a 503 error but if we had a cache that would serve stale during that time, then, in theory, our feeds would never go down. As for the dynamic site thing, I completelby wickedhangover - Nginx Mailing List - English
I’m working through use cases for cache in a presentation and had a thought jump into my head. We have a server block where most things are cached, but a few locations are set not to use the cache. But the thought is that even thought we don’t want to use a local cache and always fetch from upstream, is it possible to still keep a cache copy that could then be served if the upstream host sendsby wickedhangover - Nginx Mailing List - English
I need some thoughts on this problem. I am load balancing upstream servers, two are IIS servers on VMs and one is an Azure App Service (PaaS) web app. During deployment the apps are shut down and reloaded. The problem is that the Azure web app returns a 403 when it is shut down, so Nginx serves stale content. But the IIS servers return a 404 error. Since we don’t serve stale content to a 404by wickedhangover - Nginx Mailing List - English
Never mind, I had an error in a config file that was forcing a 444 response based on a regex that accidentally matched the second URL… ___________________________________________ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobile http://web.yale.eduhttp://web.yale.edu/ From: nginx <nginx-bounces@nginx.org> on behalfby wickedhangover - Nginx Mailing List - English
I wonder if anyone knows how to debug this. I have two URLs: Working https://www.yalemedicine.org/doctors/marcus_bosenberg/ not working https://www.yalemedicine.org/doctors/antonio_subtil/ From the Nginx configuration side, these go through the same identical configuration. If I go to the upstream server, both URLs work for the “non-Nginx” version of the pages. The problem I haveby wickedhangover - Nginx Mailing List - English
I think you need to change this a little map $remote_addr $allowed { default “off”; 1.1.1.1 “on”; 2.2.2.2 “on:; } and then in in the download location block autoindex $allowed; I use similar logic on different variables and try at all costs to avoid IF statements anywhere in the configs. ___________________________________________ Michby wickedhangover - Nginx Mailing List - English
Actually I think that solves my problem and I had not realized that. I just need to remove my error_page declaration from the global file and specify within each server block instead which is probably better anyway. Thank you! ___________________________________________ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobile httpby wickedhangover - Nginx Mailing List - English
I’m wondering if there’s a simple way to solve this problem. The upstream application sometimes returns a blank 500 error which Nginx then serves as the blank page. This is working as intended. But what I’d like Nginx to do is display a custom error page if the upstream 500 error is blank, but if the upstream 500 page is not blank, then I want to serve the upstream 500 error page. Hasby wickedhangover - Nginx Mailing List - English
What happens if you only use one config file and put all of that in it? Nothing really stands out to me in your config. I run about 600 domain names through one Nginx server with many sub-domains in separate server blocks. I've had issues where a subdomain was not served correctly before. I ended up dumbing down the config to just server blocks with only access logs and a bunch of custom headeby wickedhangover - Nginx Mailing List - English
Ok, I kind of found the answer here http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors then I realized my problem is that I only want to do this for 500,502,503 and 504, I want the upstream server to handle 404 errors on its own. So is there a way to only intercept the 5xx errors instead of all? ___________________________________________ Michael Friscia Officby wickedhangover - Nginx Mailing List - English
I’m not sure if I’m using error_page correctly. I’m trying to set this up so that if the upstream server returns a 500, then I show a custom error page. Is this possible? I have a custom error setup that works just fine using the instructions from this site: https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-to-use-custom-error-pages-on-ubuntu-14-04 That all works juby wickedhangover - Nginx Mailing List - English
I wish I had a lead for you. I’ve never seen that behavoir ___________________________________________ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobile http://web.yale.eduhttp://web.yale.edu/ From: nginx <nginx-bounces@nginx.org> on behalf of Quintin Par <quintinpar@gmail.com> Reply-To: "nginx@nginx.orgby wickedhangover - Nginx Mailing List - English
I'm not sure if this will help, but I ignore/hide a lot, this is in my config proxy_ignore_headers X-Accel-Expires Expires Cache-Control Set-Cookie; proxy_hide_header X-Accel-Expires; proxy_hide_header Pragma; proxy_hide_header Server; proxy_hide_header Request-Context; proxy_hide_header X-Powered-By; proxy_hide_header X-AspNet-Version; proxy_hide_header X-AspNetMvc-Version; I have not experieby wickedhangover - Nginx Mailing List - English
I’m working on a project to perform A/B testing with the web hosting platform. The simple version is that we are hosted everything on Azure and want to compare using their Web Apps versus running a VM with IIS. My question is about load balancing since there seems to be two ways to go about this. First is to use a simple config where I setup the three hosts I’m testing like this: upstreamby wickedhangover - Nginx Mailing List - English
thank you, I must have read that 5 times and totally missed "in addition to" each time! ___________________________________________ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 – office (203) 931-5381 – mobile http://web.yale.eduhttp://web.yale.edu/ ________________________________ From: nginx <nginx-bounces@nginx.org> on behalf of Fby wickedhangover - Nginx Mailing List - English
Just curious, I have a config file that has this sub_filter_types: sub_filter_types text/html application/json application/javascript text/javascript; But in the error logs I have this repeating quite a bit: duplicate MIME type "text/html" in /etc/nginx/conf.d/main-settings.conf Does this mean that I don’t have to specify text/html and my setting is just redundant? I’ve usedby wickedhangover - Nginx Mailing List - English
I have the same problem and used this to extent it to 2 minutes proxy_read_timeout 120s; ___________________________________________ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobile http://web.yale.eduhttp://web.yale.edu/ From: nginx <nginx-bounces@nginx.org> on behalf of Ajay Sonawane <Ajay_Sonawane@symantec.cby wickedhangover - Nginx Mailing List - English