My domain, botdemo.xyz is working but www.botdemo.xyz is not working..
DNS records are :
Example link (http://imgur.com/a/fLZlU)
My sites-available/default file
Default server configuration
I'm seeing www.botdemo.xyz just fine - it actually redirects me to HTTPS.
Try clearing your browser cache (or close and open your browser).
And the configuration you've posted is for HTTP-only (p...