By MrStarfish
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.