Question

Domain name not working without "www."

I have added domains to control panel like : http://prnt.sc/e1uxue However when I open my website : talkingsparrow.com or www.talkingsparrow.com just a file get downloaded to my system.

Please let me know if I’m missing something.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

@mehrarajesh506

You’ll need to properly setup your NGINX server blocks for each website and make sure PHP is being handled in each one of the, else you may run in to issues such as the one your describing.

To get a more detailed look, I’d need to take a look at your website server block, which can be found within /etc/nginx/sites-available.

@jtittle Thank you !!..Indeed there were issues with PHP handing in server blocks…also, Index.php was missing in server block…Thanks for the help !

some more info : I have moved my wordpress blog from Apache to NGINX. , ubuntu 16.04 LEMP stack

Now not working even with www.