Cname record is not working

Hi guys

I have lemp stack installed on ubuntu 14.04

i have 2 domains

first one is working perfectly both with “www” and naked url

but for second domain

when i try to reach my website with “www” it shows me blank page

i reach to the website with “www” but cannot reach without “www”

looks like cname is not working

here is my cname record detail link

how can i fix this?

what would be the problem?


In your nginx server blocks for the sites you’ve enabled, do you have a server_name value that looks like

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

@newcareertime - if you’re using wordpress, then review your site’s URL in the wp-config admin screen to make sure it is prefixed with ‘www’. Otherwise, monitor your nginx logs (both error and access logs) to see which file it is trying to open when attempting to access your www site.