<?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>damontimm.com &#187; apache</title>
	<atom:link href="http://blog.damontimm.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.damontimm.com</link>
	<description>Where I go to remember what I did</description>
	<lastBuildDate>Fri, 16 Jul 2010 18:51:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to: Redirect Apache&#8217;s Default www or public_html Folder to a Directory in Your Home Folder</title>
		<link>http://blog.damontimm.com/how-to-redirect-apaches-default-www-or-public_html-folder-to-a-directory-in-your-home-folder/</link>
		<comments>http://blog.damontimm.com/how-to-redirect-apaches-default-www-or-public_html-folder-to-a-directory-in-your-home-folder/#comments</comments>
		<pubDate>Fri, 13 Oct 2006 19:39:53 +0000</pubDate>
		<dc:creator>Damon</dc:creator>
				<category><![CDATA[how to]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.damontimm.com/blog/how-to-redirect-apaches-default-www-or-public_html-folder-to-a-directory-in-your-home-folder/</guid>
		<description><![CDATA[Purpose: The default installation of Apache (from a Ubuntu-Server installation) sets the base directory for the web documents as /var/www (on Ubuntu&#8217;s installation &#8212; this may be different if you are running Apache on another machine); this may not be where you want it, in the end, and certainly isn&#8217;t as easily accessible from a [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Purpose:</strong> The default installation of Apache (from a <a href="http://www.damontimm.com/blog/how-to-install-a-lamp-server-linux-apache-mysql-php-on-older-laptop-with-ubuntu/">Ubuntu-Server installation</a>) sets the base directory for the web documents as <code>/var/www</code> (on Ubuntu&#8217;s installation &#8212; this may be different if you are running Apache on another machine); this may not be where you want it, in the end, and certainly isn&#8217;t as easily accessible from a remote machine.  One option is to change where it is Apache searches for its web documents folder in Apache&#8217;s configuration file; another way, which I chose, is to create a symbolic link in the default location&#8217;s place and have it point to a directory in my user&#8217;s home folder.</p>
<p><span id="more-29"></span></p>
<p><strong>Benefit:</strong> I can login remotely with my user name (<code>henry</code>) and have direct access to the web documents root folder.  This makes it easy to use FTP or SSH or AFP to move files around and I don&#8217;t have to fool with user groups or permissions.</p>
<p>If you want to do this, login as the user you want to host the web pages and run the following from the terminal:</p>
<ul class="terminal">
<li><code>$ mkdir ~/www</code></li>
<li><code>$ sudo mv /var/www /var/www-backup</code></li>
<li><code>$ sudo ln -s /home/henry/www /var/www</code></li>
</ul>
<p>This will create a <code>www</code> folder in your user&#8217;s home directory, change the name of Apache&#8217;s default <code>www</code> directory, and create a symbolic link in its place that points to the directory you recently created.</p>
<p>Drop a <code>index.html</code> file in your new <code>~/www</code> directory and you are good to go!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.damontimm.com/how-to-redirect-apaches-default-www-or-public_html-folder-to-a-directory-in-your-home-folder/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
