Apache2 Default Virtual Host for IP

1 post / 0 new
#1 Fri, 11/24/2017 - 17:37
Baterka

Apache2 Default Virtual Host for IP

I am raging here more than 3 hours how to make Apache2 work for me how I want. I want when I access IP address directly, Apache2 serve me content from /var/www/html and not from virtualhost.

I tested everything including 000-default.conf file:

<VirtualHost *>

    DocumentRoot /var/www/html

</VirtualHost>

Nothing works. Apache2 (or Virtualmin) everytime use first VirtualHost in list but not my default file. Command apache2ctl -S not showing 000-default config at all, too.

How to make it works!