S
S
shane892016-02-01 17:52:33
DigitalOcean
shane89, 2016-02-01 17:52:33

How to register a domain in digitalocean?

Good evening. I wanted to know how to register a domain in do.
Here's what I did, but the domain still doesn't work.
1) In the /etc/apache2/sites-available folder, I created a conf file with the name of my site site.org.conf and wrote the following:

<VirtualHost *:80>
  ServerAdmin [email protected]
  ServerName site.org
  ServerAlias www.site.org
  DocumentRoot /var/www/site.org/public_html
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

2) Opened the hosts file (/etc/hosts) and wrote
00.000.000.000 site.org
the following ip and site name.
3) On the do site in Networking->Domains, I created the site.org domain and in the settings I wrote the following.
adc1f521910c4509b202af04ece0413b.jpg
A lot of time has passed, the domain is not working. Did I do everything right. I was told that it is possible to set up free domains on vps, after setting up the site.loc type on the local network and the domain will work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2016-02-01
@opium

Why the hell did you write zeros instead of IP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question