Created
May 18, 2021 14:21
-
-
Save trapcodeio/a6851468b7641e977974d89984bfd9ff to your computer and use it in GitHub Desktop.
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; | |
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