Hello,
I have already nginx working with 2 wordpress installs example.com/site1 and example.com/site2 but now I need to setup W3 total cache, How to setup this on nginx for both sites?
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.
i have both wordpress sites under the same domain in different folders. For example Folder1 and Folder2 but this settings are like this inside my /etc/nginx/sites-available/wordpress file:
If you visit
your-domain.com/wp-admin/admin.php?page=w3tc_install
W3 Total Cache will show you all the additional configuration information that you need. Included in that information will be some additional Nginx configurations which I’ve also listed below. Copy and paste it into each of your WordPress installations Nginx server blocks (a.k.a VirtualHosts).