Skip to content

Instantly share code, notes, and snippets.

@wingrime
Created November 26, 2019 19:01
Show Gist options
  • Save wingrime/f8b5731ab7c9301f90b9bcdbbbdc53ff to your computer and use it in GitHub Desktop.
Save wingrime/f8b5731ab7c9301f90b9bcdbbbdc53ff to your computer and use it in GitHub Desktop.
## For blog.example.com subdomain
server {
listen 80;
listen [::]:80;
root /var/www/blog.example.com;
index index.html;
server_name blog.example.com;
}
## For fakenews.com domain
server {
listen 80;
listen [::]:80;
root /var/www/fakenews.com;
index index.html;
server_name fakenews.com;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment