Skip to content

Instantly share code, notes, and snippets.

@florimondmanca
Created July 15, 2018 08:01
Show Gist options
  • Save florimondmanca/ec04c791d9379d0cdb1a5f8370b6d500 to your computer and use it in GitHub Desktop.
Save florimondmanca/ec04c791d9379d0cdb1a5f8370b6d500 to your computer and use it in GitHub Desktop.
Simple Nginx configuration for serving an Angular build
server {
listen 80;
# server_name YOUR_SERVER_NAME;
root /path/on/server/to/dist;
index index.html index.htm;
location / {
try_files $uri $uri/ /index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment