Ubuntu 16 on KVM VPS. (Apache2 + Nginx as front) PHP 7.3

When I enter my dedicated IP and domain, both show Apache2 Ubuntu Default Page /var/www/html/index.html

How to make so when i type ip it redirects to domain name?

P.S. I manage domain DNS on cloudflare.

  • 1
    Try to change in main default virtual host rather than creating a new virtual host for your site. – Prince Kumar Barnwal Sep 30 at 7:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.