By nkhilv
Hi, I’m hoping someone here can help. I currently have a digital ocean droplet running Ubuntu LAMP on 18.04 .
My site works fine when accessed at www.mysite.com. However, typing it into a browser (http://mysite.com) gets a generic error in the browser (‘this site can’t be reached. mysite.com’s server ip address couldn’t be found’).
Here are the things I’ve tried:
Accessed the 000-default.conf file at /etc/apache2/sites-anabled and added the following:
```
ServerAdmin webmaster@localhost ServerAlias mysite.com *.mysite.com DocumentRoot /var/www/html
This seems to work OK on Firefox and Safari, but on Chrome I'm still getting the error. I tried clearing my cache on Chrome but it doesn't seem to help.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The error you’re getting is indicative of a missing DNS record for mysite.com. So make sure you have an A record for mysite.com pointing to your droplet’s IP.
Yes you need this:
Type: A Hostname: @ Value: IP Address of my domain TTL: 3600
Yes that’s an @ sign in Hostname
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.