Thanks for the help. Got it working with the below solution.
Like in Apache there is not serverAlias in nginx
We have to enter in .conf file like below
server_name mysite.com www.mysite.com;
i already have a CNAME entry like in the screenshot
yes i am
My site loads 'nginx welcome page' with www.mysite.com
when entered mysite.com it works fine and my homepage loads.
I pinged and dns works fine. How do i solve this? Thanks
Done.... a million thanks....i've been fighting with this for the past 4 hours. Finally asked for help
Yes here it is. the first screenshot is the error i get
Should i change any chmod permission to that folder
after logging into ssh i typed "sudo su username" and tried to create the file. still same issue pops up. I have configured for "superuser". Should i try it from "root user"
I am getting this error while trying to save the file
"error writing permission denied". I might have made some silly mistake somewhere
thanks for the help, how do i create a file in ssh. i am using digitalocean ubuntu server?