These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Apache2 Default Virtual Host for IP on the new forum.
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\n
</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!
Hi,
When you setup VirtualHost's to Apache, it will use the first Apache VirtualHost by design. If you want to setup an alternate "default", then create a VirtualHost for this purpose, and assign it as the default.
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist