Wordpress REST API error - cURL error 23

My YunoHost server

Hardware: VPS bought online
YunoHost version: 4.1.7.2 (testing).
I have access to my server : SSH and webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance? : no

Description of my issue

Hi!
I’m trying to activate gzip to improve the performance of my Wordpress website.

I made the changes to Nginx, but after that I started getting the following error messages:

The REST API request failed due to an error.
Error: cURL error 23: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings. (http_request_failed)

and

The loopback request to your site failed, this means features relying on them are not currently working as expected.
Error: cURL error 23: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings. (http_request_failed)

Changes made to /etc/nginx/nginx.conf:

gzip on;

add_header Content-Encoding "gzip2";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text / plain text / css application / json application / javascript text / xml application / xml application / xml + rss text / javascript;

Could someone help me solve these errors?
Thank you!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.