Configure Apache HTTP Server with Domain Name - Digitalocean

Configure Apache HTTP Server with Domain Name - Digitalocean

You will need check this article :
How To Point to DigitalOcean Nameservers From Common Domain Registrars

Configuration

Add Digitalocean domain records

alt text

Open default.conf file

sudo nano /etc/apache2/sites-available/000-default.conf

Above the configuration:

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

Add:

ServerName barrouh.com
ServerAlias www.barrouh.com

Restart Apache:

sudo systemctl restart apache2.service