Join the community today
Become a Member

Is it okay for browse the directory for visitors?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by rc112, Mar 3, 2018.

  1. rc112

    rc112 Member

    126
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    5:39 AM
    @eva2000 While searching for a topic on google, I bumped into this. Is it okay for browse the directory? Thank you.

    Files...
     

    Attached Files:

  2. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,401
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,446
    Local Time:
    7:39 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yes that is as intendeded as I have fancy nginx indexes and autoindex enabled so directory can be browsed :)

    When centmin mod installs or downloads some files from local hosted domain or when fallback download url is used, they are downloaded from centminmod.com Files... hosted files :)
     
  3. rc112

    rc112 Member

    126
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    5:39 AM
    haha So much to learn. As a business owner, I am thinking of whether I should hand sever management over to the hosting companys and choose managed hosting. I like to learn this stuff though. Just talking to myself. :D
     
  4. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,401
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,446
    Local Time:
    7:39 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    learning is always good.. without it, we'll all be still crawling on all fours and wouldn't know how to read or write :)
     
    • Winner Winner x 1
  5. rc112

    rc112 Member

    126
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    5:39 AM
    Thank your for the words. :)
     
  6. JoeDer

    JoeDer Premium Member Premium Member

    50
    11
    8
    Feb 22, 2015
    Ratings:
    +34
    Local Time:
    12:39 AM
    Nginx 1.17.x
    MariaDB 10.3.x
    Hey @eva2000 :) To enable FancyIndex like your index we have to:

    1. Add in customconfig:
    Code:
    NGXDYNAMIC_FANCYINDEX='y'
    2. Recompile nginx

    3. Add in /usr/local/nginx/conf/conf.d/domain.com.conf
    Code:
    location / {
    ...
    # Enable fancy indexes
    fancyindex on;
    
    # Output human-readable file sizes
    fancyindex_exact_size off;
    ...
    
    ?

    The result is a little different than yours.
    Index of  .png
    Are these the right steps to do and is it something else I need to looks like yours?
     
  7. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,401
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,446
    Local Time:
    7:39 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    pretty much, I have custom templates for changing theme/layout

    Code (Text):
        fancyindex on;
        fancyindex_name_length 65;
        fancyindex_localtime on; #on for local time zone. off for GMT
        fancyindex_exact_size on; #off for human-readable. on for exact size in bytes
        fancyindex_header "/fancy-index/header.html";
        fancyindex_footer "/fancy-index/footer.html";
        fancyindex_ignore "fancy-index"; #ignore this directory when showing list 
    
     
    • Informative Informative x 2