<?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>erlendaakre.com &#187; cvs</title>
	<atom:link href="http://www.erlendaakre.com/tag/cvs/feed" rel="self" type="application/rss+xml" />
	<link>http://www.erlendaakre.com</link>
	<description>Erlend Aakre's blog</description>
	<lastBuildDate>Wed, 18 Jan 2012 12:56:58 +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>hiding svn directory in resin</title>
		<link>http://www.erlendaakre.com/hiding-svn-directory-in-resin.html</link>
		<comments>http://www.erlendaakre.com/hiding-svn-directory-in-resin.html#comments</comments>
		<pubDate>Thu, 12 Feb 2009 19:30:30 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[resin]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=564</guid>
		<description><![CDATA[I got all my websites checked into Subversion (SVN), and usually scp them from my desktop to the webserver. But sometimes I edit the pages directly on the server. So to keep changes from being lost, I decided to just have a checked out version of the page (svn) on the server as well.. To [...]]]></description>
			<content:encoded><![CDATA[<p>I got all my websites checked into Subversion (SVN), and usually scp them from my desktop to the webserver. But sometimes I edit the pages directly on the server.<br />
So to keep changes from being lost, I decided to just have a checked out version of the page (svn) on the server as well.. To keep things in sync <img src='http://www.erlendaakre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>But for some reason I don&#8217;t want people to snoop in my .svn directory. I googled but did not find any immediate solution, so here it is, a quick fix for anyone who might have the same &#8220;problem&#8221;.</p>
<p><strong>Hide .svn directory in resin webserver</strong><br />
(also works for cvs or anything else you don&#8217;t want resin to give those greedy users)</p>
<p>just add a rewrite rule for the host in the resin configuration file (resin.conf), this prevents the webserver from letting anyone into the directory (or viewing svn/cvs files).</p>
<p>Here is my config file:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">resin.conf</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.erlendaakre.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.erlendaakre.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.erlendaakre.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.erlendaakre.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="xml" style="font-family:monospace;"><span class="sc3"><span class="re1">&lt;host</span> <span class="re0">id</span>=<span class="st0">&quot;www.trekwar.org&quot;</span> <span class="re0">root-directory</span>=<span class="st0">&quot;.&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;host-alias<span class="re2">&gt;</span></span></span>trekwar.org<span class="sc3"><span class="re1">&lt;/host-alias<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;web-app</span> <span class="re0">id</span>=<span class="st0">&quot;/&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;document-directory<span class="re2">&gt;</span></span></span>webapps/trekwar.org<span class="sc3"><span class="re1">&lt;/document-directory<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/web-app<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rewrite-dispatch<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;redirect</span> <span class="re0">regexp</span>=<span class="st0">&quot;\.svn&quot;</span> <span class="re0">target</span>=<span class="st0">&quot;index.jsp?msg=keep+away+from+my+svn+directory&quot;</span><span class="re2">/&gt;</span></span>
<span class="sc3"><span class="re1">&lt;/rewrite-dispatch<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/host<span class="re2">&gt;</span></span></span></pre></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/hiding-svn-directory-in-resin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bye bye CVS.. Good morning SVN</title>
		<link>http://www.erlendaakre.com/bye-bye-cvs-good-morning-svn.html</link>
		<comments>http://www.erlendaakre.com/bye-bye-cvs-good-morning-svn.html#comments</comments>
		<pubDate>Tue, 25 Mar 2008 09:12:13 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[cvs2svn]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tortoisesvn]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=248</guid>
		<description><![CDATA[After years of faithful service, I made the change from CVS to Subversion (SVN). I installed SVN on the server, and set up the SSH keys on my desktop and got up TortoiseSVN and SVN for eclipse. I used cvs2svn to copy over everything from CVS to SVN (which required about 1-2 hours of removing [...]]]></description>
			<content:encoded><![CDATA[<p>After years of faithful service, I made the change from CVS to Subversion (SVN).  I installed SVN on the server, and set up the SSH keys on my desktop and got up <a href="http://tortoisesvn.net/" title="Tortoise SVN">TortoiseSVN</a> and SVN for eclipse.  I used cvs2svn to copy over everything from CVS to SVN (which required about 1-2 hours of removing the Norwegian characters Æ Ø Å from filenames from misc. schoolwork).  I like TortoiseSVN much more than TortoiseCVS, but I&#8217;ve had some problems with checking out stuff into eclipse. Seems like I have to check in everything as eclipse projects for it to work straight away.  I notice that SVN seems a bit slower than CVS (when using it with SSH and pre-authenticated keys), if it becomes a problem then I&#8217;ll just install SVN on my windows desktop and mirror the repository on my server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/bye-bye-cvs-good-morning-svn.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>all work..</title>
		<link>http://www.erlendaakre.com/all-work.html</link>
		<comments>http://www.erlendaakre.com/all-work.html#comments</comments>
		<pubDate>Sun, 04 Feb 2007 00:22:35 +0000</pubDate>
		<dc:creator>Erlend Aakre</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.erlendaakre.com/?p=82</guid>
		<description><![CDATA[Today I did the most tedious work ever. Having committed everything on my CVS server using a Linux client for the last years, I accidentally forgot to mark stuff as binary. As a result every binary file (like pictures, datafiles, etc..) get fucked up if I check them out on a windows computer. So, I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>Today I did the most tedious work ever.<br />
Having committed everything on my CVS server using a Linux client for the last years, I accidentally forgot to mark stuff as binary. As a result every binary file (like pictures, datafiles, etc..) get fucked up if I check them out on a windows computer.</p>
<p>So, I&#8217;ve spent around 3 hours going into every directory in the CVS tree, running the &#8220;cvs admin -kb&#8221; command on all binary files..</p>
<p>Followed by a couple of &#8220;cvs update -A&#8221;.</p>
<p>All this so I might checkout some files to <a href="http://www.eclipse.org/" target="_blank" title="Eclipse IDE">eclipse </a>on my stationary computer..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.erlendaakre.com/all-work.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

