<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://adamantsys.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Adamant System - Infrastructure Optimization, Security, Fault-tolerant System, High-Performance Computing - nginx</title>
 <link>http://adamantsys.com/taxonomy/term/26/all</link>
 <description></description>
 <language>en</language>
<item>
 <title>nginx redirect from www to non-www</title>
 <link>http://adamantsys.com/content/nginx-redirect-www-non-www</link>
 <description>&lt;p&gt;Put it inside your server { } segment. For example, to redirect all user accessing &lt;a href=&quot;http://www.idontlikewww.com&quot; title=&quot;www.idontlikewww.com&quot;&gt;www.idontlikewww.com&lt;/a&gt; to idontlikewww.com, the following config snippet will work.&lt;/p&gt;
&lt;pre&gt;if ($host = &#039;www.idontlikewww.com&#039; ) {
    rewrite  ^/(.*)$  http://idontlikewww.com/$1  permanent;
}
&lt;/pre&gt;</description>
 <category domain="http://adamantsys.com/category/tags/linux">Linux</category>
 <category domain="http://adamantsys.com/category/tags/nginx">nginx</category>
 <category domain="http://adamantsys.com/category/tags/tips">Tips</category>
 <pubDate>Tue, 07 Sep 2010 02:06:42 +0000</pubDate>
 <dc:creator>webhead</dc:creator>
 <guid isPermaLink="false">3799 at http://adamantsys.com</guid>
</item>
<item>
 <title>Working config for nginx + Drupal + Boost</title>
 <link>http://adamantsys.com/content/working-config-nginx-drupal-boost</link>
 <description>&lt;p&gt;Self-notes...after spending a few hours researching and benchmarking various configurations. Apache is so old news.&lt;/p&gt;
&lt;p&gt;Setup:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Ubuntu Lucid Lynx (10.04)&lt;/li&gt;
&lt;li&gt;nginx as frontend webserver&lt;/li&gt;
&lt;li&gt;Drupal served using fastcgi to phpcgi&lt;/li&gt;
&lt;li&gt;...and Drupal&#039;s Boost module.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Most of these configs is gathered from &lt;a href=&quot;http://groups.drupal.org/node/26363&quot;&gt;http://groups.drupal.org/node/26363&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;How fast is it now? How about almost 6,000 requests/sec, with throughput around 240Mbps? Fast enough?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://adamantsys.com/content/working-config-nginx-drupal-boost&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <category domain="http://adamantsys.com/category/tags/boost">Boost</category>
 <category domain="http://adamantsys.com/category/tags/drupal">Drupal</category>
 <category domain="http://adamantsys.com/category/tags/linux">Linux</category>
 <category domain="http://adamantsys.com/category/tags/nginx">nginx</category>
 <category domain="http://adamantsys.com/category/tags/tips">Tips</category>
 <pubDate>Mon, 26 Jul 2010 15:07:56 +0000</pubDate>
 <dc:creator>webhead</dc:creator>
 <guid isPermaLink="false">3056 at http://adamantsys.com</guid>
</item>
<item>
 <title>nginx error: 413 Request Entity Too Large </title>
 <link>http://adamantsys.com/content/nginx-error-413-request-entity-too-large</link>
 <description>&lt;p&gt;Encountered this error when I tried to upload a large file. nginx default is too small. To upload bigger file, add this line in &lt;strong&gt;/etc/nginx/nginx.conf&lt;/strong&gt;, somewhere inside the http section:&lt;/p&gt;
&lt;pre&gt;http {
    ....
    client_max_body_size 20M;
    ....
}&lt;/pre&gt;&lt;p&gt;Save, and then restart your nginx instance.&lt;/p&gt;
</description>
 <category domain="http://adamantsys.com/category/tags/error">Error</category>
 <category domain="http://adamantsys.com/category/tags/linux">Linux</category>
 <category domain="http://adamantsys.com/category/tags/nginx">nginx</category>
 <category domain="http://adamantsys.com/category/tags/tips">Tips</category>
 <pubDate>Sat, 24 Jul 2010 12:29:17 +0000</pubDate>
 <dc:creator>nuzrin</dc:creator>
 <guid isPermaLink="false">29 at http://adamantsys.com</guid>
</item>
</channel>
</rss>

