Report this

What is the reason for this report?

Need help redirecting http://mysite to www.mysite.com

Posted on October 5, 2018

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. 

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.