banner
ECSS11

Kita ☆ Kita ☆

试试 Xlog 做博客(并把好久之前写的老文章搬过来)之每年都要换一个网站,也不知道何时是个头。

Enable file browsing in Nginx

The file browsing feature is implemented using the ngx_http_autoindex_module module, with few optional configuration items.

location / {
    root /path/to/folder/;  
    autoindex on | off;   # Enable nginx directory browsing feature
    autoindex_exact_size on | off;   # File size format
    autoindex_localtime on | off;   # Whether the server uses local time
}

In practical use, it is recommended to use location in conjunction with routing access.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.