• Resolved cronnoslogic

    (@cronnoslogic)


    Hello, I have a question about the use of CDN… With the W3 Total Cache plugin there is a function of ¨Self Hosted CDN¨. My question is: Is there any way to do something similar with the LS Cache?

    What has occurred to me is copy all the content in a subdomain and apply the URL in the CDN option of the LS Cache … Would it be valid to use this method? Or if there is another way to do it with the plugin? I thank you in advance for the help…

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @cronnoslogic, yes, you can do the replacement by LiteSpeed Setting > CDN > CDN Mapping, a similar function to you mentioned.

    Can you describe more about your difficulty when you using this function?

    Thread Starter cronnoslogic

    (@cronnoslogic)

    Well I know how to configure the DNS for the CDN. I tried to activate the function but there is no apparent change, no links to cdn.webmaster.edu.do in the requests to the page … I attached an image so you can see my settings

    https://drive.google.com/file/d/1cHEJOFIcrdGh95YFsSNQqATTl83vQmsf/view?usp=sharing

    Thread Starter cronnoslogic

    (@cronnoslogic)

    I will also attach the LS Cache report:

    Server Variables
        SERVER_SOFTWARE = LiteSpeed
        DOCUMENT_ROOT = /home/webmasteredu/public_html
        X-LSCACHE = on
        LSWCP_TAG_PREFIX = d08
        WP_SITEURL = NULL
        WP_HOME = NULL
        WP_CONTENT_DIR = /home/webmasteredu/public_html/wp-content
        SHORTINIT = false
        LSCWP_CONTENT_DIR = /home/webmasteredu/public_html/wp-content
        LSCWP_CONTENT_FOLDER = wp-content
        LSCWP_DIR = /home/webmasteredu/public_html/wp-content/plugins/litespeed-cache/
        LITESPEED_TIME_OFFSET = -14400
        LITESPEED_SERVER_TYPE = LITESPEED_SERVER_ENT
        LITESPEED_CLI = NULL
        LITESPEED_ALLOWED = true
        LITESPEED_ON = true
        LITESPEED_ON_IN_SETTING = true
        LSCACHE_ADV_CACHE = true
    
    Wordpress Specific Extras
        wordpress version = 5.1.1
        siteurl = https://webmaster.edu.do
        home = https://webmaster.edu.do
        home_url = https://webmaster.edu.do
        locale = es_ES
        active theme = Ivy School Child
        active plugins = array (
      0 => 'anywhere-elementor/anywhere-elementor.php',
      1 => 'builderpress/builderpress.php',
      2 => 'elementor/elementor.php',
      3 => 'gravityforms/gravityforms.php',
      4 => 'instagram-feed/instagram-feed.php',
      5 => 'ivy-demo-data/ivy-demo-data.php',
      6 => 'learnpress-authorizenet-payment/learnpress-authorizenet-payment.php',
      7 => 'learnpress-co-instructor/learnpress-co-instructor.php',
      8 => 'learnpress-collections/learnpress-collections.php',
      9 => 'learnpress-content-drip/learnpress-content-drip.php',
      10 => 'learnpress-course-review/learnpress-course-review.php',
      11 => 'learnpress-mycred/learnpress-mycred.php',
      12 => 'learnpress-paid-membership-pro/learnpress-paid-memberships-pro.php',
      13 => 'learnpress-stripe/learnpress-stripe.php',
      14 => 'learnpress-wishlist/learnpress-wishlist.php',
      15 => 'learnpress-woo-payment/learnpress-woo-payment.php',
      16 => 'learnpress/learnpress.php',
      17 => 'litespeed-cache/litespeed-cache.php',
      18 => 'mailchimp-for-woocommerce/mailchimp-woocommerce.php',
      19 => 'mycred/mycred.php',
      20 => 'paid-memberships-pro/paid-memberships-pro.php',
      21 => 'revslider/revslider.php',
      22 => 'rocket-lazy-load/rocket-lazy-load.php',
      23 => 'thim-core/thim-core.php',
      24 => 'woocommerce-gateway-paypal-express-checkout/woocommerce-gateway-paypal-express-checkout.php',
      25 => 'woocommerce-services/woocommerce-services.php',
      26 => 'woocommerce/woocommerce.php',
      27 => 'wp-events-manager/wp-events-manager.php',
      28 => 'yikes-inc-easy-mailchimp-extender/yikes-inc-easy-mailchimp-extender.php',
    )
    
    LSCache Plugin Options
        version = 2.9.7
        radio_select = 1
        auto_upgrade = true
        purge_upgrade = true
        cache_priv = true
        cache_commenter = true
        cache_rest = true
        cache_page_login = true
        timed_urls = 
        timed_urls_time = 
        cache_favicon = true
        cache_resources = true
        mobileview_enabled = false
        mobileview_rules = Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi
        cache_object = true
        cache_object_kind = false
        cache_object_host = localhost
        cache_object_port = 11211
        cache_object_life = 360
        cache_object_persistent = true
        cache_object_admin = true
        cache_object_transients = true
        cache_object_db_id = 0
        cache_object_user = 
        cache_object_pswd = 
        cache_browser = true
        cache_browser_ttl = 2592000
        login_cookie = 
        check_advancedcache = true
        use_http_for_https_vary = false
        debug_disable_all = false
        debug = 0
        admin_ips = 127.0.0.1
        debug_level = false
        log_file_size = 3
        heartbeat = true
        debug_cookie = false
        collaps_qs = false
        log_filters = false
        public_ttl = 604800
        private_ttl = 1800
        front_page_ttl = 604800
        feed_ttl = 0
        403_ttl = 3600
        404_ttl = 3600
        500_ttl = 3600
        purge_by_post = -.A.D.F.H.M.PGS.PGSRP.PT.T.Y
        excludes_qs = 
        excludes_cat = 
        excludes_tag = 
        instant_click = false
        css_minify = true
        css_inline_minify = true
        css_combine = true
        css_combined_priority = true
        css_http2 = true
        css_exclude = 
        js_minify = true
        js_inline_minify = true
        js_combine = true
        js_combined_priority = false
        js_http2 = true
        js_exclude = 
        optimize_ttl = 604800
        html_minify = true
        optm_qs_rm = true
        optm_ggfonts_rm = false
        optm_css_async = false
        optm_ccss_gen = false
        optm_ccss_async = true
        optm_css_async_inline = true
        optm_js_defer = true
        optm_emoji_rm = false
        optm_exclude_jquery = true
        optm_ggfonts_async = true
        optm_max_size = 10
        optm_rm_comment = false
        cdn = true
        cdn_ori = 
        cdn_exclude = 
        cdn_remote_jquery = 1
        cdn_quic = false
        cdn_quic_email = 
        cdn_quic_key = 
        cdn_cloudflare = false
        cdn_cloudflare_email = 
        cdn_cloudflare_key = 
        cdn_cloudflare_name = 
        cdn_cloudflare_zone = 
        media_img_lazy = false
        media_img_lazy_placeholder = 
        media_placeholder_resp = false
        media_placeholder_resp_color = #cfd4db
        media_placeholder_resp_async = true
        media_iframe_lazy = false
        media_img_lazyjs_inline = true
        media_optm_auto = true
        media_optm_cron = true
        media_optm_ori = true
        media_rm_ori_bkup = false
        media_optm_webp = true
        media_optm_lossless = false
        media_optm_exif = false
        media_webp_replace = true
        media_webp_replace_srcset = false
        hash = A0tfj3AA4Uz72PlzqgEEMjglWIaAzb0B
        nocache_cookies = 
        nocache_useragents = 
        crawler_include_posts = true
        crawler_include_pages = true
        crawler_include_cats = true
        crawler_include_tags = false
        crawler_excludes_cpt = 
        crawler_order_links = date_desc
        crawler_usleep = 500
        crawler_run_duration = 400
        crawler_run_interval = 600
        crawler_crawl_interval = 302400
        crawler_threads = 3
        crawler_load_limit = 1
        crawler_domain_ip = 
        crawler_custom_sitemap = 
        crawler_cron_active = false
        esi_enabled = false
        esi_cached_admbar = true
        esi_cached_commform = true
        wc_update_interval = 0
        wc_shop_use_front_ttl = true
        woo_cache_cart = true
        litespeed-cache-vary-group = 
        litespeed-cache-exclude-optimization-roles = array (
      0 => 'administrator',
      1 => 'author',
      2 => 'lp_teacher',
    )
        litespeed-cache-exclude-cache-roles = array (
      0 => 'administrator',
    )
        litespeed-optm-css = 
        litespeed-optm-js-defer-excludes = 
        litespeed-media-lazy-img-excludes = 
        litespeed-media-lazy-img-cls-excludes = 
        litespeed-media-need-pull = pulled
        litespeed-env-ref = false
        litespeed-cache-drop_qs = 
        litespeed-cache-cdn_mapping = array (
      0 => 
      array (
        'url' => 'https://cdn.webmaster.edu.do/',
        'inc_img' => '1',
        'inc_css' => '1',
        'inc_js' => '1',
        'filetype' => '.aac
    .css
    .eot
    .gif
    .jpg
    .less
    .mp3
    .mp4
    .ogg
    .otf
    .pdf
    .png
    .svg
    .ttf
    .woff
    .js',
      ),
    )
        litespeed-cdn-ori_dir = wp-content
    wp-includes
    /min/
        litespeed-cache-dns_prefetch = https://webmaster.edu.do
        litespeed-cache-cloudflare_status = false
        litespeed-log_ignore_filters = gettext
    gettext_with_context
    get_the_terms
    get_term
        litespeed-log_ignore_part_filters = i18n
    locale
    settings
    option
        litespeed-object_global_groups = users
    userlogins
    usermeta
    user_meta
    site-transient
    site-options
    site-lookup
    blog-lookup
    blog-details
    rss
    global-posts
    blog-id-cache
        litespeed-object_non_persistent_groups = comment
    counts
    plugins
        litespeed-crawler-as-uids = 
        litespeed-crawler-cookies = array (
    )
        litespeed-adv-purge_all_hooks = switch_theme
    wp_create_nav_menu
    wp_update_nav_menu
    wp_delete_nav_menu
    create_term
    edit_terms
    delete_term
    add_link
    edit_link
    delete_link
        litespeed-forced_cache_uri = 
        litespeed-cache_uri_priv = 
        litespeed-optm_excludes = 
        litespeed-excludes_uri = 
        litespeed-media-webp_attribute = img.src
    div.data-thumb
    img.data-src
    div.data-large_image
    img.retina_logo_url
        litespeed-optm-ccss-separate_posttype = 
        litespeed-optm-css-separate_uri = 
    
    /home/webmasteredu/public_html/.htaccess contents:
    # Enable HSTS Security
    <IfModule mod_headers.c> 
    Header set Strict-Transport-Security "max-age=10886400; includeSubDomains; preload" 
    </IfModule>
    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule ^min/\w+\.(css|js) - [E=cache-control:no-vary]
    
    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###
    
    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    
    ### marker CORS start ###
    <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font\.css)$">
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
    </IfModule>
    </FilesMatch>
    ### marker CORS end ###
    
    ### marker WEBP start ###
    RewriteCond %{HTTP_ACCEPT} "image/webp" [or]
    RewriteCond %{HTTP_USER_AGENT} "Page Speed"
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    ### marker WEBP end ###
    
    </IfModule>
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END LSCACHE
    # BEGIN NON_LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    ### marker BROWSER CACHE start ###
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType application/pdf A2592000
    ExpiresByType image/x-icon A2592000
    ExpiresByType image/vnd.microsoft.icon A2592000
    ExpiresByType image/svg+xml A2592000
    
    ExpiresByType image/jpg A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType image/gif A2592000
    ExpiresByType image/webp A2592000
    
    ExpiresByType video/ogg A2592000
    ExpiresByType audio/ogg A2592000
    ExpiresByType video/mp4 A2592000
    ExpiresByType video/webm A2592000
    
    ExpiresByType text/css A2592000
    ExpiresByType text/javascript A2592000
    ExpiresByType application/javascript A2592000
    ExpiresByType application/x-javascript A2592000
    
    ExpiresByType application/x-font-ttf A2592000
    ExpiresByType application/x-font-woff A2592000
    ExpiresByType application/font-woff A2592000
    ExpiresByType application/font-woff2 A2592000
    ExpiresByType application/vnd.ms-fontobject A2592000
    ExpiresByType font/ttf A2592000
    ExpiresByType font/woff A2592000
    ExpiresByType font/woff2 A2592000
    
    </IfModule>
    ### marker BROWSER CACHE end ###
    
    ### marker MINIFY start ###
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\w+)\.(css|js)$
    RewriteCond %1/wp-content/cache/$2/$1.$2 -f
    RewriteRule min/(\w+)\.(css|js) wp-content/cache/$2/$1.$2 [L]
    </IfModule>
    ### marker MINIFY end ###
    
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    # END NON_LSCACHE
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    <IfModule mod_deflate.c>
      # Compress HTML, CSS, JavaScript, Text, XML and fonts
      AddOutputFilterByType DEFLATE application/javascript
      AddOutputFilterByType DEFLATE application/rss+xml
      AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
      AddOutputFilterByType DEFLATE application/x-font
      AddOutputFilterByType DEFLATE application/x-font-opentype
      AddOutputFilterByType DEFLATE application/x-font-otf
      AddOutputFilterByType DEFLATE application/x-font-truetype
      AddOutputFilterByType DEFLATE application/x-font-ttf
      AddOutputFilterByType DEFLATE application/x-javascript
      AddOutputFilterByType DEFLATE application/xhtml+xml
      AddOutputFilterByType DEFLATE application/xml
      AddOutputFilterByType DEFLATE font/opentype
      AddOutputFilterByType DEFLATE font/otf
      AddOutputFilterByType DEFLATE font/ttf
      AddOutputFilterByType DEFLATE image/svg+xml
      AddOutputFilterByType DEFLATE image/x-icon
      AddOutputFilterByType DEFLATE text/css
      AddOutputFilterByType DEFLATE text/html
      AddOutputFilterByType DEFLATE text/javascript
      AddOutputFilterByType DEFLATE text/plain
      AddOutputFilterByType DEFLATE text/xml
    
      # Remove browser bugs (only needed for really old browsers)
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
      Header append Vary User-Agent
    </IfModule>
    <ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </ifModule>
    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 3 month"
    ExpiresByType image/jpeg "access plus 3 month"
    ExpiresByType image/gif "access plus 3 month"
    ExpiresByType image/png "access plus 3 month"
    ExpiresByType text/css "access plus 3 month"
    ExpiresByType application/pdf "access plus 3 month"
    ExpiresByType text/x-javascript "access plus 3 month"
    ExpiresByType application/x-shockwave-flash "access plus 3 month"
    ExpiresByType image/x-icon "access plus 3 year"
    ExpiresDefault "access plus 14 days"
    </IfModule>
    ## EXPIRES CACHING ##
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    In your screenshot , the part “URLs originales” needs to be set by your main domain , like ” //webmaster.edu.do/”

    Best regards,

    Thread Starter cronnoslogic

    (@cronnoslogic)

    Thank you! The CDN is now working, however I have turned it off again because I am doing other tests on the site, the plugin is a success! Now I will try to do it but in another external hosting, I will see how it works.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Self Hosted CDN’ is closed to new replies.