如何在共享主机上配置 w3 总缓存(Apache 和 nginx 的组合)

How to configure w3 total cache on shared hosting (combination of Apache and nginx)

服务器信息

我正在使用 Plesk 面板的共享主机。其中 apache 网络服务器在后台 运行,Nginx 网络服务器在前面。这是更多信息

http://docs.plesk.com/en-US/12.5/administrator-guide/web-servers/apache-web-server-linux/apache-with-nginx.70837/

我在共享主机上使用 wordpress 并希望启用 w3 total cache。在启用 W3 Total 缓存时,它会生成 .htaccess 文件。 .htaccess 文件在 Nginx 运行.

时不可用

问题

有什么方法可以 add/modify 在共享主机上配置 Nginx,而后台的 apache 运行?

我没有修改 nginx 配置,而是找到了另一种改变 apache conf 的方法。参考:http://docs.plesk.com/en-US/12.5/customer-guide/websites-and-domains/hosting-settings/web-server-settings/apache-web-server-settings.72320/

在 pleask pannel >> Apache & nginx Settings >> Restrict the ability to follow symbolic links (unchecked this option)

取消选中上述选项后,我的 .htaccess 代码工作正常。