Created
March 31, 2023 17:23
-
-
Save Nitecon/d7ffbcd6e442b2a42824ba3480d2bf84 to your computer and use it in GitHub Desktop.
This vhost example is for use with golang text/template and exposes 2 variables to be replaced.
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 {{.Domain}}; | |
root {{.VHOST_ROOT}}; | |
index index.html index.htm; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} | |
error_page 404 /404.html; | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root /usr/share/nginx/html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment