A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
I have few site on digitalocean server but some of my sites open with www. and some of without www. . I just want If open my site with both ways like this example
Right now www. is not working and its take me to "Welcome to nginx" page
Can you post a snippet of your Nginx configuration? It would make it easier to find the issue.
Generally, if you want both www and non-www URLs to display the same content, in your server block you just need to set the server_name directive to have both:
server_name webcrayonz.org www.webcrayonz.org;
# And so on...
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.