{"id":1913,"date":"2022-09-03T11:11:22","date_gmt":"2022-09-03T03:11:22","guid":{"rendered":"https:\/\/blog.kingsbestone.com\/?p=1913"},"modified":"2022-09-03T11:20:20","modified_gmt":"2022-09-03T03:20:20","slug":"nginx%e5%ae%89%e8%a3%85fancyindex%e6%a8%a1%e5%9d%97%e6%90%ad%e5%bb%ba%e7%b4%a2%e5%bc%95%e4%b8%8b%e8%bd%bd%e7%ab%99","status":"publish","type":"post","link":"https:\/\/blog.kingsbestone.com\/?p=1913","title":{"rendered":"NGINX\u5b89\u88c5FancyIndex\u6a21\u5757\u642d\u5efa\u7d22\u5f15\u4e0b\u8f7d\u7ad9"},"content":{"rendered":"<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u7ecf\u5e38\u53ef\u4ee5\u5728\u7f51\u4e0a\u9047\u5230\u4e00\u4e9b\u4e0b\u8f7d\u7ad9\u70b9\uff0c\u957f\u7684\u7c7b\u4f3c\u4e8e\u4e0b\u56fe\u8fd9\u6837\uff1a<\/span><\/p>\n<p><a href=\"http:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2022\/09\/Snipaste_2022-09-03_11-18-50.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1925\" src=\"http:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2022\/09\/Snipaste_2022-09-03_11-18-50.png\" alt=\"\" width=\"973\" height=\"795\" srcset=\"https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2022\/09\/Snipaste_2022-09-03_11-18-50.png 973w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2022\/09\/Snipaste_2022-09-03_11-18-50-300x245.png 300w, https:\/\/blog.kingsbestone.com\/wp-content\/uploads\/2022\/09\/Snipaste_2022-09-03_11-18-50-768x628.png 768w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4eca\u5929\u5c31\u5199\u4e00\u4e2a\u57fa\u4e8e\u5b9d\u5854\u7684\u642d\u5efa\u65b9\u6cd5\uff1a<\/span><\/p>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u642d\u5efa\u73af\u5883\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">centos7\u865a\u62df\u673a\u4e00\u53f0\uff08\u7eaf\u51c0\u7248\uff09<\/span><\/li>\n<\/ul>\n<hr \/>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e00\u3001\u9996\u5148\u767b\u5f55SSH\u4e3b\u673a\uff0c\u5b89\u88c5\u5b9d\u5854<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">yum install -y wget &amp;&amp; wget -O install.sh http:\/\/download.bt.cn\/install\/install_6.0.sh &amp;&amp; sh install.sh ed8484bec<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e8c\u3001\u7136\u540e\u4e0b\u8f7dFancyIndex\u6a21\u5757\u6e90\u7801\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">FancyIndex\u6a21\u5757\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/aperezdc\/ngx-fancyindex\/releases\" target=\"_blank\" rel=\"noopener\">Github<\/a><\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">Tip\uff1a\u4e0b\u8f7d\u4e86\u6e90\u7801\u5305\u540e\uff0c\u75287z\u538b\u7f29\u7a0b\u5e8f\u89e3\u538b2\u6b21\u5f97\u5230\u76ee\u5f55\u6587\u4ef6\u5939\u540e\uff0c\u518d\u628a\u6587\u4ef6\u538b\u7f29\u6210zip\u5305\u3002<\/span><\/p>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e09\u3001\u4e0a\u4f20FancyIndex\u6a21\u5757\u6e90\u7801\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e0a\u4f20\u5230\u76ee\u5f55\uff1a\/home<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5728\u6b64\u76ee\u5f55\u89e3\u538b<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u6a21\u5757\u6839\u76ee\u5f55\uff1a\/home\/ngx-fancyindex-0.5.2\/ngx-fancyindex-0.5.2<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u56db\u3001\u5207\u6362\u5230\u5b9d\u5854\u7684\u5e94\u7528\u5546\u5e97\uff0c\u627e\u5230NGINX\uff0c\u70b9\u51fb\u5b89\u88c5\uff0c\u9009\u62e9\u7f16\u8bd1\u5b89\u88c5\uff0c\u7248\u672c\u90091.22<\/span><\/p>\n<ul>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u5b89\u88c5\u65f6\u518d\u9009\u62e9\uff0c\u6dfb\u52a0\u81ea\u5b9a\u4e49\u6a21\u5757<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u6a21\u5757\u540d\u79f0\uff1aFancyIndex<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u6a21\u5757\u63cf\u8ff0\uff1aFancyIndex\u6a21\u5757<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u6a21\u5757\u53c2\u6570\uff1a&#8211;add-module=\/home\/ngx-fancyindex-0.5.2\/ngx-fancyindex-0.5.2<\/span><\/li>\n<li><span style=\"font-family: 'comic sans ms', sans-serif;\">\u524d\u7f6e\u811a\u672c\uff1anull<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u7136\u540e\u5c31\u53ef\u4ee5\u70b9\u51fb\u63d0\u4ea4\u4e86\u3002<\/span><\/p>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e94\u3001\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5f00\u59cb\u521b\u5efa\u4e00\u4e2a\u9759\u6001\u7f51\u7ad9\u3002<\/span><\/p>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u516d\u3001\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u8bbe\u7f6e\uff0c\u627e\u5230\u9ed8\u8ba4\u6587\u6863\u628a\u4e0b\u9762\u7684\u53c2\u6570\u90fd\u5220\u6389\uff0c\u66ff\u6362\u6210\uff1a1.html<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">index.php\r\nindex.html\r\nindex.htm\r\ndefault.php\r\ndefault.htm\r\ndefault.html<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u4e03\u3001\u4fee\u6539\u7f51\u9875\u4f2a\u9759\u6001\u4e3a\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">location \/ {\r\n    #\u4e0b\u9762\u586b\u5199\u7ad9\u70b9\u7684\u51c6\u786e\u76ee\u5f55\r\n    root \/www\/wwwroot\/test;\r\n    #\u5f00\u542ffancyindex\u6a21\u5757\r\n    fancyindex on;\r\n    #\u4e2d\u6587\u4e71\u7801\uff0c\u8bbe\u7f6e\u7f16\u7801\u6a21\u5f0f\u4e3a\uff1aUTF-8\r\n    charset utf-8;\r\n    #\u4e0d\u663e\u793a\u7cbe\u786e\u6587\u4ef6\u5927\u5c0f\r\n    fancyindex_exact_size off;\r\n    #\u8bbe\u7f6e\u6587\u4ef6\u65e5\u671f\r\n    fancyindex_time_format \"%Y-%m-%d %H:%M\";\r\n    #\u8bbe\u7f6e\u6587\u5b57\u663e\u793a\u5b57\u6570\r\n    fancyindex_name_length 200;\r\n}<\/pre>\n<p><span style=\"font-family: 'comic sans ms', sans-serif;\">\u516b\u3001\u5b8c\u6210<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ecf\u5e38\u53ef\u4ee5\u5728\u7f51\u4e0a\u9047\u5230\u4e00\u4e9b\u4e0b\u8f7d\u7ad9\u70b9\uff0c\u957f\u7684\u7c7b\u4f3c\u4e8e\u4e0b\u56fe\u8fd9\u6837\uff1a &nbsp; \u4eca\u5929\u5c31\u5199\u4e00\u4e2a\u57fa\u4e8e\u5b9d\u5854\u7684\u642d\u5efa\u65b9\u6cd5\uff1a \u642d\u5efa\u73af\u5883\uff1a centos7\u865a\u62df\u673a\u4e00\u53f0\uff08\u7eaf\u51c0\u7248\uff09 \u4e00\u3001\u9996\u5148\u767b\u5f55SSH\u4e3b\u673a\uff0c\u5b89\u88c5\u5b9d\u5854 yum install -y wget &amp;&amp; wget -O install.sh http:\/\/download.bt &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"NGINX\u5b89\u88c5FancyIndex\u6a21\u5757\u642d\u5efa\u7d22\u5f15\u4e0b\u8f7d\u7ad9\" class=\"read-more button\" href=\"https:\/\/blog.kingsbestone.com\/?p=1913#more-1913\" aria-label=\"\u66f4\u591a NGINX\u5b89\u88c5FancyIndex\u6a21\u5757\u642d\u5efa\u7d22\u5f15\u4e0b\u8f7d\u7ad9\">\u67e5\u770b\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":212,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/1913"}],"collection":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1913"}],"version-history":[{"count":13,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/1913\/revisions"}],"predecessor-version":[{"id":1928,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/posts\/1913\/revisions\/1928"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=\/wp\/v2\/media\/212"}],"wp:attachment":[{"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kingsbestone.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}