Many web developers need to allow their users to access their website or application via both the www subdomain and the root (non-www) domain. This tutorial shows how to configure a 301 redirect in Nginx and configure two DNS records in DigitalOcean DNS to point both domain names to the Nginx server.
How To Redirect www to Non-www with Nginx on CentOS 7
How To Redirect www to Non-www with Nginx on Ubuntu 14.04
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
