<?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>Brian Wigginton &#187; Apache</title>
	<atom:link href="http://www.bwigg.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bwigg.com</link>
	<description>Lab and Nerdery</description>
	<lastBuildDate>Fri, 03 Feb 2012 04:15:48 +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>Subversion: Repository on Subdomain</title>
		<link>http://www.bwigg.com/2009/10/subversion-repository-on-subdomain/</link>
		<comments>http://www.bwigg.com/2009/10/subversion-repository-on-subdomain/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 18:54:00 +0000</pubDate>
		<dc:creator>bawigga</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.bwigg.com/?p=93</guid>
		<description><![CDATA[Tutorial explaining how to setup a Subversion repository on a subdomain using Apache2.]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial on how to setup a Subversion repository on a subdomain with Apache. This assumes you have Subversion and Apache already installed on your system.</p>
<p><strong>Subversion Setup</strong></p>
<p>First you need to create a repository somewhere in your file system. Then grant apache permissions on that directory.</p>
<p><code>svnadmin create /var/svn/repository<br />
sudo chown -R www-data:www-data /var/svn/repository</code></p>
<p><strong>Controlling Access</strong></p>
<p>Access to the repo via the web will be controlled by an htpasswd file located at /<code>var/svn/svn-auth-file</code>. Use the <code>htpasswd</code> command to create the file.</p>
<p><code>htpasswd -c /var/svn/svn-auth-file &lt;username&gt;</code></p>
<p>Execute the script again without the -c argument to add more people to the list.</p>
<p><code>htpasswd /var/svn/svn-auth-file &lt;username_two&gt;</code></p>
<p><strong>Apache Setup</strong></p>
<p>I usually setup Apache to use Names VirtualHosts to handle multiple websites. We'll make a new named virtualhost for subversion repository.</p>
<p><code>&lt;VirtualHost *:80&gt;<br />
ServerName svn.your_domain.com<br />
&lt;location /&gt;<br />
DAV svn<br />
SVNPath /var/svn/repository</code></p>
<p><code> AuthType Basic<br />
AuthName "Subversion repository"<br />
AuthUserFile /var/svn/svn-auth-file<br />
Require valid-user<br />
&lt;/location&gt;<br />
&lt;/VirtualHost&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bwigg.com/2009/10/subversion-repository-on-subdomain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

