Created
December 29, 2020 17:26
-
-
Save phainamikaze/2d6c9291d63dda876fdbcdeefae983f9 to your computer and use it in GitHub Desktop.
nginx serv static content single page webapp
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
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/html; | |
index index.html; | |
server_name my.domain.com; | |
location / { | |
try_files $uri $uri/ /index.html?$args; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment