title: Make local website available to all devices in local network
body: <p>I have created a LAMP server and in there I host a couple of websites. <br>These websites are currently available only when I access them from my Ubuntu machine.<br> How can I modify the virtual hosts so that all the devices connected in the network can access these websites too ?</p>
  
  <p>Websites' <code>.conf</code> file, located in /etc/apache2/sites-available/ looks like this:</p>
  
  <p>Website1.com</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
    ServerAdmin webmaster@website1.com
    ServerName website1.com
    ServerAlias www.website1.com
    DocumentRoot /var/www/html/website1.com/public
  
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Website2.com</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
    ServerAdmin webmaster@website2.com
    ServerName website2.com
    ServerAlias www.website2.com
    DocumentRoot /var/www/html/website2.com/public
  
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The hosts file looks like this: <br>
  <code>127.0.0.1   localhost website1.com website2.com</code></p>
  
  <p>Both of these websites can be accessed from my Ubuntu machine by simply entering their names in the browser, but any other device in the network has no access to them.</p>