help with dns Im new in digitalocean

Posted September 29, 2017 1.2k views
ApacheUbuntu 16.04

hola tengo unos dias en digitalocean y tengo un problema :

nano /etc/apache2/sites-available/

<Virtualhost *:80>
DocumentRoot /var/www/

<Directory /var/www/html/>
Options Indexes FollowSyLinks
AllowOverride All
Require all granted

<IfModule mod_dir.c>
DirectoryIndex index.php index.cgi index.html index.xhtml index.htm


a2dissite 000-default.conf
systemctl restart apache2

and them
ping excelent but
unknown: host

and them enter
sudo nano /etc/hosts
add my ip and
add my ip and
but nathing

in my file info.php


Hostname:Port * *

edited by asb

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

In addition to configuring to configuring the ServerAlias in Apache, you also need to create DNS records. It sounds like you have an A record in place for, you’ll need one for as well. Take a look at this tutorial for all the info on setting up DNS records in the DigitalOcean control panel.