Discover Centmin Mod today
Register Now

Nginx fancyindex nginx module customisation

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by BobbyWibowo, Jun 19, 2016.

  1. BobbyWibowo

    BobbyWibowo Active Member

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

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    8:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    I also use same theme too for fancyindex :D

    in fancyindex 0.4.0 module there is no such variable found via grep at least
    Code (Text):
    grep 'NGX_HTTP_FANCYINDEX_NAME_LEN' /svr-setup/ngx-fancyindex-0.4.0/ngx_http_fancyindex_module.c

    because there's now an nginx variable to control size
     
    • Informative Informative x 1
  3. BobbyWibowo

    BobbyWibowo Active Member

    166
    36
    28
    Jul 30, 2015
    Medan, Indonesia
    Ratings:
    +57
    Local Time:
    5:42 AM
    Ah, what a coincidence :D

    And thanks, the following works properly :)
    Code:
    location ^~ /path/to/deluge/downloads {
      alias /var/lib/deluge/Downloads;
      include /usr/local/nginx/conf/fancyindex.conf;
      fancyindex_name_length 500;
    }
    Though I suppose it'd have been somewhat better to edit the fancyindex.conf instead, but ehh, at least it works :D
     
    • Like Like x 1