By Victor
I am trying to set up FastCGI Caching with Nginx so I followed the tutorial given in the link https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps but the problem is when I run the command
nano /etc/nginx/sites-enabled/vhost
the file opens up for editing but the file is blank,there is no “server { } directive” or the “location ~ .php$ { }” field,there is no such thing.
This is getting me worried cause the file itself is blank but the tutorial states that the file will contain some statements,so have I been missing some steps in my set Nginx set up? but my Nginx works perfectly fine and I could install Wordpress,plugins and even customize my theme and settings.
And note I did not install SSL so is that why the file is blank or is there any other probable reason?
Thank you.
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!
You need to replace vhost with the file name of the virtual host that you are editing. You can see a list of available files by running ls /etc/nginx/sites-enabled/.
Well I solve this by using the command
sudo nano /etc/nginx/sites-available/default
That is where all the modification is to be made including for plugins like Wp Super Cache!!
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.