From b4ab3b742ff832ada3868e9cc7241c0302b43b5f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 17 Sep 2020 11:26:16 +0200 Subject: [PATCH] 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 def80be..2e4b93f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,6 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - alias __FINALPATH__/; + alias __FINALPATH__/public; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; @@ -15,7 +15,7 @@ location __PATH__/ { } fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php-fpm-__NAME__.sock; + fastcgi_pass unix:/var/run/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; @@ -24,7 +24,7 @@ location __PATH__/ { } location ~ ^__PATH__/ws/ { - proxy_pass http://127.0.0.1:__PORT__; + proxy_pass http://127.0.0.1:__PORT__/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade";