From e85f16826c9609dc47e7fe52dfeb6d203a84f6ad Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 5 Jan 2019 18:42:45 +0100 Subject: [PATCH 1/3] Update nginx.conf --- conf/nginx.conf | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 4193bce..707de22 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,13 +1,15 @@ -location ^~ __PATH__/ { - proxy_pass http://127.0.0.1:__PORT__; - proxy_redirect off; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Host $server_name; - - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; -} \ No newline at end of file +root /arv/pufferpanel/public/; +index index.php; + +location / { + try_files /public/router.php =404; + fastcgi_split_path_info ^(.+?\.php)(/.*)$; + fastcgi_pass ${phpSocket}; + fastcgi_index router.php; + fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; + include /etc/nginx/fastcgi_params; +} + +location /assets { + try_files /app/\$uri =404; +} From e7b4b23e2a8f9542b456ec8aba8b07198e0244d3 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 5 Jan 2019 18:43:24 +0100 Subject: [PATCH 2/3] Update nginx.conf --- conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 707de22..ec41108 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,7 +1,7 @@ -root /arv/pufferpanel/public/; +root /srv/pufferpanel/public/; index index.php; -location / { +location ^~ __PATH__/ { try_files /public/router.php =404; fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass ${phpSocket}; @@ -10,6 +10,6 @@ location / { include /etc/nginx/fastcgi_params; } -location /assets { +location __PATH__/assets { try_files /app/\$uri =404; } From 9accc1bb7381dee4326a26daa8d6845b1878a0c7 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 5 Jan 2019 18:46:22 +0100 Subject: [PATCH 3/3] Update nginx.conf --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index ec41108..a12b780 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,4 @@ -root /srv/pufferpanel/public/; +root /srv/pufferpanel/; index index.php; location ^~ __PATH__/ {