為了簡單共享文件,有些人使用svn,有些人使用ftp,但是更多得人使用索引 index 功能。apache得索引功能強大,並且也是最常見得,nginx得auto index實現得目錄索引偏少,而且功能非常簡單。先來看看我們得效果圖。 nginx auto index索引效果圖 nginx配置 location . autoindex on 開啟 autoindex localtime on 開啟顯 ...
2015-09-05 20:22 0 3363 推薦指數:
這篇文章主要介紹了Nginx中的root&alias文件路徑及索引目錄配置,順帶講解了root和alias命令的用法,需要的朋友可以參考下 root&alias文件路徑配置 ...
編譯:./configure --prefix=/usr/local/nginx --add-module=../ngx-fancyindex-master 配置: location / { fancyindex on; 開啟fancy索引 fancyindex_exact_size ...
server { listen 8888; # 監聽端口 server_name peer; # 服務名 charset utf-8; # 字符集,可處理中文亂碼 location / { autoindex on; # 開啟目錄瀏覽 ...
命令 默認值 值域 作用域 EG autoindex off on:開啟目錄瀏覽;off:關閉目錄瀏覽 http, server, location autoindex ...
https://segmentfault.com/a/1190000012606305 在項目中有一個功能需要在瀏覽器頁面中瀏覽服務器的目錄。服務器使用Nginx,而Nginx提供了相應的ngx_http_autoindex_module 模塊,該模塊提供了我們想要的功能。 Nginx ...
參考文章:https://blog.csdn.net/whatday/article/details/50649461 ...