From e85f16826c9609dc47e7fe52dfeb6d203a84f6ad Mon Sep 17 00:00:00 2001 From: frju365 Date: Sat, 5 Jan 2019 18:42:45 +0100 Subject: [PATCH] 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; +}