title: How setup Apache Virtual Host to Laravel on Ubuntu Server 20.04?
body: <p>I have a server running Ubuntu 20.04 and Apache 2 that I use as a webserver. I made a configuration of a virtual host to point to a Laravel application, as you can see in the configuration file below.</p>
  <pre><code>&lt;VirtualHost laravel-8.test&gt;
      DocumentRoot /var/www/laravel-8/public
      ServerName laravel-8.test
      &lt;Directory &quot;/var/www/laravel-8/public&quot;&gt;
          allow from all
          Options None
          Require all granted
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  <p>And everything works perfectly on the server, but when I try to access the address laravel-8.test from another machine on the network, it goes to the Apache page. I even added in the Ubuntu hosts file to inform the address.</p>
  <pre><code>127.0.0.1   laravel-8.test
  </code></pre>
  <p>And I did the same on the workstation (Windows 10 Pro), I added the line</p>
  <pre><code>192.168.0.112    laravel-8.test
  </code></pre>
  <p>What am I doing wrong? I have the necessary Apache modules for Laravel to work (rewrite)</p>