Question
Remove www from my domain
I just deployed a droplet in DO and this is my 1st time using an unmanaged VPS.
Please help me with the following.
I have a domain and when I access it like domain.com it’s redirecting to www.domain.com
how can I remove that thing? I haven’t enabled that thing, I don’t even know how to do that.
And also, how can I upload files to my server so that when I open my domain.com, actual website will be shown.
I have 1 server and 2 domains pointing to it.
Here are the details.
I am using a CDN and DNS provided by stackpath.
domain1.com uses only DNS rovided by stackpath(just point A record to StackPath ip).
domain2.com uses both CDN and DNS provided by StackPath(point A record to stackpath ip address and full site CDN integration will be done).
Previously I used cPanel to upload my files. But here I don’t know anything. How to manage 2 domains in a single server?
How to upload files to these 2 domains?
I’ll just direct you towards a couple of tutorials.
Nginx multiple websites: https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04
Apache multiple websites: https://www.ostechnix.com/configure-apache-virtual-hosts-ubuntu-part-1/
As for uploading files, i’m using WinSCP on windows to do that: https://winscp.net/eng/docs/start