title: permission denied virtual hosts xampp
body: <p>I am trying to load some virtual hosts on xampp with mac.</p>
  
  <p>One of them gives me 403 error and the other redirects to the xampp control page no matter what directories I add onto the root virtualhost domain</p>
  
  <p>domain.local = domain.local/xampp</p>
  
  <p>domain.local/index.php = domain.local/xampp (there is a valid index.php)</p>
  
  <p>my hosts file</p>
  
  <pre><code>127.0.0.1       localhost
  255.255.255.255 broadcasthost
  ::1             localhost
  fe80::1%lo0     localhost
  127.0.0.1       domain
  127.0.0.1       domain2
  </code></pre>
  
  <p>my httpd.conf file</p>
  
  <pre><code>&lt;Directory /&gt;
      AllowOverride none
      Require all denied
  &lt;/Directory&gt;
  
  &lt;Directory "/Applications/XAMPP/htdocs/domain1"&gt;
    AllowOverride FileInfo
  &lt;/Directory&gt;
  
  &lt;Directory "/Applications/XAMPP/htdocs/domain2"&gt;
    AllowOverride FileInfo
  &lt;/Directory&gt;
  </code></pre>
  
  <p>my httpd-vhosts.conf</p>
  
  <pre><code>    NameVirtualHost *
  &lt;VirtualHost *:80&gt;
      ServerAdmin domain.local
      DocumentRoot "/Applications/XAMPP/htdocs/domain"
      ServerName dummy-host.example.com
      ServerAlias www.dummy-host.example.com
      ErrorLog "logs/dummy-host.example.com-error_log"
      CustomLog "logs/dummy-host.example.com-access_log" common
      &lt;Directory "/Applications/XAMPP/htdocs/domain"&gt;
          AllowOverride All
  
          Allow from all
          Require all granted
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      ServerAdmin domain2.local
      DocumentRoot "/Applications/XAMPP/htdocs/domain2"
      ServerName dummy-host2.example.com
      ErrorLog "logs/dummy-host2.example.com-error_log"
      CustomLog "logs/dummy-host2.example.com-access_log" common
      &lt;Directory "/Applications/XAMPP/htdocs/domain2"&gt;
          AllowOverride All
  
          Allow from all
          Require all granted
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>location of the 2 domains:</p>
  
  <p>/Applications/XAMPP/xampfiles/htdocs</p>
  
  <p>Appreciate any help in the matter</p>