<?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>N. &#187; Linux</title>
	<atom:link href="http://blog.oneortheother.info/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.oneortheother.info</link>
	<description>One Or The Other</description>
	<lastBuildDate>Sun, 17 Jul 2011 11:40:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Sharing Files using Apache 2 on Linux</title>
		<link>http://blog.oneortheother.info/linux/sharing-files-using-apache-2-on-linux/</link>
		<comments>http://blog.oneortheother.info/linux/sharing-files-using-apache-2-on-linux/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 08:14:29 +0000</pubDate>
		<dc:creator>N.</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.oneortheother.info/linux/sharing-files-using-apache-2-on-linux/</guid>
		<description><![CDATA[Sometimes on my Ubuntu box I want to share files with either my other machines, or with other people to give them quick access to download whatever they want from my machine. Instead of using ftp, rsync, or scp or a network drive even, I like to use Apache to set up a quick web [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes on my Ubuntu box I want to share files with either my other machines, or with other people to give them quick access to download whatever they want from my machine. Instead of using ftp, rsync, or scp or a network drive even, I like to use Apache to set up a quick web directory.</p>
<p>This configuration has only been tested with my current Apache 2.2.8 version, so give it a go, and it could work with your version.</p>
<p>Just to note, most of these commands need root access so use sudo or su if you get an access denied message.</p>
<p>What you need to do is go to the Apache configuration files in the sites enabled folder:</p>
<blockquote><pre lang="Bash">$ cd /etc/apache2/sites-enabled/</pre>
</blockquote>
<p>Use nano or vi to create a new file, call it myshare or whatever you like:</p>
<blockquote>
<pre lang="Bash">$ nano myshare</pre>
</blockquote>
<p>Then add the following configuration and replace the _WEBDIR, _USER, _SHARED with the information from your machine. </p>
<blockquote>
<pre>
Alias /_WEBDIR &quot;/home/_USER/_SHARED/&quot;
&lt;Directory &quot;/home/_USER/_SHARED/&quot;&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Order allow,deny
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Options Indexes
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Allow from 127.0.0.1
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Allow from All
&lt;/Directory&gt;
</pre>
</blockquote>
<p>Save the file and enable the configuration using the a2ensite command:</p>
<blockquote>
<pre lang="Bash">$ a2ensite myshare</pre>
</blockquote>
<p>Then restart apache:</p>
<blockquote>
<pre lang="Bash">$ apache2ctl restart</pre>
</blockquote>
<p>And there you have it!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oneortheother.info/linux/sharing-files-using-apache-2-on-linux/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

