Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trapcodeio/a6851468b7641e977974d89984bfd9ff to your computer and use it in GitHub Desktop.
Save trapcodeio/a6851468b7641e977974d89984bfd9ff to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name example.com;
charset utf-8;
root {{app_root}}/dist;
index index.html index.htm;
# Always serve index.html for any request
location / {
root {{app_root}}/dist;
try_files $uri /index.html;
}
error_log /var/log/nginx/vue-app-error.log;
access_log /var/log/nginx/vue-app-access.log;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment