Page 2 of 2

Re: [HOWTO] FASTCGI CACHE WORDPRESS

Posted: Thu Apr 15, 2021 6:02 pm
by emlax
Hello. I am configured vestacp template by this instruction. But I have a few websites and I get a error after "nginx -t":
nginx: [emerg] "fastcgi_cache_key" directive is duplicate in /home/username/conf/web/BLABLA.COM.nginx.ssl.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
how to fix it?

Re: [HOWTO] FASTCGI CACHE WORDPRESS

Posted: Thu Apr 15, 2021 6:23 pm
by grayfolk
emlax wrote:
Thu Apr 15, 2021 6:02 pm
Hello. I am configured vestacp template by this instruction. But I have a few websites and I get a error after "nginx -t":
nginx: [emerg] "fastcgi_cache_key" directive is duplicate in /home/username/conf/web/BLABLA.COM.nginx.ssl.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
how to fix it?
Just remove duplicated directive.

Re: [HOWTO] FASTCGI CACHE WORDPRESS

Posted: Thu Apr 15, 2021 7:49 pm
by emlax
grayfolk wrote:
Thu Apr 15, 2021 6:23 pm
Just remove duplicated directive.
I have 3 websites.
I just removed "fastcgi_cache_key "$scheme$request_method$host$request_uri";" from two websites. Fastcgi works only on one website!
Tell me please, How to enable fastcgi on every of my websites?

Re: [HOWTO] FASTCGI CACHE WORDPRESS

Posted: Sat Apr 17, 2021 7:39 am
by emlax
NGINX CACHE SNIPER don't works on my websites , I have last wp version