I need help setting up fastcgi on our droplet, here is our configuration for /etc/nginx/sites-enabled/nanirj.com

https://ibb.co/ZVJbfqQ
https://ibb.co/jWYzQnV

when I run sudo service nginx reload, it returns ‘ok’. but when I try to test it using timestamps, its not working.

edited by MattIPv4

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi @MrStarfish,

Looking at the configuration, I would assume you’ve actually followed this tutorial - https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps .

Can you confirm you’ve followed this part as I can’t see it on the screenshots :

*Next, move the location directive that passes PHP requests to php5-fpm. Inside “location ~ .php$ { }” add the following lines.

fastcgi_cache MYAPP;
fastcgi_cache_valid 200 60m;

The “fastcgicache” directive references to the memory zone name which we specified in the “fastcgicache_path” directive and stores the cache in this area.*

Please try and configure this and see if everything will work properly then.

Regards,
KDSys

by Jesin A
Here's how to setup FastCGI caching with Nginx on your VPS.
Submit an Answer