title: how to access localhost website from another computer in local network
body: <p>After modifying the both the file (<strong>httpd-xamp.conf</strong> &amp; <strong>httpd-vhosts.conf</strong> ) I can't access my website either in my localhost nor other computer.
  typing in the browser address bar:
  <strong>mydomain.local</strong></p>
  
  <p>But it only works in localhost computer when we when we type "localhost/phpmyadmin/" </p>
  
  <p>when I'd like to allow another computer in the same LAN to access the website. I've configured the other computer hosts file to contain line:
  <strong>192.168.1.180 mydomain.loca</strong>l
  where 192.168.1.180 is the XAMPP computer IP address. But after typing the <a href="http://mydomain.local" rel="nofollow">http://mydomain.local</a> on the other computer browser, after pressing enter, the address becomes: <a href="http://mydomain.local/dashboard" rel="nofollow">http://mydomain.local/dashboard</a> and message appear "Object not found &amp; error 404".</p>
  
  <p>So far, I have done this:
     Changed c:\xampp\apache\conf\extra\httpd-xamp.conf file to contain this</p>
  
  <p>
      Order deny,allow
      Deny from all
      Allow from ::1 127.0.0.0/8 192.168.1.180
      ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
  </p>
  
  <p>On my XAMPP computer, I have the following configuration in c:\xampp\apache\conf\extra\httpd-vhosts.conf:</p>
  
  <p>NameVirtualHost *:80
  
      ServerAdmin postmaster@dummy-host2.localhost
      DocumentRoot "C:/xampp/htdocs/myphpapp"
      ServerName mydomain.local
      ServerAlias mydomain.local
      ErrorLog "logs/mydomain.local-error.log"
      CustomLog "logs/mydomain.local-access.log" combined</p>
  
  <p>
      Options Indexes FollowSymLinks Includes ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
  
  </p>