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.

This textbox defaults to using Markdown to format your 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.
Hi!
You will need Nginx Server Blocks to make this possible You can learn more about Nginx Server Blocks in this DigitalOcean tutorial.
I will tl;dr part of this tutorial for you, but I recommend to read it so you learn more about it, it is excellent tutorial. :D
How you could do it: Let’s say you have two sites in: /var/www/example.com/html /var/www/community.example.com/html
You need to create server block for example.com and community.example.com.
You can copy default Nginx server block and change it as you wish.
Default server block is located under /etc/nginx/sites-available/default.
This is how your server block for example.com should look:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/example.com/html;
index index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
...
}
This is how your server block for community.example.com should look:
server {
listen 80;
listen [::]:80;
root /var/www/community.example.com/html;
index index.html index.htm index.nginx-debian.html;
server_name community.example.com
...
}
After you config it don’t forget to enable you server blocks! Follow Step Four of given tutorial.
Also you need to create appropriate DNS record for community web site.
If your using DigitalOcean DNS management (Networking -> Domains under DigitalOcean Cloud Panel), you can just add CNAME record community pointing to @