Created
March 16, 2021 15:27
-
-
Save trapcodeio/228a247b76a57469fffb6c96cd5ccbb1 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