Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch update fancyindex 0.3.6 nginx module

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 14, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:35 AM
    Nginx 1.13.x
    MariaDB 5.5
  2. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    5:35 AM
    I'm getting 520 HTTP error code when using fancyindex on a certain location.
    Code:
    location ^~ /random/path/deluge {
      alias /var/lib/deluge/Downloads;
      fancyindex on;
    }
    Any idea?
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:35 AM
    Nginx 1.13.x
    MariaDB 5.5
    what if you don't use alias ? has that syntax ever worked for you before ?

    502 or 520 ? 502 gateway timeout so backend timedout

    is that downloads php script based ? if so you need the php.conf include line too in the context location
     
    Last edited: Jun 13, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:35 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Winner Winner x 1
  5. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    5:35 AM
    Haven't tried. I needed to use alias because I simply wanted to list the entire content of Deluge's download directory. The built-in autoindex module worked just fine though.
    520. It was CloudFlare's though. And as CloudFlare stated here, 520 was like a "catch-all" error code, so I couldn't tell much. But if I remember correctly, it took half a minute or more for the page to finish loading, and once it finished loading, I simply got 520 error code from CloudFlare. I tried to check logs in /var/log/php-fpm (I'm on CentOS 7), but there was nothing that might have been related to that.
    No. It's just a simple directory. Deluge will store downloaded files to the directory, so everything in it is simply files that have been downloaded by Deluge. There are no PHP files, index.html or such. Only directories from multiple downloads.
     
  6. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    5:35 AM
  7. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:35 AM
    Nginx 1.13.x
    MariaDB 5.5
    520 so sounds like your site timed out or something

    yup :)
     
  8. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    5:35 AM
    Yeah, but I can't understand why. The built-in autoindex worked just fine, and the page loaded pretty fast.
    Alrighty then. I'll report back as soon as possible ;)
     
  9. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    5:35 AM
    • Like Like x 1
  10. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:35 AM
    Nginx 1.13.x
    MariaDB 5.5
    great to hear :)
     
    • Like Like x 1