<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Chee's blog &#187; os x</title>
	<atom:link href="http://cheeyeo.wordpress.com/category/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://cheeyeo.wordpress.com</link>
	<description>Observations, tips, tricks, articles on Ruby and anything else that follows.</description>
	<lastBuildDate>Wed, 18 Mar 2009 00:19:55 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='cheeyeo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1c59aee0b01111d834f3bfb3e82f9b0d?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Chee's blog &#187; os x</title>
		<link>http://cheeyeo.wordpress.com</link>
	</image>
			<item>
		<title>INSTALLING NGXINX FROM SOURCE ON OS X 10.5 Leopard</title>
		<link>http://cheeyeo.wordpress.com/2009/03/18/installing-ngxinx-from-source-on-os-x-105-leopard/</link>
		<comments>http://cheeyeo.wordpress.com/2009/03/18/installing-ngxinx-from-source-on-os-x-105-leopard/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 00:10:09 +0000</pubDate>
		<dc:creator>cheeyeo</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[modules]]></category>

		<guid isPermaLink="false">http://cheeyeo.wordpress.com/?p=57</guid>
		<description><![CDATA[Installing and configuring NGINX on OS X Leopard from source<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cheeyeo.wordpress.com&blog=3937360&post=57&subd=cheeyeo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is a re-deux of an earlier article I wrote on how to install nginx on os x via macports. It has been a while since I got my hands dirty with server installs and configuration so I thought why not do an update to the latest version of nginx while learning how to install it from source?</p>
<p>These are the steps I took:</p>
<h2>Install nginx</h2>
<pre>sudo mkdir nginx_source</pre>
<pre>sudo curl -O http://sysoev.ru/nginx/nginx-0.6.35.tar.gz</pre>
<pre>sudo tar xvzf nginx-0.6.35.tar.gz</pre>
<pre>cd nginx-0.6.3.5</pre>
<pre>sudo ./configure --add-module=../nginx_uploadprogress_module/
--prefix=/usr/local --with-http_ssl_mmodule</pre>
<pre>sudo make</pre>
<pre>sudo make install</pre>
<p>Once the above is successful, you should  be able to type which nginx on your terminal and it should show up as &#8216;/usr/local/sbin/nginx&#8217;. If not you need to add /usr/local/sbin to your environment path.</p>
<p>To start it just type sudo nginx. The install will put a default config file in /usr/local/conf/nginx.conf and a html file in /usr/local/html. Type http://localhost into the browser and it should show the welcome page if all the paths are correct.</p>
<p>Note that I added the &#8216;add-module&#8217; option in the configure step. This is to load any third party external modules into the compilation process. The module is the upload progress module which tracks and provides real-time feedback of your file uploads on the server side. I can verify it works as advertised.</p>
<p>To add additional modules simply chain the add module commands like so:</p>
<pre>sudo ./configure --add-module=/path/to/first module --add-module=/path/to/second module

There are plenty of configuration and installation instructions on <a href="http://wiki.nginx.org/ target=">http://wiki.nginx.org/</a></pre>
<p>Check back for part two of this series where I will discuss and show how to use external modules such as the uploadprogressmodule and configuration files and how they work.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cheeyeo.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cheeyeo.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cheeyeo.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cheeyeo.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cheeyeo.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cheeyeo.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cheeyeo.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cheeyeo.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cheeyeo.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cheeyeo.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cheeyeo.wordpress.com&blog=3937360&post=57&subd=cheeyeo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cheeyeo.wordpress.com/2009/03/18/installing-ngxinx-from-source-on-os-x-105-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">cheeyeo</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing additional modules to nginx</title>
		<link>http://cheeyeo.wordpress.com/2008/09/09/installing-additional-modules-to-nginx/</link>
		<comments>http://cheeyeo.wordpress.com/2008/09/09/installing-additional-modules-to-nginx/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 21:57:42 +0000</pubDate>
		<dc:creator>cheeyeo</dc:creator>
				<category><![CDATA[deployment]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[module]]></category>

		<guid isPermaLink="false">http://cheeyeo.wordpress.com/?p=34</guid>
		<description><![CDATA[A short post on how to install additional modules on an existing installation of nginx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cheeyeo.wordpress.com&blog=3937360&post=34&subd=cheeyeo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>There are a wealth of plugins or modules you could add to your existing nginx installation. I have been testing one of them recently &#8211; <a href="http://www.grid.net.ru/nginx/upload.en.html">the NGINX Upload module by Valery Kholodkov.</a>The beauty of this module is to capture and parse the mime headers before sending the parsed information onto your application backend. Your application only has to handle the parsed information which is formatted in a POST request header. This is defintely a powerful module to have if your application deals with large volumes of user uploads.</p>
<p>If you have an existing macport installation of nginx, it is a very straightforward process. All we need to do is to replace the default binary installtion with a new compiled version that includes the plugin.</p>
<p>Firstly, you would need to grab the source of nginx which is located here. The most current version is 0.6.32. Extract the source to your local directory. Next, grab the module you want to include &#8211; in this example we are using the upload module as mentioned above.</p>
<p>Open up the command prompt and change into the nginx sources folder and issue the following commands:</p>
<pre><span style="color:#993300;">cd nginx-0.6.32

sudo ./configure --add-module=../nginx_upload_module-2.0.6/ --prefix=/opt/local
--conf-path=etc/nginx/nginx.conf --sbin-path=sbin/ --with-http_ssl_module</span></pre>
<p>The last command above uses the &#8216;add-module&#8217; directive to include the module you want to add by specifying the path where it is located &#8211; in this case in the folder above the current directory called &#8216;nginx_upload_module&#8217;. The rest of the paramaters are pretty self-explanatory &#8211; it is pointing to where the default macport installtion of nginx resides namely /opt/local/sbin. The last parameter compiles the new nginx binary with ssl support.</p>
<p>If the command runs successfully, you should see the following on the screen:</p>
<pre><span style="color:#993300;">Configuration summary
+ threads are not used
+ using system PCRE library
+ using system OpenSSL library
+ md5 library is not used
+ sha1 library is not used
+ using system zlib library

nginx path prefix: "/opt/local"
nginx binary file: "/opt/local/sbin/"
nginx configuration file: "/opt/local/etc/nginx/nginx.conf"
nginx pid file: "/opt/local/logs/nginx.pid"
nginx error log file: "/opt/local/logs/error.log"
nginx http access log file: "/opt/local/logs/access.log"</span></pre>
<p>Lastly, run sudo make and sudo make install to complete the installation process. I restarted nginx using the following commands:</p>
<pre><span style="color:#993300;">sudo launchctl stop org.macports.nginx
sudo launchctl start org.macports.nginx</span></pre>
<p>You would need to refer to nginx.conf to alter the configuration option suited to the module you just added.</p>
<p>The entire process is semaless once you get your head round it but all it involves is just recompiling a new nginx binary to replace the one installed by macports. I think for those of you who have tried to compile new modules with apache would appreciate how easy it is to do the same thing with nginx &#8211; and I did not have to shut down the server for the entire process.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cheeyeo.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cheeyeo.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cheeyeo.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cheeyeo.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cheeyeo.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cheeyeo.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cheeyeo.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cheeyeo.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cheeyeo.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cheeyeo.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cheeyeo.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cheeyeo.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cheeyeo.wordpress.com&blog=3937360&post=34&subd=cheeyeo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cheeyeo.wordpress.com/2008/09/09/installing-additional-modules-to-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">cheeyeo</media:title>
		</media:content>
	</item>
	</channel>
</rss>