title: Apache2 Virtual Host fails with Name or service not known
body: <p>Moving from Ubuntu 17.10 to Mint 18.3 and migrating virtual host config files fails with</p>
  
  <pre><code>[core:error] [pid 3012] (EAI 2)Name or service not known: AH00547: Could not resolve host name
  </code></pre>
  
  <p>On my fresh installed Mint i have done this first<br>
  1)  sudo a2dissite 000-default.conf<br></p>
  
  <p>This is my standard Config File using for Vhosts</p>
  
  <pre><code>&lt;VirtualHost *.domain.localhost:80&gt;
      ServerName domain.localhost
      ServerAlias www.domain.localhost api.domain.localhost
      ServerAdmin webmaster@localhost
      DocumentRoot /home/dev/projects/domain/web/html/
      &lt;Directory /home/dev/projects/domain/web/html/&gt;
          Options -Indexes +FollowSymLinks +MultiViews
          AllowOverride All
          Require all granted
      &lt;/Directory&gt;
      ErrorLog /var/log/apache2/error.log
      LogLevel warn
      CustomLog /var/log/apache2/access.log combined
      ServerSignature Off
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>BTW: This steps i'm doing for every project<br>
  1) sudo chown -R www-data:www-data PATH_TO_DIR<br>
  2) sudo chmod 660 -R PATH_TO_DIR<br>
  3) sudo chmod -R -x+X PATH_TO_DIR<br>
  4) sudo find PATH_TO_DIR -type d -exec chmod g+s {} \;<br>
  5) sudo setfacl -R -d -m u::rwX,g::rwX,o::- PATH_TO_DIR</p>
  
  <p>UPDATE:
  adding domains to /etc/hosts, reloading server leads again to the default </p>