title: Multiple VirtualHosts For XAMPP Not Working
body: <p>Ok, so I'm at my wits end.  I've been trying to get this up and running for the better part of a week and it I don't understand why it's not working.</p>
  
  <p><strong>Background</strong></p>
  
  <p>I have two wordpress sites, one dev and one prod.  I would like to be able to view both of them on my local machine.  However, what I'm seeing is that when I type in local.www.mysite.org or local.dev.mysite.org none of the images show up.  In inspected the links and they are all pointed to localhost/image.jpg.   I have XAMPP installed and it's working fine.  The sites are pointing to the correct databases with data in their.  If I don't use Virtual Hosts the site comes up perfectly fine.</p>
  
  <p>This is what I have in my hosts file:</p>
  
  <p><em>Hosts</em></p>
  
  <pre><code>127.0.0.1 localhost
  127.0.0.1 local.www.mysite.org
  127.0.0.1 local.dev.mysite.org
  </code></pre>
  
  <p><em>httpd-vhosts.conf</em></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
    DocumentRoot "D:/xampp/htdocs"
    ServerName localhost
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
    DocumentRoot "C:/sites/www.mysite.org"
    ServerName local.www.mysite.org
    ServerAlias local.www.mysite.org
    &lt;Directory "C:/sites/www.mysite.org"&gt;
      AllowOverride All
      Require all Granted
    &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      DocumentRoot "C:/sites/www.mysite.org"
      ServerName local.www.mysite.org
      ServerAlias local.www.mysite.org
    &lt;Directory "C:/sites/www.mysite.org"&gt;
      AllowOverride All
      Require all Granted
    &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>Is there something that I've written in, incorrectly?  Left something out?  Really don't know where I could have gone wrong here.</p>
  
  <p>thanks,
  Justin</p>