help with dns Im new in digitalocean

September 29, 2017 97 views
Apache Ubuntu 16.04

hola tengo unos dias en digitalocean y tengo un problema :

nano /etc/apache2/sites-available/mysite.com.conf

<Virtualhost *:80>
ServerAdmin donal@mysite.com
ServerName mysite.com
ServerAlias www.mysite.com
DocumentRoot /var/www/mysite.com

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

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

</VirtualHost>

a2ensite mysite.com.conf
a2dissite 000-default.conf
systemctl restart apache2

and them
ping mysite.com excelent but
ping www.mysite.com
unknown: host www.mysite.com

and them enter
sudo nano /etc/hosts
add my ip and mysite.com
add my ip and www.mysite.com
but nathing

in my file info.php

apache2handler

Hostname:Port *empleosfull.com:0 *

Be the first one to answer this question.