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

<channel>
	<title>unitstep.net &#187; svn</title>
	<atom:link href="http://unitstep.net/blog/category/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitstep.net</link>
	<description>the home of peter chng</description>
	<pubDate>Tue, 30 Dec 2008 19:37:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Protecting SVN metadata folders on a web server</title>
		<link>http://unitstep.net/blog/2008/07/27/protecting-svn-metadata-folders-on-a-web-server/</link>
		<comments>http://unitstep.net/blog/2008/07/27/protecting-svn-metadata-folders-on-a-web-server/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 02:47:51 +0000</pubDate>
		<dc:creator>Peter Chng</dc:creator>
		
		<category><![CDATA[security]]></category>

		<category><![CDATA[svn]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[deny]]></category>

		<guid isPermaLink="false">http://unitstep.net/?p=349</guid>
		<description><![CDATA[I recently changed my WordPress install over to an SVN checkout in order to get rid of the tedious steps required to upgrade every time a new version is released.
Thankfully, following the well-written guide on the WordPress.org Codex was easy and straightforward - both for changing this existing installation over to SVN and for setting [...]]]></description>
			<content:encoded><![CDATA[<p>I recently changed my WordPress install over to an <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">SVN checkout</a> in order to get rid of the tedious steps required to upgrade every time a new version is released.</p>
<p>Thankfully, following the well-written guide on the WordPress.org Codex was easy and straightforward - both for changing this existing installation over to SVN and for setting up a <a href="http://blog.runtrackr.com">new blog</a> for <a href="http://runtrackr.com">RunTrackr</a>.  I now look forward to updates, just so I can relish in the ease of upgrading.  <img src='http://unitstep.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>SVN is a powerful tool (I use it both at work and for personal projects) and is a great SCM tool for small-to-medium sized projects.  The command-line tool is easy to use, and for Windows, the great <a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a> tool can&#8217;t be beat. (It integrates nicely with the Windows explorer and is compatible with the Eclipse Subclipse SVN integration plugin)  Additionally, the integrated Apache <acronym class="uttInitialism" title="HyperText Transfer Protocol">HTTP</acronym> server lends itself nicely to many web-based applications that not only enable browsing but also form the basis for some remote backup/file-sharing/synchronizing services out there.</p>
<p>One thing you&#8217;ll probably want to do after switching WordPress (or any web application) to a SVN checkout is to protect the <code>.svn</code> metadata folders from public access.  These folders are used by the Subversion client to keep track of changes and determine what files need to be updated when getting the latest versions.  They also contain information about what SVN server you are using - in some cases you don&#8217;t want to reveal these details, and in any case it&#8217;s always best practice to deny access to anything except for that which you explicitly want to make public.</p>
<p>Doing this is fairly straightforward with Apache.  All you need to do is edit your <code>.htaccess</code> file in the root of your web directory.  Add an entry like this:</p>
<pre><code># SVN metadata folder protection.
&lt;IfModule mod_rewrite.c&gt;
  RewriteRule ^(.*/)?\.svn/ - [F,L]
&lt;/IfModule&gt;</code></pre>
<p>This works for me, though <a href="http://forum.webfaction.com/viewtopic.php?id=1069">some have used</a> other regular expressions to accomplish the same task.</p>
<hr/>Copyright &copy; 2009 <strong><a href="http://unitstep.net">unitstep.net</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact <strong><a href="mailto:webmaster@unitstep.net">webmaster@unitstep.net</a></strong> for more information.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://unitstep.net/blog/2008/07/27/protecting-svn-metadata-folders-on-a-web-server/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
