From e2248aeafa93bc8df07d804e8d151eb1fd9ac7a1 Mon Sep 17 00:00:00 2001 From: Nico Rey Date: Sat, 30 May 2020 16:34:43 -0300 Subject: [PATCH] do not overwrite default sites enabled --- install.sh | 2 +- templates/nginx.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 21a0284..0212628 100755 --- a/install.sh +++ b/install.sh @@ -162,7 +162,7 @@ fi ### Setup Nginx log_running "Setting up Nginx..." -sudo cp templates/nginx.cfg /etc/nginx/sites-enabled/default +sudo cp templates/nginx.cfg /etc/nginx/sites-enabled/wx ( sudo mkdir -p /var/www/wx sudo chown -R www-data:www-data /var/www/wx diff --git a/templates/nginx.cfg b/templates/nginx.cfg index 216e375..aacb918 100644 --- a/templates/nginx.cfg +++ b/templates/nginx.cfg @@ -4,7 +4,7 @@ server { index index.html index.htm index.nginx-debian.html; autoindex on; - server_name wx.home wx.reyni.co; + server_name wx.home; location / { try_files $uri $uri/ =404;