<?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/"
	>

<channel>
	<title>Sarah Mei &#187; engineyard</title>
	<atom:link href="http://www.sarahmei.com/blog/tag/engineyard/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sarahmei.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 22 Jan 2012 20:16:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nginx and subdomains on Engine Yard</title>
		<link>http://www.sarahmei.com/blog/2009/04/26/nginx-and-subdomains-on-engine-yard/</link>
		<comments>http://www.sarahmei.com/blog/2009/04/26/nginx-and-subdomains-on-engine-yard/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 01:50:20 +0000</pubDate>
		<dc:creator>sarahmei</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[engineyard]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://www.sarahmei.com/blog/?p=68</guid>
		<description><![CDATA[System administration and setup are my least favorite part of any project. Today I wanted to set up a wiki on a subdomain &#8211; wiki.groupname.com. The main site, a blog, is hosted on an Engine Yard slice that runs nginx. Since I&#8217;m usually more of an apache aficionado, I thought I&#8217;d note the process. Request [...]]]></description>
			<content:encoded><![CDATA[<p>System administration and setup are my least favorite part of any project. Today I wanted to set up a wiki on a subdomain &#8211; wiki.groupname.com. The main site, a blog, is hosted on an Engine Yard slice that runs nginx. Since I&#8217;m usually more of an apache aficionado, I thought I&#8217;d note the process.</p>
<ol>
<li>Request the subdomain setup from Engine Yard, telling them which slice (staging, production, etc.) to point at. They need to add DNS records pointing at the appropriate IP.</li>
<li>Add a new directory under /data containing wiki software &#8211; MediaWiki in this case.</li>
<li>Create a new configuration file under /data/nginx/servers. Anything in this directory with a .conf extension gets picked up in a restart. It should look pretty similar to the one from the application you&#8217;re already running, though perhaps with different root and logfile locations. I found a blog post with <a href="http://www.red91.com/2008/02/06/beginning-nginx">several sample conf files</a> which was helpful.</li>
<li>Restart nginx using sudo /etc/init.d/nginx restart. It will tell you if there&#8217;s something wrong with your config.</li>
</ol>
<p>And that&#8217;s it! I still need to spend some time with the syntax of the config files, particularly nginx&#8217;s version of rewrite rules. I couldn&#8217;t find any useful references online (at least, not in English), but I got a lot out of reading the code of Chris Wanstrath&#8217;s <a href="http://github.com/defunkt/nginx_config_generator/tree/master">nginx_config_generator gem</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sarahmei.com/blog/2009/04/26/nginx-and-subdomains-on-engine-yard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

