]> git.mxchange.org Git - friendica.git/commitdiff
Replaced hostname in rewrite url for forwarding http to https by $server_name variabl...
authorMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Thu, 24 Nov 2022 18:20:26 +0000 (19:20 +0100)
committerMarek Bachmann <marek.bachmann@comtec.eecs.uni-kassel.de>
Thu, 24 Nov 2022 18:21:18 +0000 (19:21 +0100)
Updated default PHP-FPM path from 7.0 to 7.4

mods/sample-nginx.config

index 63f73e01e480889a285697965a0c488d1f79753a..5530bfaefd9cff6d328c81518df30da9bfe8c017 100644 (file)
@@ -35,7 +35,7 @@ server {
 
   index index.php;
   root /var/www/friendica;
-  rewrite ^ https://friendica.example.net$request_uri? permanent;
+  rewrite ^ https://$server_name$request_uri? permanent;
 }
 
 ##
@@ -120,7 +120,7 @@ server {
     # fastcgi_pass 127.0.0.1:9000;
 
     # With php7.0-fpm:
-    fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
+    fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
 
     include fastcgi_params;
     fastcgi_index index.php;