win10 編譯 nginx 添加 fancy-index模塊


所需工具及庫

    鏈接:https://pan.baidu.com/s/1FTmU7cNQVfPzRccpgfGRBQ 

    提取碼:sg5v 

 

開啟目錄索引

    

# 添加美化插件后的參數
location / {
    alias	                /data/wwwroot/download/;
    autoindex               on;
    autoindex_exact_size    off;
    autoindex_localtime     on;
    charset                 utf-8; # 如果中文有亂碼,可配置為:gbk,utf-8
    
    fancyindex              on; # 啟用插件
    fancyindex_localtime    on; # 使用本地時間
    fancyindex_exact_size   off; # 是否使用精確的大小,on顯示字節,off顯示如 M 這種

    fancyindex_footer       "/fancy-theme/footer.html"; # 主題頁腳文件
    fancyindex_header       "/fancy-theme/header.html"; # 主題頭部文件
    fancyindex_ignore       "example.html"; # 忽略顯示的文件名稱
    fancyindex_ignore       "fancy-theme";  # 忽略顯示的目錄
    fancyindex_name_length  255;
    fancyindex_time_format  "%Y-%m-%d %H:%M";
}

 

 

文件下載:

    nginx-1.18.0 (win) 已添加fancy-index模塊

    鏈接:https://pan.baidu.com/s/1e2EPVLa-nth9rTfQwPTdlw 

    提取碼:6lzm 

 

參考資料:

    https://blog.csdn.net/zhuquanfu/article/details/101055011?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-3.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-3.control

 

    https://blog.csdn.net/longji/article/details/52369618

 

主題美化

    https://blog.xinac.cn/archives/nginx-fancy-index.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM