html file within our www directory sudo nano www index. Based on the above command, a simple Nginx browse directory is configured as follows location download root homemapwww; Specify the path to the directory autoindex on; Open Catalog Browsing autoindexformat html; Show directories in browsers in html style autoindexexactsize off; After switching to off, display file size in.
The ngxhttprandomindexmodule module processes requests ending with the slash character () and picks a random file in a directory to serve as an index file.
This file is maintained by Nginx package maintainers and it is recommended that administrators avoid editing this file unless they also follow changes made by upstream.
Mar 15, 2020 If you&39;re using Nginx as a web server and want to display an Nginx directory index listing when navigating to a particular directory, then you have a couple of options.