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
-
-
This might be a bit of a janky solution but try making another Reverse proxy for the www subdomain.
-
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;
-
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.
Copyright © 2024 NodeBB | Contributors