From c64eb50c112132c56eccad3980b5cab59832b156 Mon Sep 17 00:00:00 2001 From: Thomas LEBEAU Date: Sun, 15 Jun 2014 22:47:18 +0200 Subject: [PATCH] update nginx conf --- conf/nginx.conf | 2 +- scripts/install | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index b74d0e5..5ba5202 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,6 @@ location PATHTOCHANGE { alias ALIASTOCHANGE; - proxy_pass http://127.0.0.1PATHTOCHANGE/admin; + proxy_pass http://DOMAINNAMEPATHTOCHANGE/admin; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; diff --git a/scripts/install b/scripts/install index dfdabbc..49a5f41 100644 --- a/scripts/install +++ b/scripts/install @@ -52,6 +52,7 @@ sudo chown -R www-data: $final_path # Modify Nginx configuration file and copy it to Nginx conf directory sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf* sed -i "s@ALIASTOCHANGE@$final_path@g" ../conf/nginx.conf* +sed -i "s@DOMAINNAME@$domain@g" ../conf/nginx.conf* nginxconf=/etc/nginx/conf.d/$domain.d/yourls.conf sudo cp ../conf/nginx.conf $nginxconf sudo chown root: $nginxconf