{"id":1326,"date":"2008-07-17T00:23:33","date_gmt":"2008-07-17T00:23:33","guid":{"rendered":"http:\/\/www.icocean.com\/blog\/?p=1326"},"modified":"1970-01-01T07:00:00","modified_gmt":"1970-01-01T07:00:00","slug":"%E5%A6%82%E4%BD%95%E9%9A%90%E8%97%8F%E5%92%8C%E4%BC%AA%E8%A3%85apache%E7%9A%84%E7%89%88%E6%9C%AC","status":"publish","type":"post","link":"https:\/\/www.icocean.com\/blog\/?p=1326","title":{"rendered":"\u5982\u4f55\u9690\u85cf\u548c\u4f2a\u88c5Apache\u7684\u7248\u672c"},"content":{"rendered":"<p>6.3.2&nbsp;&nbsp;\u9690\u85cf\u548c\u4f2a\u88c5Apache\u7684\u7248\u672c<br \/>\u901a\u5e38\uff0c\u8f6f\u4ef6\u7684\u6f0f\u6d1e\u4fe1\u606f\u548c\u7279\u5b9a\u7248\u672c\u662f\u76f8\u5173\u7684\uff0c\u56e0\u6b64\uff0c\u7248\u672c\u53f7\u5bf9\u9ed1\u5ba2\u6765\u8bf4\u662f\u6700\u6709\u4ef7\u503c\u7684\u3002<br \/>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u7cfb\u7edf\u4f1a\u628aApache\u7248\u672c\u6a21\u5757\u90fd\u663e\u793a\u51fa\u6765\uff08http\u8fd4\u56de\u5934\uff09\u3002\u5982\u679c\u5217\u4e3e\u76ee\u5f55\u7684\u8bdd\uff0c\u4f1a\u663e\u793a\u57df\u540d\u4fe1\u606f\uff08\u6587\u4ef6\u5217\u8868\u6b63\u6587\uff09\uff0c\u53bb\u9664Apache\u7248\u672c\u53f7\u7684\u65b9\u6cd5\u662f\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\/etc\/httpd.conf\u3002\u627e\u5230\u5173\u952e\u5b57ServerSignature\uff0c\u5c06\u5176\u8bbe\u5b9a\u4e3a\uff1a<\/p>\n<div class=\"quote\">\n<div class=\"quote-title\"><\/div>\n<div class=\"quote-content\">ServerSignature Off<br \/>ServerTokens Prod&nbsp;&nbsp;&nbsp;&nbsp;<\/div>\n<\/div>\n<p>\u7136\u540e\u91cd\u65b0\u542f\u52a8Apache\u670d\u52a1\u5668\u3002<br \/>\u901a\u8fc7\u5206\u6790Web\u670d\u52a1\u5668\u7684\u7c7b\u578b\uff0c\u5927\u81f4\u53ef\u4ee5\u63a8\u6d4b\u51fa\u64cd\u4f5c\u7cfb\u7edf\u7684\u7c7b\u578b\uff0c\u6bd4\u5982\uff0cWindows\u4f7f\u7528IIS\u6765\u63d0\u4f9bHTTP\u670d\u52a1\uff0c\u800cLinux\u4e2d\u6700\u5e38\u89c1\u7684\u662fApache\u3002<br \/>\u9ed8\u8ba4\u7684Apache\u914d\u7f6e\u91cc\u6ca1\u6709\u4efb\u4f55\u4fe1\u606f\u4fdd\u62a4\u673a\u5236\uff0c\u5e76\u4e14\u5141\u8bb8\u76ee\u5f55\u6d4f\u89c8\u3002\u901a\u8fc7\u76ee\u5f55\u6d4f\u89c8\uff0c\u901a\u5e38\u53ef\u4ee5\u83b7\u5f97\u7c7b\u4f3c\u201cApache\/1.3.27 Server at apache.linuxforum.net Port 80\u201d\u6216\u201cApache\/2.0.49 (Unix) PHP\/4.3.8\u201d\u7684\u4fe1\u606f\u3002<!--more--><br \/>\u901a\u8fc7\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684ServerTokens\u53c2\u6570\uff0c\u53ef\u4ee5\u5c06Apache\u7684\u76f8\u5173\u4fe1\u606f\u9690\u85cf\u8d77\u6765\u3002\u4f46\u662f\uff0cRed Hat Linux\u8fd0\u884c\u7684Apache\u662f\u7f16\u8bd1\u597d\u7684\u7a0b\u5e8f\uff0c\u63d0\u793a\u4fe1\u606f\u88ab\u7f16\u8bd1\u5728\u7a0b\u5e8f\u91cc\uff0c\u8981\u9690\u85cf\u8fd9\u4e9b\u4fe1\u606f\u9700\u8981\u4fee\u6539Apache\u7684\u6e90\u4ee3\u7801\uff0c\u7136\u540e\uff0c\u91cd\u65b0\u7f16\u8bd1\u5b89\u88c5\u7a0b\u5e8f\uff0c\u4ee5\u66ff\u6362\u91cc\u9762\u7684\u63d0\u793a\u5185\u5bb9\u3002<br \/>\u4ee5Apache 2.0.50\u4e3a\u4f8b\uff0c\u7f16\u8f91ap_release.h\u6587\u4ef6\uff0c\u4fee\u6539\u201c#define AP_SERVER_BASEPRODUCT &#92;&#8221;Apache&#92;&#8221;\u201d\u4e3a\u201c#define AP_SERVER_BASEPRODUCT &#92;&#8221;Microsoft-IIS\/5.0&#92;&#8221;\u201d\u3002\u7f16\u8f91os\/unix\/os.h\u6587\u4ef6\uff0c\u4fee\u6539\u201c#define PLATFORM &#92;&#8221;Unix&#92;&#8221;\u201d\u4e3a\u201c#define PLATFORM &#92;&#8221;Win32&#92;&#8221;\u201d\u3002\u4fee\u6539\u5b8c\u6bd5\u540e\uff0c\u91cd\u65b0\u7f16\u8bd1\u3001\u5b89\u88c5Apache\u3002<br \/>Apache\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4fee\u6539httpd.conf\u914d\u7f6e\u6587\u4ef6\uff0c\u5c06\u201cServerTokens Full\u201d\u6539\u4e3a\u201cServerTokens Prod\u201d\uff1b\u5c06\u201cServerSignature On\u201d\u6539\u4e3a\u201cServerSignature Off\u201d\uff0c\u7136\u540e\u5b58\u76d8\u9000\u51fa\u3002\u91cd\u65b0\u542f\u52a8Apache\u540e\uff0c\u7528\u5de5\u5177\u8fdb\u884c\u626b\u63cf\uff0c\u53d1\u73b0\u63d0\u793a\u4fe1\u606f\u4e2d\u5df2\u7ecf\u663e\u793a\u64cd\u4f5c\u7cfb\u7edf\u4e3aWindows\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>6.3.2&nbsp;&nbsp;\u9690\u85cf\u548c\u4f2a\u88c5Apache\u7684\u7248\u672c\u901a\u5e38\uff0c\u8f6f\u4ef6\u7684\u6f0f\u6d1e\u4fe1\u606f\u548c\u7279\u5b9a\u7248\u672c\u662f\u76f8\u5173\u7684\uff0c\u56e0\u6b64\uff0c\u7248 <a href='https:\/\/www.icocean.com\/blog\/?p=1326' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[638,1721,398,900],"class_list":["post-1326","post","type-post","status-publish","format-standard","hentry","category-lamp","tag-apache","tag-1721","tag-398","tag-900","category-24-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1326"}],"version-history":[{"count":0,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1326\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}