{"id":1360,"date":"2023-03-19T09:52:09","date_gmt":"2023-03-19T01:52:09","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1360"},"modified":"2023-04-29T09:04:38","modified_gmt":"2023-04-29T01:04:38","slug":"nginx-enable-file-directory-list-display-function","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/19\/nginx-enable-file-directory-list-display-function\/","title":{"rendered":"Nginx\u5f00\u542f\u6587\u4ef6\u76ee\u5f55\u5217\u8868\u663e\u793a\u529f\u80fd"},"content":{"rendered":"<p>\u6700\u8fd1\u5728\u642d\u5efa\u57fa\u4e8eJenkins\u7684Android apk\u6301\u7eed\u96c6\u6210\u7f16\u8bd1\u73af\u5883\uff0c\u60f3\u8ba9Nginx\u663e\u793a\u751f\u6210apk\u4ea7\u7269\u7684\u6587\u4ef6\u76ee\u5f55\u5217\u8868\uff0c\u7ecf\u8fc7\u67e5\u9605\u8d44\u6599\uff0c\u53d1\u73b0\u8be5\u529f\u80fd\u9ed8\u8ba4\u662f\u5173\u95ed\u7684\uff0c\u9700\u8981\u624b\u52a8\u5f00\u542f\u3002<\/p>\n<p><!-- more --><\/p>\n<pre><code># vim \/data\/server\/nginx\/conf\/vhosts\/apks.conf\n\nautoindex on;\nautoindex_exact_size on;\nautoindex_localtime on;\n\n# nginx -s reload<\/code><\/pre>\n<ul>\n<li>autoindex on: \u5f00\u542f\u76ee\u5f55\u663e\u793a\u529f\u80fd<\/li>\n<li>autoindex_exact_size on: \u5f00\u542f\u6587\u4ef6\u5927\u5c0f\u8be6\u7ec6\u7edf\u8ba1\uff0c\u9ed8\u8ba4\u4e3ab\uff0c\u4ee5kb\u3001mb\u3001gb\u4e3a\u5355\u4f4d\u663e\u793a<\/li>\n<li>autoindex_localtime on: \u5f00\u542f\u4ee5\u670d\u52a1\u5668\u65f6\u533a\u663e\u793a\u6587\u4ef6\u4fee\u6539\u65e5\u671f<\/li>\n<\/ul>\n<blockquote>\n<p>\u6ce8\uff1a\u8be5\u4ee3\u7801\u53ef\u5728<code>http{}<\/code>\u3001<code>server{}<\/code>\u3001<code>location{}<\/code>\u4ee3\u7801\u5757\u663e\u793a<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5728\u642d\u5efa\u57fa\u4e8eJenkins\u7684Android apk\u6301\u7eed\u96c6\u6210\u7f16\u8bd1\u73af\u5883\uff0c\u60f3\u8ba9Nginx\u663e\u793a\u751f\u6210apk\u4ea7\u7269\u7684\u6587\u4ef6\u76ee [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[332],"tags":[],"class_list":["post-1360","post","type-post","status-publish","format-standard","hentry","category-nginx"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1360"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1360\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}