WordPress-Nginx configuration with W3 Total Cache

Hi i have already installed PHP, MySQL, Nginx & easy engine, moved an existing WordPress to current server. But confused here about nginx configuration

i need to add code provided in https://rtcamp.com/wordpress-nginx/tutorials/single-site/w3-total-cache/ to nginx configuration file? .

I have added code provided there in /etc/nginx/nginx.conf at bottom. Is it right?

After test got error.

root@xxx:~# nginx -t && service nginx reload nginx: [emerg] “rewrite” directive is not allowed here in /etc/nginx/sites-enabl ed/default:86 nginx: configuration file /etc/nginx/nginx.conf test failed

Also W3 total cache plugin installed manually, not with easy engine, So any configuration needed for it on server?


If you have installed EasyEngine then you should not follow https://rtcamp.com/wordpress-nginx/tutorials/single-site/w3-total-cache/ this tutorial.

EasyEngine already contains configurations in above tutorials.

@harshadyeola Thanks for reply, But w3 total cache added manual not with easy engine. So no need to do Configuration?

@sarang44 How you did create site?

Hi @sarang44

It’s been a long time, and we haven’t heard from you. It looks like your issue is resolved.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile: