Learn about Centmin Mod LEMP Stack today
Register Now

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

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  2. BobbyWibowo

    BobbyWibowo Active Member

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    11:04 AM
    1.17.x
    10.3.x
    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

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. BobbyWibowo

    BobbyWibowo Active Member

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    11:04 AM
    1.17.x
    10.3.x
    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

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    11:04 AM
    1.17.x
    10.3.x
  7. eva2000

    eva2000 Administrator Staff Member

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    520 so sounds like your site timed out or something

    yup :)
     
  8. BobbyWibowo

    BobbyWibowo Active Member

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    11:04 AM
    1.17.x
    10.3.x
    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

    197
    42
    28
    Jul 30, 2015
    Indonesia
    Ratings:
    +71
    Local Time:
    11:04 AM
    1.17.x
    10.3.x
  10. eva2000

    eva2000 Administrator Staff Member

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    2:04 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    great to hear :)