My domain only works in certain format.

Posted October 29, 2014 2k views

I can load my domain if it is typed, but does not load.

My 000-default.conf is written like so:

<VirtualHost *:80>
DocumentRoot /var/www/html/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

Not sure what give?

1 comment
  • Go under DNS > Choose your domain and click View > go to add record > choose CNAME > Under “Enter Name” put “www” (without quotes) and under “Enter Hostname” enter your domain like this:

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
1 answer

Have you configured DNS for www?

if it’s a CNAME, it should point to

if it’s an A record, it should point to the IP address of the server.