1

Using Ubuntu 18.04, Apache 2.4.29. I think that there is a default vHost in apache2 i.e 000-default.conf. If your site is accessible through IP, you may have disabled this default configuration. A work-around: Edit 000-default.conf and put a redirect there. nano /etc/apache2/sites-available/000-default.conf In 000-default.conf <VirtualHost *:80> ...


Only top voted, non community-wiki answers of a minimum length are eligible