1

Add webserver vhost definition for the server hostname in default template


H
Nordhost

When a server only has a single IPv4 address, web requests to the server hostname is served from /var/www/html (like e.g. webmail and phpmyadmin).

When an IPv6 address is added to the server and the server hostname gets an AAAA record for it, and is then assigned to a reseller for use, requests to the server hostname over IPv6 is served from /home/reseller/domains/sharedip instead of /var/www/html.

I think it would make sense to have a virtualhost definition with the server hostname, to ensure that requests to that name actually was served from the same /var/www/html document root regardless of how the IP address itself is configured (linked to the IPv4 address, or assigned to a reseller).

A