X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mods%2Fsample-nginx.config;h=71d37855169c39a41f1685b5da4dc160c21c8572;hb=3b0fabcdb7121c622e58f0514938adb1758ae8e4;hp=e4ce902515e4c858bc2ff09da3e81c1dd2f11af3;hpb=b2844ead0d1a59f246b0fc9691e17036573dfc45;p=friendica.git diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index e4ce902515..71d3785516 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -84,14 +84,14 @@ server { # rewrite to front controller as default rule location / { - try_file $uri /index.php?pagename=$uri&$args; + try_files $uri /index.php?pagename=$uri&$args; } # make sure webfinger and other well known services aren't blocked # by denying dot files and rewrite request to the front controller location ^~ /.well-known/ { allow all; - try_files $uri /index.php?pagename=$uri&$args; + rewrite ^ /index.php?pagename=$uri; } include mime.types; @@ -127,6 +127,9 @@ server { include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + + fastcgi_buffers 16 16k; + fastcgi_buffer_size 32k; } # block these file types