Talk:Nginx

From DreamHost
Revision as of 00:05, 15 August 2011 by Tomcoady (Talk | contribs)

Jump to: navigation, search
This is a talk page.
Please be polite and assume good faith. Personal attacks will not be tolerated.
Please DO NOT use this page to ask support questions. This page is for discussing the article only.
Please sign and date your comments by typing four tildes (~~~~) at the end.

I'm not even sure this is allowed on DreamHost. Someone may want to check into that. -- Scjessey 11:33, 18 February 2008 (PST)

I assume the above comment is redundant, but when I switched to nginx there was nothing in /dh/nginx to configure, or anywhere else for that matter so it seems I need to upgrade to "Lenny".

Much of the permalink advice, for example http://wiki.dreamhost.com/Nginx#Permalinks , contradicts best practice suggested by the Nginx founder, for example http://blog.martinfjordvald.com/2011/02/nginx-primer-2-from-apache-to-nginx/ says:

(The use of if) is wrong for two reasons. Most importantly Nginx does a lot of optimization to vhosts. If you use an if like this you miss out on that optimization as a request for example.org and www.example.org will both have to go to the vhost, then parse the if and then the regex. Less important is that you’re capturing data Nginx has already captured for you. The Nginx way to do this is the following: server {

   server_name example.org;
   rewrite ^ http://www.example.org$request_uri? permanent;

}