<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- OPML generated by OPML Editor v10.1a16 on Sat, 09 Apr 2011 15:57:12 GMT -->
<opml version="2.0">
	<head>
		<title>A domain for a feed</title>
		<dateCreated>Sat, 09 Apr 2011 14:46:05 GMT</dateCreated>
		<dateModified>Sat, 09 Apr 2011 15:57:12 GMT</dateModified>
		<ownerName>Dave Winer</ownerName>
		<ownerEmail></ownerEmail>
		<expansionState>1</expansionState>
		<vertScrollState>1</vertScrollState>
		<windowTop>104</windowTop>
		<windowLeft>584</windowLeft>
		<windowBottom>1361</windowBottom>
		<windowRight>1702</windowRight>
		</head>
	<body>
		<outline created="Sat, 09 Apr 2011 14:46:05 GMT" ctSaves="14" flPreview="false" server="xmlrpc://cms.scripting2.com:5337/RPC2" storySerialNum="929" text="A domain for a feed" type="scripting2Post" url="http://scripting.com/stories/2011/04/09/aDomainForAFeed.html" username="davewiner" versionClient="0.42" versionServer="0.42" whenLastSave="Sat, 09 Apr 2011 15:57:12 GMT">
			<outline created="Sat, 09 Apr 2011 14:41:52 GMT" pgfnum="6053" text="Today I'm going to try to make something work that may be hard"></outline>
			<outline created="Sat, 09 Apr 2011 14:42:07 GMT" pgfnum="6054" text="I have a domain, let's call it domain-x.org, and I want it to return a feed. "></outline>
			<outline created="Sat, 09 Apr 2011 14:42:53 GMT" pgfnum="6056" text="The content-type has to be &lt;i&gt;text/xml&lt;/i&gt; and the request must return XML. "></outline>
			<outline created="Sat, 09 Apr 2011 14:43:11 GMT" pgfnum="6057" text="No redirecting. "></outline>
			<outline created="Sat, 09 Apr 2011 14:43:17 GMT" pgfnum="6058" text="Since it's not a sub-domain, a CNAME will not be possible."></outline>
			<outline created="Sat, 09 Apr 2011 14:43:32 GMT" pgfnum="6059" text="Which means we will not be able to use Amazon S3, which is a real shame because in every other way it's the perfect way to do it, from a scaling and cost standpoint. "></outline>
			<outline created="Sat, 09 Apr 2011 14:44:36 GMT" pgfnum="6060" text="Pretty sure I'm going to have to use Apache. And since I don't have a Linux server lying around, it's going to have to be Apache/Windows. "></outline>
			<outline created="Sat, 09 Apr 2011 14:44:57 GMT" pgfnum="6061" text="This isn't just an idle exercise, we need to solve this problem in a way that can be easily replicated for lots of users, without them having to configure anything as low-level as Apache or S3. This is a feature for true end-users. So in the next step I will need that REST-programmable DNS that I've been talking about. "></outline>
			<outline created="Sat, 09 Apr 2011 15:39:21 GMT" pgfnum="6064" text="&lt;b&gt;Update: It works. &lt;/b&gt;"></outline>
			<outline created="Sat, 09 Apr 2011 15:39:40 GMT" pgfnum="6065" text="And it was very straightforward. "></outline>
			<outline created="Sat, 09 Apr 2011 15:39:48 GMT" pgfnum="6066" text="Here's what I did."></outline>
			<outline created="Sat, 09 Apr 2011 15:39:51 GMT" pgfnum="6067" text="1. I created a folder on my Apache server called davelinks.com."></outline>
			<outline created="Sat, 09 Apr 2011 15:42:57 GMT" pgfnum="6072" text="2. Went to my registrar and pointed it at the Apache server."></outline>
			<outline created="Sat, 09 Apr 2011 15:40:04 GMT" pgfnum="6068" text="3. Added a .htaccess file in the folder with a single line: "></outline>
			<outline created="Sat, 09 Apr 2011 15:43:44 GMT" pgfnum="6073" text="&lt;code&gt;DirectoryIndex rss.xml&lt;/code&gt;"></outline>
			<outline created="Sat, 09 Apr 2011 15:41:39 GMT" pgfnum="6070" text="4. Added a callback when my feed is built that in addition to writing it to the usual &lt;a href=&quot;http://static.reallysimple.org/users/dave/linkblog.xml&quot;&gt;deeply-nested place&lt;/a&gt; on S3, also writes it to the top level of the folder I created in step 1. The file is of course called rss.xml."></outline>
			<outline created="Sat, 09 Apr 2011 15:42:25 GMT" pgfnum="6071" text="5. &lt;a href=&quot;http://davelinks.com/&quot;&gt;http://davelinks.com/&lt;/a&gt; works. :-)"></outline>
			<outline created="Sat, 09 Apr 2011 15:40:40 GMT" pgfnum="6069" text="Took about 1/2 hour."></outline>
			</outline>
		</body>
	</opml>
