• Resolved jpprietobaez

    (@jpprietobaez)


    Hi there,

    Tried CDN Enabler in a development site and worked just fine with an Alias zone and Let’s Encrypt enabled.

    Now I’m trying to get it to work on the live site without any luck. For some reason the urls are not being replaced regardless of what zone URL I use. I tried purging both Redis and Nginx caches and still nothing. It’s almost as if the plugin isn’t even installed!

    Any pointers would be appreciated.

    https://www.ads-software.com/plugins/cdn-enabler/

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter jpprietobaez

    (@jpprietobaez)

    @huguesbrunelle:

    Sure: add this inside the Server{} block on your site’s .conf file

    # Redirects traffic to KeyCDN;
        subs_filter https://x.x/wp-content/uploads https://cdn.x.x/wp-content/uploads;
        subs_filter https://x.x/wp-content https://cdn.x.x/wp-content;
        #.....

    Extract from EasyEngine’s forum:

    CDN

    CDN is very simple.

    I just added a line to rtcamp.com’s nginx config to get CDN working.

    subs_filter https://rtcamp.com/wp-content/uploads/ https://rtcamp.r.worldssl.net/wp-content/uploads/;
    Please note that above works for origin pull/mirror style CDN e.g. Amazon cloudfront. Not for push/storage style cdn e.g. Amazon S3.

    All we need is CDN domain. I guess nginx-helper can have input field for CDN domain and write a config line like above in a predefined file e.g. /var/www/example.com/conf/nginx/cdn.conf.
    EE can monitor that file location and reload nginx config to get CDN working.

    Hey thx @jpprietobaez

    It seems to work. Great solution without plugin ??

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘URLs not getting replaced’ is closed to new replies.