Want to subscribe to topics you're interested in?
Become a Member

Xenforo XenForo 2.1 CDN using Cloudflare free plan :D

Discussion in 'Forum software usage' started by rdan, Oct 7, 2019.

  1. pdinh97qng

    pdinh97qng Member

    121
    15
    18
    Jan 24, 2016
    Ratings:
    +39
    Local Time:
    11:51 AM
    @rdan can you share your nginx with filter module, i tried but not working.

     
  2. rdan

    rdan Well-Known Member

    5,439
    1,399
    113
    May 25, 2014
    Ratings:
    +2,188
    Local Time:
    3:51 AM
    Mainline
    10.2
    Something like this:
    Code:
        ### Sub Filter
        sub_filter_last_modified on;
        sub_filter_once off;
    
        sub_filter 'src="/proxy.php' 'src="https://xf2-cdn.net/proxy.php';
        sub_filter 'src="/styles/'   'src="https://xf2-cdn.net/styles/';
    
        sub_filter 'href="https://xf2.com/attachments/' 'href="https://xf2-cdn.net/attachments/';
        sub_filter 'src="https://xf2.com/attachments/'   'src="https://xf2-cdn.net/attachments/';
    
     
  3. pdinh97qng

    pdinh97qng Member

    121
    15
    18
    Jan 24, 2016
    Ratings:
    +39
    Local Time:
    11:51 AM
    Thanks, some how I did the same last time but doesn't work.
     
  4. rdan

    rdan Well-Known Member

    5,439
    1,399
    113
    May 25, 2014
    Ratings:
    +2,188
    Local Time:
    3:51 AM
    Mainline
    10.2
    Put it above all your location block.
    Under server block.
     
  5. pdinh97qng

    pdinh97qng Member

    121
    15
    18
    Jan 24, 2016
    Ratings:
    +39
    Local Time:
    11:51 AM
    Got it, I also need to disable gzip in XF configuration.
     
  6. rdan

    rdan Well-Known Member

    5,439
    1,399
    113
    May 25, 2014
    Ratings:
    +2,188
    Local Time:
    3:51 AM
    Mainline
    10.2
    Ah yeah I have that disabled years ago.