Cloud Hosting
A practical guide to deploying and hosting web applications in the cloud — from buying your first server to hosting multiple apps with custom subdomains.
📂 What's Inside
| Guide | What You'll Learn |
|---|---|
| 🛒 Buying Cloud Resources | Compare cloud providers from budget to premium; pick the right plan |
| 🌐 Domain Registration | Register a domain on Namecheap, compare registrars, configure DNS |
| ⚙️ Nginx Setup & Subdomains | Install Nginx, serve static sites, host multiple apps under sub.domain.com |
| 🚀 Auto-Deploy to DigitalOcean | GitHub Actions CI/CD pipeline that deploys on every merge to master |
🎯 Goal
By the end of this section you will be able to:
- Spin up a cloud server in minutes (DigitalOcean Droplet, AWS EC2, etc.)
- Register a domain and point it at your server
- Host multiple apps on the same server using Nginx virtual hosts and subdomains
- Auto-deploy your site every time you push to
master
🏠 Analogy: Think of a cloud server as renting an apartment building. Nginx is the doorman who directs each visitor to the right apartment (app). Your domain is the building's street address, and subdomains are the apartment numbers.
Last updated: February 2026