<?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>tensixtyone &#187; rewrite</title>
	<atom:link href="http://tensixtyone.com/tags/rewrite/feed" rel="self" type="application/rss+xml" />
	<link>http://tensixtyone.com</link>
	<description>Rants of Andrew Williams / Nik_Doof</description>
	<lastBuildDate>Fri, 25 Jun 2010 10:58:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Off-site assets with S3</title>
		<link>http://tensixtyone.com/perma/off-site-assets-with-s3</link>
		<comments>http://tensixtyone.com/perma/off-site-assets-with-s3#comments</comments>
		<pubDate>Sat, 08 Mar 2008 10:38:00 +0000</pubDate>
		<dc:creator>Andrew Williams</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[s3]]></category>

		<guid isPermaLink="false">http://blog.tensixtyone.com//2008/03/08/off-site-assets-with-s3</guid>
		<description><![CDATA[Finally, i&#8217;ve got round to moving the /misc folder off onto Amazon S3. I&#8217;ve decided to do this due to my upcoming hosting move, not having to worry about several hundred megabytes of static data will ease the strain of moving. So, how have I done it? First of all I created a bucket on [...]]]></description>
			<content:encoded><![CDATA[<p>Finally, i&#8217;ve got round to moving the /misc folder off onto <a href="http://aws.amazon.com/">Amazon S3</a>. I&#8217;ve decided to do this due to my upcoming hosting move, not having to worry about several hundred megabytes of static data will ease the strain of moving. So, how have I done it?</p>
<p>First of all I created a bucket on S3 with the name assets.nikdoof.net, from there I setup a <span class="caps">CNAME</span> in <span class="caps">BIND</span> for assets.nikdoof.net pointing to s3.amazonaws.com to allow direct referencing to the files within the bucket.</p>
<pre>
assets.nikdoof.net.     IN      CNAME   s3.amazonaws.com.
</pre>
<p>Then for the relocation of the misc folder, setup a simple Apache mod_rewrite rule to transfer all requests for the misc folder to S3.</p>
<pre>
RewriteEngine on
RewriteRule ^/misc/(.*)$ http://assets.nikdoof.net/$1 [R,L]
</pre>
<p>So now it&#8217;s all up and working, and to give it a try yourself, <a href="http://assets.nikdoof.net/desktops/Rachel-Stevens-2.jpg">here</a> is a fetching wallpaper of Rachel Stevens.</p>
]]></content:encoded>
			<wfw:commentRss>http://tensixtyone.com/perma/off-site-assets-with-s3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
