{"id":292,"date":"2023-02-24T21:57:06","date_gmt":"2023-02-24T13:57:06","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=292"},"modified":"2023-04-30T15:11:24","modified_gmt":"2023-04-30T07:11:24","slug":"method-of-hiding-nginx-version","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/24\/method-of-hiding-nginx-version\/","title":{"rendered":"\u9690\u85cfNginx\u7248\u672c\u53f7\u7684\u65b9\u6cd5"},"content":{"rendered":"<p>Nginx\u7248\u672c\u53f7\u9ed8\u8ba4\u662f\u6253\u5f00\u7684\uff0c\u53ef\u4ee5\u5728\u9ed8\u8ba4\u7684\u9519\u8bef\u9875\u9762\u548chttp\u54cd\u5e94\u5934\u4e2d\u67e5\u770b\u5230<\/p>\n<pre><code># vim \/usr\/local\/nginx\/conf\/nginx.conf\n\nhttp {\n    server_tokens off;        # \u627e\u5230server_tokens\u5e76\u8bbe\u7f6e\u4e3aoff\n}<\/code><\/pre>\n<p><!-- more --><\/p>\n<pre><code># vim \/usr\/local\/nginx\/conf\/fastcgi.conf\n\nfastcgi_param SERVER_SOFTWARE nginx\/$nginx_version;\n# \u6539\u4e3a\uff1a\nfastcgi_param SERVER_SOFTWARE nginx;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nginx\u7248\u672c\u53f7\u9ed8\u8ba4\u662f\u6253\u5f00\u7684\uff0c\u53ef\u4ee5\u5728\u9ed8\u8ba4\u7684\u9519\u8bef\u9875\u9762\u548chttp\u54cd\u5e94\u5934\u4e2d\u67e5\u770b\u5230 # vim \/usr\/local\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[25],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-devops-base","tag-nginx"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/292","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=292"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}