X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mods%2Fsample-nginx.config;h=71d37855169c39a41f1685b5da4dc160c21c8572;hb=4facd1dfdba93ede48ca40b5e146424e6701118b;hp=0c5443828c344e1f3580e6b50a86089f782062a5;hpb=79a8320fedd1e444b9acf11feaa3d160f5e4a5ff;p=friendica.git diff --git a/mods/sample-nginx.config b/mods/sample-nginx.config index 0c5443828c..71d3785516 100644 --- a/mods/sample-nginx.config +++ b/mods/sample-nginx.config @@ -84,16 +84,14 @@ server { # rewrite to front controller as default rule location / { - if (!-e $request_filename) { - rewrite ^(.*)$ /index.php?pagename=$1; - } + 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; @@ -129,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