title: Access virtual host from another machine over LAN
body: <ul>
  <li>I am using Windows 7 with Wamp 2.2 server.  </li>
  <li>I have setup 2 virtual hosts: <code>www.project1.com</code> and <code>www.project2.com</code>.  </li>
  <li>I have modified the "<em><a href="https://en.wikipedia.org/wiki/Hosts_(file)" rel="noreferrer">hosts</a></em>", the <a href="https://en.wikipedia.org/wiki/Httpd.conf" rel="noreferrer"><code>httpd.conf</code></a>, and the <a href="https://httpd.apache.org/docs/2.4/vhosts/examples.html" rel="noreferrer"><code>httpd-vhosts.conf</code></a> files, to the changes I mentioned below.  </li>
  </ul>
  
  <p>Using my browser, when I type <code>www.project1.com</code> or <code>www.project2.com</code>, I successfully get my web pages opened on the laptop that has the server installed on.  </p>
  
  <p>Changes in the "<em>hosts file</em>": I've appended the followings to the end of the file:-</p>
  
  <pre><code>127.0.0.1       localhost
  127.0.0.1       www.project2.com
  127.0.0.1       www.project1.com
  </code></pre>
  
  <p>Changes in the <code>httpd.conf</code> file:-</p>
  
  <pre><code>Include conf/extra/httpd-vhosts.conf
  </code></pre>
  
  <p>Changes in <code>httpd-vhosts</code> file:-</p>
  
  <pre><code>NameVirtualHost *:80
  
  &lt;Directory "D:/websites/"&gt;
      AllowOverride All
      Order Deny,Allow
      Allow from all
      &lt;/Directory&gt;
  &lt;VirtualHost 127.0.0.1&gt;
      DocumentRoot "D:/websites/wamp/www/"
      ServerName localhost
  &lt;/VirtualHost&gt;
  
  
  &lt;VirtualHost 127.0.0.1&gt;
      DocumentRoot "D:/websites/project1/"
      ServerName www.project1.com
  &lt;/VirtualHost&gt;
  
  
  &lt;VirtualHost 127.0.0.1&gt;
      DocumentRoot "D:/websites/project2/"
      ServerName www.project2.com
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><hr>
  Now; since I can open these web pages from a browser in <code>PC_1</code> (the one with the server), how can I access these web pages from a browser in <code>PC_2</code>? (I mean any PC connected to <code>PC_1</code> via LAN.)</p>