title: XAMPP - Access to the requested object is only available from the local network
body: <p>When I try to access an phpMyAdmin of xampp in another pc using ip address I get this error:</p>
  
  <blockquote>
    <p>Access forbidden!</p>
    
    <p>New XAMPP security concept:</p>
    
    <p>Access to the requested object is only available from the local network.</p>
    
    <p>This setting can be configured in the file "httpd-xampp.conf".</p>
  </blockquote>
  
  <p>I was searching for the solution and found a bunch of suggestions like modifying <code>httpd-xampp.conf</code> file. </p>
  
  <p>1) Option was to modify <code>&lt;LocationMatch&gt;</code> block like this:</p>
  
  <pre><code>&lt;LocationMatch "^/(?i(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))"&gt;
      Order deny,allow
      Allow from all
      ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  &lt;/LocationMatch&gt;
  </code></pre>
  
  <p>The problem is that my <code>httpd-xampp.conf</code> file does not contain such a block, but if I try to add it to the end of the file I still get the same error.</p>
  
  <p>2) Option was to modify <code>&lt;Directory "C:/xampp/phpMyAdmin"&gt;</code> as following:</p>
  
  <pre><code>&lt;Directory "C:/xampp/phpMyAdmin"&gt;
      AllowOverride AuthConfig Limit
      Order allow,deny
      Allow from all
      Require all granted
      ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>&lt;Directory "C:/xampp/phpMyAdmin"&gt;
      AllowOverride AuthConfig Limit
      Order allow,deny
      Allow from all
      ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Or </p>
  
  <pre><code>&lt;Directory "C:/xampp/phpMyAdmin"&gt;
      AllowOverride AuthConfig Limit
      Require all granted
      ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  &lt;/Directory&gt;
  </code></pre>
  
  <p>This didn't solve the problem either. Still getting same error.</p>
  
  <p><strong>P.S. I am restarting Apache after each change!</strong></p>
  
  <p>Could someone see what I could be missing?</p>