site not working with 'www'
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
Zig.gy last edited by Zig.gy
@anil28 : Are you on Digital Ocean? If so, I can tell you a trick based on what I remember.
UPDATED: You go to your account in Digital Ocean and go to the top tab that says "DNS" then follow what is listed below on this pic:
yes i am
Kowlin last edited by
This might be a bit of a janky solution but try making another Reverse proxy for the www subdomain.
Zig.gy last edited by
yes i am
See the updated post above
i already have a CNAME entry like in the screenshot
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
Www.mysite.com and mysite.com are different domains, you don't want them both available. Redirect one to the other, if you log in on mysite.com and then get navigates to www.mysite.com, you will no longer be logged in.
or so I understand anyway.