Skip to content

Instantly share code, notes, and snippets.

@namieluss
Created April 5, 2020 01:27
Show Gist options
  • Save namieluss/e74858128191135dfcc63dc15966fec3 to your computer and use it in GitHub Desktop.
Save namieluss/e74858128191135dfcc63dc15966fec3 to your computer and use it in GitHub Desktop.
Serving static index.html file in nginx server
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