Join the community today
Become a Member

Nginx I'm trying to enable directory listing

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by urekmazino, Nov 18, 2020.

  1. urekmazino

    urekmazino New Member

    2
    0
    1
    Nov 18, 2020
    Ratings:
    +0
    Local Time:
    6:41 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version:
    • CentOS 7 64bit
    • Centmin Mod Version Installed:
    • 123.09beta01
    • Nginx Version Installed:
    • nginx/1.19.4
    • guys I'm trying to directory listing in my website but all i get is 403 forbidden , I'm using centmin mod

     
  2. eva2000

    eva2000 Administrator Staff Member

    45,661
    10,360
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,079
    Local Time:
    3:41 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Just set autoindex in the nginx location context you want as per Module ngx_http_autoindex_module
    Code (Text):
    location /directory {
      autoindex  on;
    }
    

    and then restart nginx service
    Code (Text):
    service nginx restart

    or via centmin mod command shortcut
    Code (Text):
    ngxrestart