Created
November 26, 2019 19:01
-
-
Save wingrime/f8b5731ab7c9301f90b9bcdbbbdc53ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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