From 9d25defdfdc18dce545d039e7db3f9a442eb54e3 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 3 Jan 2019 00:29:29 +0100 Subject: [PATCH 1/2] root : not sure it will work for subdomains --- conf/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5a1f219..26a7c8b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,3 +1,5 @@ +root /var/www/pterodactyl/public/; + location ^~ __PATH__ { alias __FINALPATH__/public/; try_files $uri $uri/ @pterodactyl; From 85769ed4d996b64b6db089724ca456f4bd47c1d0 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 3 Jan 2019 00:30:06 +0100 Subject: [PATCH 2/2] typo --- conf/nginx.conf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 26a7c8b..45ea24b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,7 +2,7 @@ root /var/www/pterodactyl/public/; location ^~ __PATH__ { alias __FINALPATH__/public/; - try_files $uri $uri/ @pterodactyl; + try_files $uri $uri/ /index.php?$query_string; index index.php index.htm index.html; # Force https if ($scheme = http) { @@ -18,8 +18,3 @@ location ^~ __PATH__ { fastcgi_param SCRIPT_FILENAME $request_filename; } } - - -location @pterodactyl { - rewrite /(.*)$ /index.php?/$1 last; -}