<?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>Jeff Combs - IT Professional / Web Developer &#187; Apache</title>
	<atom:link href="http://jcombs.net/category/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://jcombs.net</link>
	<description>System Administration</description>
	<lastBuildDate>Sat, 24 Dec 2011 17:56:35 +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>Apache Virtual Hosts (XAMPP)</title>
		<link>http://jcombs.net/apache/apache-virtual-hosts-xampp</link>
		<comments>http://jcombs.net/apache/apache-virtual-hosts-xampp#comments</comments>
		<pubDate>Sat, 31 Oct 2009 02:08:22 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://jcombs.net/?p=93</guid>
		<description><![CDATA[I had to create a couple virtual hosts on a windows 7 machine running XAMPP for development purposes. This is typically a simple task. XAMPP has an Apache virtual host configuration file in &#60;xampp installation&#62;\apache\conf\extra\httpd-vhosts.conf There are some basic containers already set that you can use as reference, but in the end you have something [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://jcombs.net/wp-content/uploads/2009/10/apache-logo.jpg" alt="apache" title="apache" width="200" height="150" class="alignright size-full wp-image-98" /></p>
<p>I had to create a couple virtual hosts on a windows 7 machine running XAMPP for development purposes.  This is typically a simple task.  XAMPP has an Apache virtual host configuration file in &lt;xampp installation&gt;\apache\conf\extra\httpd-vhosts.conf</p>
<p>There are some basic containers already set that you can use as reference, but in the end you have something like this:</p>
<pre class="brush: text">
NameVirtualHost 127.0.0.1:80

&lt;VirtualHost 127.0.0.1:80&gt;
	DocumentRoot D:/www
	ServerName localhost
&lt;/VirtualHost&gt;

&lt;VirtualHost 127.0.0.1:80&gt;
	DocumentRoot D:/www/mysite
	ServerName mysite.dev
&lt;/VirtualHost&gt;
</pre>
<p>You then just configure your hosts file to point to your local IP address:</p>
<pre class="brush: text">
127.0.0.1    localhost
127.0.0.1    mysite.dev
</pre>
<p>You can add more directives to the virtualhost, but this was just the basic setup to get urls working without having to use subdirectories like http://localhost/mysite.  Instead, I can use http://mysite.dev.  </p>
<p>Restart apache and everything should be golden, but no, never quite that easy. I kept getting a blank screen for mysite.dev, but localhost was working.  I would ping mysite.dev and get 127.0.0.1 like I would expect.</p>
<p>Well, long story short, I&#8217;ve behind a proxy/firewall and didn&#8217;t tell my browser to ignore the .dev domain.  So, for my own purpose when I forget this again in a year or so, or anyone else behind a corporate network that may have a similar issue, this was why.</p>
]]></content:encoded>
			<wfw:commentRss>http://jcombs.net/apache/apache-virtual-hosts-xampp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

