title: Building Virtual Host on Mac - Is not working
body: <p>I'm trying to build an Virtual Host on my Mac OS, but it's not working.</p>
  
  <p>The apache2/error_log  recorded the follow message</p>
  
  <pre><code>httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
  [Fri May 03 15:34:57 2013] [notice] Digest: generating secret for digest authentication ...
  [Fri May 03 15:34:57 2013] [notice] Digest: done
  [Fri May 03 15:34:58 2013] [notice] Apache/2.2.22 (Unix) DAV/2 configured -- resuming normal operations
  [Fri May 03 15:35:16 2013] [error] [client 127.0.0.1] File does not exist: /usr/htdocs
  [Fri May 03 15:35:16 2013] [error] [client 127.0.0.1] File does not exist: /usr/htdocs
  </code></pre>
  
  <p>And the browser return this....</p>
  
  <pre><code>Not Found
  
  The requested URL / was not found on this server.
  
  Apache/2.2.22 (Unix) DAV/2 PHP/5.3.15 with Suhosin-Patch Server at dev.myhost.test Port 80
  </code></pre>
  
  <p>I've stayed a long time trying to fix this. But I didn't succeed...</p>
  
  <p>Here ir my /etc/apache2/extra/httpd-vhosts.conf</p>
  
  <pre><code>NameVirtualHost *:80
  
  &lt;Directory "/Applications/XAMPP/htdocs/"&gt;
      Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
      AllowOverride All
      Order allow,deny
      Allow from all
  &lt;/Directory&gt; 
  
  &lt;VirtualHost *:80&gt;
      DocumentRoot "/Applications/XAMPP/htdocs"
      ServerName localhost
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      DocumentRoot "/Applications/XAMPP/htdocs/smileflame"
      ServerName dev.smileflame.com
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      DocumentRoot "/Applications/XAMPP/htdocs/teste"
      ServerName dev.myhost.test
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The next is my /etc/hosts </p>
  
  <pre><code>127.0.0.1       localhost
  255.255.255.255 broadcasthost
  ::1             localhost
  fe80::1%lo0     localhost
  
  127.0.0.1  dev.myhost.test
  </code></pre>
  
  <p>I would like this vhost redirect to my index.php... But this is not happening...
  Anybody know why????</p>