title: Accessing virtual host from computer on same local network
body: <p>I am trying to make a setup so that I can access my website on a virtual host in computer A from computer B. Both A and B are on the same network.
  I am using xampp on Win 7.</p>
  
  <p>So here is as the problem goes computer A(server) has a virtual host configuration as follows in the httpd-vhosts.conf file.</p>
  
  <pre><code>NameVirtualHost project:81
  
  &lt;VirtualHost project:81&gt;
  
      DocumentRoot "D:/work/website"
      ServerName project:81
      &lt;Directory "D:/work/website"&gt;
      Options Indexes FollowSymLinks Includes ExecCGI    
      AllowOverride All
      Order Allow,Deny
      Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>(using port 81 as port 80 has IIS running, dont know much about these things however)</p>
  
  <p>this configuration works fine on the local machine(server). i.e project:81 in the address bar of the browser opens up the website as it should.</p>
  
  <p>Now on computer B(client) I changed the hosts file to contain the IP of the server along with the name of the virtual host like:-</p>
  
  <blockquote>
    <p>192.168.1.7 project</p>
  </blockquote>
  
  <p>now when I enter project:81 on the client browser .. it takes me to the server but its not taking me to the virtual host directory, instead it takes to the default directory .. i.e in my case is</p>
  
  <p>C:\xampp\htdocs</p>
  
  <p>Now I am stuck and unable to make the client to point to the current destination.
  So can anybody suggest what I am doing wrong here or something else I need to do in order to have access to the correct virtual host site from the client machine.</p>
  
  <p>Thanks in advance for any help</p>