Learn about Centmin Mod LEMP Stack today
Register Now

Xenforo I created my own static/cdn sub domain, now I got problems with xenforo attachments

Discussion in 'Forum software usage' started by rdan, Apr 5, 2015.

  1. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    4:20 AM
    Mainline
    10.2
    Here's my latest config:
    Code:
    server {
        listen 80;
        server_name static.phcorner.net;
    
        # ngx_pagespeed & ngx_pagespeed handler
        include /usr/local/nginx/conf/pagespeed_phcorner.conf;
        include /usr/local/nginx/conf/pagespeedhandler.conf;
        include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
        log_not_found off;
        error_log off;
        root /home/nginx/domains/phcorner.net/public;
    
        location / {
            if ($request_filename ~ "\.(css|js|jpg|jpeg|gif|ico|png|bmp|pict|csv|doc|pdf|pls|ppt|tif|tiff|eps|ejs|swf|midi|mid|ttf|eot|woff|otf|svg|svgz|webp|docx|xlsx|xls|pptx|ps|class|jar)$") {
                    add_header Cache-Control "public, must-revalidate, proxy-revalidate";
            access_log off;
            expires 30d;
            break;
                    }
            return 301 http://www.phcorner.net$request_uri;
            }
    }
    But, XenForo attachment not working now :(
    Any advice? Thanks!
     
  2. eva2000

    eva2000 Administrator Staff Member

    40,661
    9,033
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,907
    Local Time:
    6:20 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    what do you mean not working ?
     
  3. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    4:20 AM
    Mainline
    10.2
    All file attachment downloaded with "download" file name without extension.
    upload_2015-4-5_8-35-35.png
     
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. eva2000

    eva2000 Administrator Staff Member

    40,661
    9,033
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,907
    Local Time:
    6:20 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Informative Informative x 1
  5. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    4:20 AM
    Mainline
    10.2
  6. eva2000

    eva2000 Administrator Staff Member

    40,661
    9,033
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,907
    Local Time:
    6:20 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    you're on your own there never used that addon
     
  7. rdan

    rdan Well-Known Member

    4,549
    1,090
    113
    May 25, 2014
    Ratings:
    +1,591
    Local Time:
    4:20 AM
    Mainline
    10.2
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    40,661
    9,033
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,907
    Local Time:
    6:20 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Glad it helped :)
     
    • Winner Winner x 1