Learn about Centmin Mod LEMP Stack 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

    8
    0
    1
    Nov 18, 2020
    Ratings:
    +0
    Local Time:
    6:13 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

    54,524
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    3:13 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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