Page not found error if I put www before the url

Posted May 18, 2019 867 views
NginxDjangoUbuntu 18.04

I’ve a strange problem with my website. If I use I can have access to the site but if I use it shown me 404 Not Found nginx/1.14.0 (Ubuntu)

How I can fix it?

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

You just need to add your www. version in your server_name list and this should fix the issue.