Facebook Twitter Instagram YouTube LinkedIn WhatsApp
    Facebook Twitter Instagram LinkedIn WhatsApp
    ZaveRizwanZaveRizwan
    Subscribe
    • Home
    • Features
      • Example Post
      • Typography
      • Contact
      • View All On Demos
    • Mobiles
    • Typography
    • Mobiles
      • Tech
      • Gadgets
      • Insights
    • Buy Now
    ZaveRizwanZaveRizwan
    HTTP Pull

    How to setup CDN with LiteSpeed Cache?

    zaiveeBy zaiveeFebruary 6, 2023No Comments2 Mins Read

    In order to integrate your WordPress site with CDN please follow this article. For this you need to have a CNAME for your pull-zone, so that CDN can fetch the contents. Its set-up has been explained below.

    CNAME setup in the CDN For this guide, we’re going to assume you have already set up your CDN account, and you have a site (let’s call it example.com). Your Pull zone configuration screen should have an area for adding a CNAME record.

    The goal here is to set up a custom domain to be used only by the CDN. For example, cdn.example.com. Follow the CDN’s instructions for adding the CNAME record.

    Once that is complete, and the domain is active, we’ll be ready to tell WordPress how to proceed.

    LiteSpeed Cache CDN Settings Now that your CDN is set up and your static content is ready to be served by the CDN, you will need to let WordPress know about it. You can do this through LiteSpeed Cache. In your WordPress Dashboard, navigate to LiteSpeed Cache > Settings > CDN.

    • Set Enable CDN to ON.
    • Set CDN URL to http://cdn.example.com.
    • Set Original URL to //example.com.
    • The remaining settings can be used to let LSCWP know which static files will be served by your CDN.

    And that’s it! Once you save your changes, LiteSpeed Cache for WordPress will substitute the CDN URL for the Original URL in the static copies it saves of your dynamically-generated code, wherever appropriate.

    Related Posts

    How to enable IP Access security for Zones?

    February 6, 2023

    What is Origin Certificate Expiring Alert? How to resolve it?

    February 6, 2023

    How to accelerate my whole website?

    February 6, 2023
    Add A Comment

    Leave A Reply Cancel Reply

    © 2023 ZaveRizwan. Designed by ZaveRizwan.
    • Home
    • Tech
    • Gadgets
    • Mobiles
    • Buy Now

    Type above and press Enter to search. Press Esc to cancel.