I prefer to not use one-liner in blocks as above since it does not allow to comment out some servers. Yes... in this case I'll never be commenting out just one that I can think of, because it's a cluster started by cap. location / { try_files $uri $uri/index.html $uri.html @mongrel; } Nice! I've installed nginx from source and switched to this. Here's my config now (for my redmine instby sbwoodside - Nginx Mailing List - English
I just love nginx, just adopted it today, and wanted to show my appreciation by sharing something I really like but haven't seen in any of the configuration examples: collapsing multiple-line config blocks into one line. For example here is my config for one of my sites. Look how nice and short it is :-) upstream mongrel-hub { server 127.0.0.1:11000; server 127.0.0.1:11001; server 127.0.0.1:1by sbwoodside - Nginx Mailing List - English
I am new to nginx but I just noticed that, at least on ubuntu, default_type application/octet-stream; is the default setting, and the wiki says that if I remove it, the default will go to text/plain. This is not good! For an extremely detailed discussion of this issue, please see the resolved/fixed bug for apache: https://issues.apache.org/bugzilla/show_bug.cgi?id=13986 The crux ofby sbwoodside - Nginx Mailing List - English