Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barrouh/1a1ca1ca309a29dd531a2c3d8130414f to your computer and use it in GitHub Desktop.
Save barrouh/1a1ca1ca309a29dd531a2c3d8130414f to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment