diff --git a/conf/nginx.conf b/conf/nginx.conf index 8d7e496..84fa4f9 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,4 @@ -location PATHTOCHANGE { - alias ALIASTOCHANGE; - - rewrite ^PATHTOCHANGE PATHTOCHANGE/admin permanent; +location PATHTOCHANGE/admin { index index.php index.html index.htm; default_type text/html; diff --git a/scripts/install b/scripts/install index dfdabbc..05b9e19 100644 --- a/scripts/install +++ b/scripts/install @@ -51,7 +51,6 @@ 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* nginxconf=/etc/nginx/conf.d/$domain.d/yourls.conf sudo cp ../conf/nginx.conf $nginxconf sudo chown root: $nginxconf