title: apache set virtual host access 403 access forbidden,why?
body: <p>The environment is OS X 10.10.2 Yosemite and I'm running a XAMPP server.
  my configurations:</p>
  
  <p><strong>httpd.conf</strong></p>
  
  <pre><code>&lt;Directory /&gt;
      #Options FollowSymLinks
      #Require all granted
      AllowOverride All
      #XAMPP
      Order deny,allow
      Allow from all
  &lt;/Directory&gt;
  &lt;Directory "/Applications/XAMPP/xamppfiles/htdocs"&gt;
      Options Indexes FollowSymLinks ExecCGI Includes
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  &lt;/Directory&gt;
  # Virtual hosts
  Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
  </code></pre>
  
  <p><strong>httpd-vhosts.conf</strong></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin luckyyulin@sina.cn
      DocumentRoot "/Applications/XAMPP/htdocs/makefriend99/1"
      ServerName makefriend99.com
      ServerAlias www.makefriend99.com
      ErrorLog "logs/makefriend99/error_log"
      CustomLog "logs/makefriend99/access_log" common
      &lt;Directory /Applications/XAMPP/htdocs/makefriend99/1&gt;
          Options FollowSymLinks
          AllowOverride None
          Order deny,allow
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  &lt;VirtualHost *:80&gt;
      ServerAdmin luckyyulin@sina.cn
      DocumentRoot "/Applications/XAMPP/htdocs/angular"
      ServerName ngaction.com
      ServerAlias www.ngaction.com
      ErrorLog "logs/angular/error_log"
      CustomLog "logs/angular/access_log" common
      &lt;Directory /Applications/XAMPP/htdocs/angular&gt;
          Options FollowSymLinks
          AllowOverride None
          Order deny,allow
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><strong>hosts</strong></p>
  
  <pre><code>127.0.0.1 makefriend99.com
  127.0.0.1 ngaction.com
  </code></pre>
  
  <p>I access makefriend99.com is successful before adding ngation.com, besides localhost/makefriend99/1.But It’s failed to access ngation.com,localhost/makefriend99/1 and localhost/angular of 403 access 
   forbidden after adding ngaction.com, makefriend99.com is successful,access localhost to makefriend99.com.
  I have tried some ways saw in the Internet,but I haven’t solved the problem,who can help me to explain why and give some answers to solve it?</p>