Skip to content

Instantly share code, notes, and snippets.

@Ratstail91
Created October 15, 2018 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ratstail91/e3dc727655c0b13fe80c1fe5b8db95de to your computer and use it in GitHub Desktop.
Save Ratstail91/e3dc727655c0b13fe80c1fe5b8db95de to your computer and use it in GitHub Desktop.
server {
root /var/www/candyraid/public_html; #your files go here
index index.html index.htm;
server_name localhost candyraid.com www.candyraid.com ""; #your domain name goes here
access_log /var/www/candyraid/logs/access.log; #make sure this file exists first!
error_log /var/www/candyraid/logs/errors.log; #make sure this file exists first!
location / {
try_files $uri $uri/ /index.html =404;
}
#I also have a lot of SSL configuration stuff here generated by certbot-auto, just ignore it for now
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment