[英]how can i list directories and its files using Nginx?
我想列出目錄及其文件
/Index
/Directories 1
1) File1.php
File2.php
File3.php
/Directories 2
1) File1.php
File2.php
File3.php
等等。
在服務器模塊中添加以下內容
location / {
autoindex on;
}
,並刪除該行或注釋
#index index.html index.php;
最后,重新啟動您的Nginx。
service nginx reload
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.