<?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>x + 3 &#187; Apache</title>
	<atom:link href="http://xplus3.net/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://xplus3.net</link>
	<description></description>
	<lastBuildDate>Fri, 19 Aug 2011 01:05:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Subdomains for localhost</title>
		<link>http://xplus3.net/2009/04/17/subdomains-for-localhost/</link>
		<comments>http://xplus3.net/2009/04/17/subdomains-for-localhost/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 01:57:40 +0000</pubDate>
		<dc:creator>Jonathan Brinley</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://xplus3.net/?p=213</guid>
		<description><![CDATA[A handy trick I just learned: you can use your hosts file to create subdomains of localhost. For example, I have WordPress and Drupal both running on my machine for local web development testing. I used to access one at http://localhost/wp and the other at http://localhost/drupal. This works just fine, in general, but can lead to some awkwardness with things &#8230; <a href="http://xplus3.net/2009/04/17/subdomains-for-localhost/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A handy trick I just learned: you can use your <code>hosts</code> file to create subdomains of <code>localhost</code>.</p>
<p>For example, I have WordPress and Drupal both running on my machine for local web development testing. I used to access one at <code>http://localhost/wp</code> and the other at <code>http://localhost/drupal</code>. This works just fine, in general, but can lead to some awkwardness with things like <code>.htaccess</code> files and relative links when I move the site I&#8217;m developing to a real server.</p>
<p>By editing the <code>hosts</code> file, though, I can access my development sites at <code>http://wp.localhost/</code> and <code>http://drupal.localhost/</code>, making it a little easier to test, migrate, etc.</p>
<p>In Windows (XP and Vista), you can find your <code>hosts</code> file in the <code>C:\Windows\System32\drivers\etc</code> directory. Add a couple of lines to the end of the file:</p>
<pre>127.0.0.1       wp.localhost
127.0.0.1       drupal.localhost</pre>
<p>And create virtual hosts in your Apache <code>httpd.conf</code> to point those domains to the correct directories. E.g.:</p>
<pre>&lt;VirtualHost *:80&gt;
    DocumentRoot D:\xampp\htdocs\drupal
    ServerName drupal.localhost
&lt;/VirtualHost&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://xplus3.net/2009/04/17/subdomains-for-localhost/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

