http://www.linuxeye.com/jianzhan/Nginx-wp-super-cache.html

探路者 asked 8年 ago
 
您好!看了http://www.linuxeye.com/jianzhan/Nginx-wp-super-cache.html 这个如何设置 wp Super Cache的Mod_Rewrite缓存模式 ,我想请教一个问题:如果网站是https的模式呢?目前文章的解决办法是针对http的。
谢谢!
 

2 Answers
oneinstack answered 8年 ago
通用。

探路者 answered 8年 ago
官方网站有所提示:
https://codex.wordpress.org/Nginx#WP_Super_Cache_Rules
Experimental modifications:
If you are using HTTPS, the latest development version of WP Super Cache may use a different directory structure to differentiate between HTTP and HTTPS. The ${scheme} variable will eventually become a necessary part of the path in that case. try_files line may look like below:

location / {
        try_files /wp-content/cache/supercache/$http_host/$scheme$cache_uri/index.html $uri $uri/ /index.php?$args ;
}


这个是指什么意思呢?