<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Replacing Apache with nginx for static file serving</title>
	<atom:link href="http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/feed/" rel="self" type="application/rss+xml" />
	<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/</link>
	<description>where we&#039;re going, we don&#039;t need roads...</description>
	<lastBuildDate>Sat, 28 Jan 2012 02:14:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Jeff Waugh</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-5473</link>
		<dc:creator>Jeff Waugh</dc:creator>
		<pubDate>Thu, 20 Jan 2011 23:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-5473</guid>
		<description>Yep, running nginx everywhere. I don&#039;t even have use cases that require Apache behind it anymore. Hooray! :-)

For CGI scripts, I proxy to boa.

Thanks. :-)</description>
		<content:encoded><![CDATA[<p>Yep, running nginx everywhere. I don&#8217;t even have use cases that require Apache behind it anymore. Hooray! <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
<p>For CGI scripts, I proxy to boa.</p>
<p>Thanks. <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordi</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-5472</link>
		<dc:creator>Jordi</dc:creator>
		<pubDate>Thu, 20 Jan 2011 21:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-5472</guid>
		<description>Ahoy Jeff!

I was playing with rrdtool for nginx today, and got reminded of this blog post.

I was wondering, how far has nginx penetrated in your infrastructure. Ie, are still running the monster? I probably already told you by some other means, but fcgiwrap is in Debian squeeze and latest Ubuntus, and I&#039;m running pyblosxom&#039;s CGI (for now, not using a WSGI wrapper) just using that and nginx.

&lt;code&gt;
    # Pass blog CGI requests to fcgiwrap 
    location /blog/ {
        # Disable gzip (it makes scripts feel slower since they
        # have to complete before getting gzipped)
        gzip off;

        # Set the root to /srv/oskuro.net (inside this location, this means
        # that we are giving access to the files under /srv/oskuro.net/cgi-bin)
        root /srv/oskuro.net/cgi-bin;

        # Include standar fastcgi parametres
        include fastcgi_params;

        # fcgiwrap&#039;s socket
        fastcgi_pass   unix:/var/run/fcgiwrap.socket;

        # Set SCRIPT_FILENAME to the requested script
        fastcgi_param  SCRIPT_FILENAME  /srv/oskuro.net/cgi-bin$fastcgi_script_name;
    }
&lt;/code&gt;

For Mailman, that would be something like:

&lt;code&gt;
  location /mailman {
        # Disable gzip (it makes scripts feel slower since they have to
        # complete before getting gzipped)
        gzip off;

        # Set the root to /usr/lib/cgi-bin (inside this location this
        # means that we are giving access to the files under
        # /usr/lib/cgi-bin/mailman)
        root    /usr/lib/cgi-bin;

        # Fastcgi socket
        fastcgi_pass  unix:/var/run/fcgiwrap.socket;

        # Fastcgi parameters, include the standard ones
        include /etc/nginx/fastcgi_params;
        # Adjust non standard parameters (SCRIPT_FILENAME)
        fastcgi_param SCRIPT_FILENAME  /usr/lib/cgi-bin$fastcgi_script_name;
&lt;/code&gt;

And a suitable &lt;code&gt;alias&lt;/code&gt; directive to handle /usr/share/images/mailman.

HTH!

Jordi</description>
		<content:encoded><![CDATA[<p>Ahoy Jeff!</p>
<p>I was playing with rrdtool for nginx today, and got reminded of this blog post.</p>
<p>I was wondering, how far has nginx penetrated in your infrastructure. Ie, are still running the monster? I probably already told you by some other means, but fcgiwrap is in Debian squeeze and latest Ubuntus, and I&#8217;m running pyblosxom&#8217;s CGI (for now, not using a WSGI wrapper) just using that and nginx.</p>
<p><code><br />
    # Pass blog CGI requests to fcgiwrap<br />
    location /blog/ {<br />
        # Disable gzip (it makes scripts feel slower since they<br />
        # have to complete before getting gzipped)<br />
        gzip off;</p>
<p>        # Set the root to /srv/oskuro.net (inside this location, this means<br />
        # that we are giving access to the files under /srv/oskuro.net/cgi-bin)<br />
        root /srv/oskuro.net/cgi-bin;</p>
<p>        # Include standar fastcgi parametres<br />
        include fastcgi_params;</p>
<p>        # fcgiwrap's socket<br />
        fastcgi_pass   unix:/var/run/fcgiwrap.socket;</p>
<p>        # Set SCRIPT_FILENAME to the requested script<br />
        fastcgi_param  SCRIPT_FILENAME  /srv/oskuro.net/cgi-bin$fastcgi_script_name;<br />
    }<br />
</code></p>
<p>For Mailman, that would be something like:</p>
<p><code><br />
  location /mailman {<br />
        # Disable gzip (it makes scripts feel slower since they have to<br />
        # complete before getting gzipped)<br />
        gzip off;</p>
<p>        # Set the root to /usr/lib/cgi-bin (inside this location this<br />
        # means that we are giving access to the files under<br />
        # /usr/lib/cgi-bin/mailman)<br />
        root    /usr/lib/cgi-bin;</p>
<p>        # Fastcgi socket<br />
        fastcgi_pass  unix:/var/run/fcgiwrap.socket;</p>
<p>        # Fastcgi parameters, include the standard ones<br />
        include /etc/nginx/fastcgi_params;<br />
        # Adjust non standard parameters (SCRIPT_FILENAME)<br />
        fastcgi_param SCRIPT_FILENAME  /usr/lib/cgi-bin$fastcgi_script_name;<br />
</code></p>
<p>And a suitable <code>alias</code> directive to handle /usr/share/images/mailman.</p>
<p>HTH!</p>
<p>Jordi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stuartm</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-4480</link>
		<dc:creator>stuartm</dc:creator>
		<pubDate>Sun, 09 Aug 2009 22:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-4480</guid>
		<description>Thanks Jeff, I&#039;ll send you an email with more details, but what I did was set up Apache to listen on port 80 on the localhost, and nginx listened on port 80 on the real IP address.</description>
		<content:encoded><![CDATA[<p>Thanks Jeff, I&#8217;ll send you an email with more details, but what I did was set up Apache to listen on port 80 on the localhost, and nginx listened on port 80 on the real IP address.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Waugh</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-4479</link>
		<dc:creator>Jeff Waugh</dc:creator>
		<pubDate>Sun, 09 Aug 2009 13:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-4479</guid>
		<description>@stuartm: Thanks -- I did make the flight on time, but it did not get in to Sydney in time for my second flight. ;-)

So, first thing to do is change the address and port your Apache listens on and that your NameVirtualHosts are attached to. Just change them all to, say, 127.0.0.1:9000.

Then in nginx, you proxy_pass to Apache (either with http://127.0.0.1:9000 in the proxy_pass directive, or within an upstream group -- which you might find handy).

Or were you struggling with other parts of the equation?

(Might be best to email me rather than go back and forth in the comments here -- I can blog a little tute based on your questions if it ends up being generally useful!)</description>
		<content:encoded><![CDATA[<p>@stuartm: Thanks &#8212; I did make the flight on time, but it did not get in to Sydney in time for my second flight. <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-wink.png' alt=';-)' class='wp-smiley' /> </p>
<p>So, first thing to do is change the address and port your Apache listens on and that your NameVirtualHosts are attached to. Just change them all to, say, 127.0.0.1:9000.</p>
<p>Then in nginx, you proxy_pass to Apache (either with <a href="http://127.0.0.1:9000" rel="nofollow">http://127.0.0.1:9000</a> in the proxy_pass directive, or within an upstream group &#8212; which you might find handy).</p>
<p>Or were you struggling with other parts of the equation?</p>
<p>(Might be best to email me rather than go back and forth in the comments here &#8212; I can blog a little tute based on your questions if it ends up being generally useful!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stuartm</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-4478</link>
		<dc:creator>stuartm</dc:creator>
		<pubDate>Sun, 09 Aug 2009 09:01:35 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-4478</guid>
		<description>Hey Jeff - enjoyed your session today at WordCampNZ, hope you made your flight in time. I was the one who asked the question about whether it&#039;s possible to run Nginx and Apache on the same host. I&#039;m now looking for info on how to get this set up, but am struggling to find instructions for this specific use case. Most of the tutorials I&#039;ve found deal with using Nginx as a web server by itself, or using solely as a reverse-proxy. Are you able to provide some more details on how you got it working with Apache?</description>
		<content:encoded><![CDATA[<p>Hey Jeff &#8211; enjoyed your session today at WordCampNZ, hope you made your flight in time. I was the one who asked the question about whether it&#8217;s possible to run Nginx and Apache on the same host. I&#8217;m now looking for info on how to get this set up, but am struggling to find instructions for this specific use case. Most of the tutorials I&#8217;ve found deal with using Nginx as a web server by itself, or using solely as a reverse-proxy. Are you able to provide some more details on how you got it working with Apache?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordi</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-3857</link>
		<dc:creator>Jordi</dc:creator>
		<pubDate>Tue, 14 Apr 2009 11:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-3857</guid>
		<description>Jeff, it&#039;s a CGI wrapper written in C, which you hook to nginx as a proxy_pass to deal with your CGIs. Just ping me whenever you want to have a look, as I won&#039;t upload to Debian just yet due to improper licence declaration in the upstream code.</description>
		<content:encoded><![CDATA[<p>Jeff, it&#8217;s a CGI wrapper written in C, which you hook to nginx as a proxy_pass to deal with your CGIs. Just ping me whenever you want to have a look, as I won&#8217;t upload to Debian just yet due to improper licence declaration in the upstream code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Lisle</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-3827</link>
		<dc:creator>Ben Lisle</dc:creator>
		<pubDate>Thu, 09 Apr 2009 04:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-3827</guid>
		<description>JW - I kind of disliked having to backport to Lenny before it was even released.

Really loving the JEOS Ubuntu has though.  Rocking stuff.</description>
		<content:encoded><![CDATA[<p>JW &#8211; I kind of disliked having to backport to Lenny before it was even released.</p>
<p>Really loving the JEOS Ubuntu has though.  Rocking stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Waugh</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-3826</link>
		<dc:creator>Jeff Waugh</dc:creator>
		<pubDate>Thu, 09 Apr 2009 01:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-3826</guid>
		<description>@Ben Lisle: Still loving Ubuntu... been using it as a server ages before they slapped the label on it. It&#039;s just a pretty Debian with a release schedule. ;-)</description>
		<content:encoded><![CDATA[<p>@Ben Lisle: Still loving Ubuntu&#8230; been using it as a server ages before they slapped the label on it. It&#8217;s just a pretty Debian with a release schedule. <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-wink.png' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Lisle</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-3825</link>
		<dc:creator>Ben Lisle</dc:creator>
		<pubDate>Thu, 09 Apr 2009 01:46:43 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-3825</guid>
		<description>JW - Ubuntu user I am guessing?  I see they have a server version!  

CS - Yep.  Always handy to keep track on those who know more than you!</description>
		<content:encoded><![CDATA[<p>JW &#8211; Ubuntu user I am guessing?  I see they have a server version!  </p>
<p>CS &#8211; Yep.  Always handy to keep track on those who know more than you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lindsay Holmwood</title>
		<link>http://bethesignal.org/blog/2009/04/06/replacing-apache-with-nginx-for-static-file-serving/#comment-3823</link>
		<dc:creator>Lindsay Holmwood</dc:creator>
		<pubDate>Wed, 08 Apr 2009 16:31:08 +0000</pubDate>
		<guid isPermaLink="false">http://bethesignal.org/?p=1431#comment-3823</guid>
		<description>collectd ftw! :-)</description>
		<content:encoded><![CDATA[<p>collectd ftw! <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

