<?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>ThingsILearned &#187; Apache</title>
	<atom:link href="http://thingsilearned.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://thingsilearned.com</link>
	<description>something new every day ... or so  By Dave Fowler</description>
	<lastBuildDate>Sun, 05 Feb 2012 18:47:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='thingsilearned.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>ThingsILearned &#187; Apache</title>
		<link>http://thingsilearned.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://thingsilearned.com/osd.xml" title="ThingsILearned" />
	<atom:link rel='hub' href='http://thingsilearned.com/?pushpress=hub'/>
		<item>
		<title>Forwarding Naked Domains for Appengine with Apache</title>
		<link>http://thingsilearned.com/2009/08/26/forwarding-naked-domains-for-appengine-with-apache/</link>
		<comments>http://thingsilearned.com/2009/08/26/forwarding-naked-domains-for-appengine-with-apache/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 19:40:57 +0000</pubDate>
		<dc:creator>godavemon</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[appengine]]></category>

		<guid isPermaLink="false">http://thingsilearned.com/?p=538</guid>
		<description><![CDATA[Google Appengine currently does not allow configuration of naked domains.  Meaning, if you&#8217;re building something on Appengine you&#8217;ll have to settle for a URL like http://www.mysite.com or http://whatever.mysite.com and you will not be able to use http://mysite.com. Its not so bad in most cases, but not having http://mysite.com isn&#8217;t going to stop people from trying [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thingsilearned.com&amp;blog=1027874&amp;post=538&amp;subd=thingsilearned&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Google Appengine currently does not allow configuration of naked domains.  Meaning, if you&#8217;re building something on Appengine you&#8217;ll have to settle for a URL like <em>http://www.mysite.com</em> or <em>http://whatever.mysite.com</em> and you will not be able to use <em>http://mysite.com</em>.</p>
<p>Its not so bad in most cases, but not having http://mysite.com isn&#8217;t going to stop people from trying to go there.  So its important to set up some sort of device to forward the naked domain to the www.</p>
<p>Unfortunately you&#8217;re going to need a server and for this example it will need to be running Apache2.  The redirect is handled by placing the following line in an apache config file (/apache2/httpd.conf).</p>
<pre>Redirect permanent / http://www.mysite.com/</pre>
<p>Where <em>http://www.mysite.com</em> is the example site being hosted on Appengine.</p>
<p>Or, if your apache server is hosting other apps and domains you&#8217;ll need to set up the redirect in a VirtualHost as shown here.</p>
<pre>&lt;VirtualHost *:80&gt;
ServerName mysite.com
 Redirect permanent / http://www.mysite.com/
&lt;/VirtualHost&gt;</pre>
<p>Note that the &#8216;permanent&#8217; parameter in the Redirect command enforces a 301 or permanent redirect.  You can choose other forms of redirect by replacing the &#8216;permanent&#8217; with either the redirect number (ie 302) or the keywords from the following table I&#8217;ve shamelessly <a href="http://www.yolinux.com/TUTORIALS/ApacheRedirect.html#REDIRECT">copied from here</a>.</p>
<table style="height:150px;" border="1" width="426">
<tbody>
<tr>
<th>HTTP Code</th>
<th>Status</th>
<th>Description</th>
</tr>
<tr>
<td>301</td>
<td>permanent</td>
<td>The resource has permanently moved</td>
</tr>
<tr>
<td>302</td>
<td>temp</td>
<td>The resource has temporarily moved</td>
</tr>
<tr>
<td>303</td>
<td>seeother</td>
<td>The resource has been replaced and refer to new resource</td>
</tr>
<tr>
<td>305</td>
<td>UseProxy</td>
<td>Use proxy to access site</td>
</tr>
<tr>
<td>307</td>
<td>Temp</td>
<td>The resource has temporarily moved</td>
</tr>
<tr>
<td>410</td>
<td>Tegone</td>
<td>The resource has permanently removed</td>
</tr>
</tbody>
</table>
<p>Finally set your DNS to point the base domain to this apache server and in a few hours it should be permanently re-directing http://mysite.com/ to http://www.mysite.com/.</p>
<p>If you&#8217;re not using apache or are looking for more ideas here&#8217;s a <a href="http://www.yolinux.com/TUTORIALS/ApacheRedirect.html">list of other techniques</a>.</p>
<p>Also, please <a href="http://code.google.com/p/googleappengine/issues/detail?id=113">vote for Google to fix the issue here</a> and <a href="http://code.google.com/p/googleappengine/issues/detail?id=777&amp;colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thingsilearned.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thingsilearned.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thingsilearned.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thingsilearned.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thingsilearned.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thingsilearned.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thingsilearned.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thingsilearned.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thingsilearned.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thingsilearned.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thingsilearned.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thingsilearned.wordpress.com/538/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thingsilearned.wordpress.com/538/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thingsilearned.wordpress.com/538/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thingsilearned.com&amp;blog=1027874&amp;post=538&amp;subd=thingsilearned&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thingsilearned.com/2009/08/26/forwarding-naked-domains-for-appengine-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b0e75fea564a9693a4592692e6baeb9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">godavemon</media:title>
		</media:content>
	</item>
	</channel>
</rss>
