Created
April 5, 2020 01:27
-
-
Save namieluss/e74858128191135dfcc63dc15966fec3 to your computer and use it in GitHub Desktop.
Serving static index.html file in nginx server
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 443 ssl; | |
server_name localhost; | |
root /home/mywebstite/; | |
index index.html; | |
location / { | |
try_files $uri $uri/ @proxy; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment