[英]How to setup cdn in “Litespeed Cache” in wordpress plugin?
I have problem to setuping the cdn. 我在设置CDN时遇到问题。 how to setup the cdn with https protocol in Litespeed cache?
如何在Litespeed缓存中使用https协议设置CDN? Are the file in
文件在
/wp-contentimportant to move in directory cdn?
Are you referring to the CDN setup within the plugin itself? 您是指插件本身中的CDN设置吗? You don't need to specifically do anything with any directories, including
/wp-content
. 您无需对任何目录特别进行任何操作,包括
/wp-content
。
Assuming you've already set up your CDN on the CDN's website, all you need to do to make it work with the LSCache plugin is to visit the LiteSpeed Cache > Settings > CDN tab, and configure a few options. 假设您已经在CDN的网站上设置了CDN,要使其与LSCache插件一起使用,您需要做的就是访问LiteSpeed缓存>设置> CDN选项卡,并配置一些选项。
Most notably, you need to let LSCache know your site's original URI, the CDN URL, and the types of static files your CDN will be responsible for serving. 最值得注意的是,您需要让LSCache知道站点的原始URI,CDN URL以及CDN将负责提供服务的静态文件的类型。 (Your CDN should only be serving static files, as LSCache is responsible for caching the dynamic content.)
(您的CDN应该只提供静态文件,因为LSCache负责缓存动态内容。)
If you are using Cloudflare, you can disregard the above. 如果您使用的是Cloudflare,则可以忽略上述内容。 There is no need to do anything special in LSCache to make it work with Cloudflare.
无需在LSCache中执行任何特殊操作即可使其与Cloudflare一起使用。
There are detailed CDN configuration instructions on the LiteSpeed wiki , if you need more information. 如果需要更多信息,可以在LiteSpeed Wiki上找到详细的CDN配置说明。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.