Join the community 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 RoldanLT, Apr 5, 2015.

  1. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    8:02 PM
    1.11
    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

    29,041
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    10:02 PM
    Nginx 1.13.x
    MariaDB 5.5
    what do you mean not working ?
     
  3. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    8:02 PM
    1.11
    10.2
    All file attachment downloaded with "download" file name without extension.
    upload_2015-4-5_8-35-35.png
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,041
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    10:02 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1
  5. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    8:02 PM
    1.11
    10.2
  6. eva2000

    eva2000 Administrator Staff Member

    29,041
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    10:02 PM
    Nginx 1.13.x
    MariaDB 5.5
    you're on your own there never used that addon
     
  7. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    8:02 PM
    1.11
    10.2
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    29,041
    6,590
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,785
    Local Time:
    10:02 PM
    Nginx 1.13.x
    MariaDB 5.5
    Glad it helped :)
     
    • Winner Winner x 1