Skip to content

Instantly share code, notes, and snippets.

@trapcodeio
Created March 16, 2021 15:27
Show Gist options
  • Save trapcodeio/228a247b76a57469fffb6c96cd5ccbb1 to your computer and use it in GitHub Desktop.
Save trapcodeio/228a247b76a57469fffb6c96cd5ccbb1 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