Welcome to Centmin Mod Community
Register Now

Xenforo X-Accel-Redirect Nginx Configuration help for Xenforo

Discussion in 'Forum software usage' started by Sunka, Feb 2, 2016.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    58,910
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yup

     
  2. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Let try it :)
     
  3. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Attachments load Ok, but I do not know is it working or not.
    In Xon addon, you know that addon working OK if Etag is not just numbers but mixed letters and numbers.

    With this addon, it just numbers

    Untitled.png
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,910
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    need to ask addon developer
     
  5. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    I will unistall this. So much effort for nothing :(
     
  6. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    10:46 PM
    1.15.x
    MariaDB 10.3.x
    This is expected, and that is actually default XF behaviour. It means the Etag is being passed out and handled by the X-Accel-Redirect bits correctly.
     
  7. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    And without any addon (default xenforo) is only numbers, isn't it?
    But with your addon is different.
     
  8. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    10:46 PM
    1.15.x
    MariaDB 10.3.x
    Then something is wrong in your nginx configuration, troubleshooting it is difficult with only pieces being posted due to how nginx can evaluate each location block.

    Please note; I'm not going to be able to check replies for another 8-9 hours.
     
  9. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    I am not able to confgure this, so I give up :unsure:
    Thanks for trying to help
     
  10. eva2000

    eva2000 Administrator Staff Member

    58,910
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    If you want to offload attachment downloads from php, you can also use [bd] attachment store to move attachments to /data directory so like XAR addon, nginx serves the actual attachment download. That's what i do on this forum :)

    bd attachment store saves attached images with their image extension name intact so ngx_pagespeed and optimise attached images and even auto convert to webp for smaller file sizes

    upload_2016-2-2_20-43-36.png
     
  11. eva2000

    eva2000 Administrator Staff Member

    58,910
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  12. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    This commands:
    Code:
    git clone https://code.google.com/p/zopfli/
    cd zopfli
    make
    chmod +x zopfli
    export PATH=$PATH:/path/to/zopfli/folder
    And then add/change this in some nginx file (which one?):
    Code:
    gzip_static on;
     
  13. eva2000

    eva2000 Administrator Staff Member

    58,910
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    no no use irfanview app on your pc to optimise screenshots before you upload or attach to posts
     
  14. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Ah, that is users attachments
     
  15. eva2000

    eva2000 Administrator Staff Member

    58,910
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yes.. or just any images in general :)
     
  16. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    too many errors and conflicts (I read all thread for this addon on xenforo forum), so I am not so sure to install addon on my server. I have 10 gb of resources files
     
  17. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    I optimise my pictures, but I can not act to users pictures.
     
  18. eva2000

    eva2000 Administrator Staff Member

    58,910
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah for your own uploads here so i am not serving large and slow images on the forums ;)
    for bd attachment addon ?
     
  19. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    4:46 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    yep
     
  20. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    10:46 PM
    Mainline
    10.2
    I thought having alpha numeric header means correctly implemented?
    [​IMG]