title: Index of root \
body: <p>I have a webserver running on port 80 on CentOS7 like this:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName my.server.nl
      DocumentRoot /var/www/my.server.nl/public_html
      ErrorLog /var/www/my.server.nl/error.log
      CustomLog /var/www/my.server.nl/requests.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>This works fine. The VirtualHost is set in a directory called <code>sites-available</code> and linked to from <code>sites-enabled</code>, all good.
  Now I copy/paste the VirtualHost and change the port, I expect to run the same site on a different port.</p>
  
  <pre><code>&lt;VirtualHost *:8080&gt;
      ServerName my.server.nl
      DocumentRoot /var/www/my.server.nl/public_html
      ErrorLog /var/www/my.server.nl/error.log
      CustomLog /var/www/my.server.nl/requests.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>When I browser to the copy of the working site on the other port, all I see is an empty page with <code>Index of /</code>
  In fact, no matter what I use as DocumentRoot, this is always the result of the new VirtualHost.</p>
  
  <p>How can this be?</p>
  
  <ul>
  <li>restarted the service (sudo systemctl restart httpd)</li>
  <li>checked all permissons</li>
  <li>firewall is ok</li>
  <li>exact copy, 100% the same documents</li>
  <li>added port to httpd.conf, or it will deny any access (why?!)</li>
  </ul>