{"id":25411,"date":"2009-09-24T21:56:55","date_gmt":"2009-09-24T13:56:55","guid":{"rendered":"http:\/\/www.kaiyannju.cn\/?p=25411"},"modified":"2009-09-24T21:56:55","modified_gmt":"2009-09-24T13:56:55","slug":"%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac","status":"publish","type":"post","link":"http:\/\/yankay.com\/%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac\/","title":{"rendered":"\u7ec8\u4e8e\u89e3\u51b3\u4e86Apache\u4e71\u7801\u95ee\u9898(\u8f6c)"},"content":{"rendered":"

\u539f\u6587\u5730\u5740\uff1ahttp:\/\/alexpress.blog.163.com\/blog\/static\/10718752008115798918\/<\/a><\/p>\n

\n

<\/a><\/p>\n

\u4e4b\u524d\u5f00\u653e\u4e86\u4e00\u4e2a\u7a7a\u95f4\uff0c\u7ed9\u7f51\u53cb\u63d0\u4f9b\u7535\u53f0\u8282\u76ee\u97f3\u9891\u4e0b\u8f7d\u3002\u7531\u4e8e\u591a\u5e74\u8282\u76ee\u7684\u6587\u4ef6\u6570\u91cf\u751a\u591a\uff0c\u4e14\u5206\u7c7b\u6ca1\u6709\u7279\u5b9a\u683c\u5f0f\uff0c\u56fe\u7701\u4e8b\uff0c\u6ca1\u6709\u5236\u4f5c\u7f51\u9875\u63d0\u4f9b\u5206\u7c7b\u4e0b\u8f7d\uff0c\u800c\u662f\u76f4\u63a5\u5229\u7528Apache\u7684\u76ee\u5f55\u6d4f\u89c8\u529f\u80fd\uff0c\u7b80\u5355\u76f4\u89c2\u3002<\/p>\n

\u4e0d\u8fc7\uff0c\u6240\u5728\u7684\u7f8e\u56fd\u670d\u52a1\u5668\u9ed8\u8ba4Apache\u7f16\u7801\u8bbe\u7f6e\u4e3aISO-8859-1\uff0c\u4f7f\u5f97\u4e2d\u6587\u6587\u4ef6\u540d\u51fa\u73b0\u4e71\u7801\uff0c\u6bcf\u6b21\u6d4f\u89c8\u53ea\u80fd\u624b\u52a8\u8bbe\u7f6e\u4e00\u4e0b\u6d4f\u89c8\u5668\u7684\u7f16\u7801\uff0c\u8bbe\u7f6e\u4e3aGB2312\u5c31\u53ef\u4ee5\u6b63\u5e38\u663e\u793a\u4e86\u3002\u6bcf\u5237\u65b0\u4e00\u6b21\u90fd\u8981\u8bbe\u7f6e\u4e00\u6b21\uff0c\u597d\u662f\u9ebb\u70e6\u3002\u60f3\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f46\u662f\u627e\u4e86\u597d\u591a\u8d44\u6599\uff0c\u90fd\u6ca1\u6709\u89e3\u51b3\u5230\u3002\u4e00\u76f4\u5c31\u62d6\u4e86\u5c06\u8fd12\u5e74\u4e86\u3002\u8f9b\u82e6\u4e86\u9700\u8981\u4e0b\u8f7d\u7684\u7f51\u53cb\u4e86\u3002<\/p>\n

\u8fd9\u51e0\u5929\uff0c\u7a81\u7136\u6709\u51b2\u52a8\uff0c\u8981\u628a\u8fd9\u4e2a\u95ee\u9898\u89e3\u51b3\u3002<\/p>\n

\u9996\u5148\u662f\u7ed9DH\u7684customer service\u53cd\u5e94\u4e86\uff08\u5176\u5b9e\u4ee5\u524d\u4e5f\u53cd\u5e94\u8fc7\u6b64\u95ee\u9898\uff09\uff0c\u6211\u5728\u63d0\u95ee\u7684\u540c\u65f6\uff0c\u7ed9\u4e86\u4e00\u4e2a\u53ef\u80fd\u7684\u89e3\u51b3\u65b9\u6848\u7ed9DH\uff0c\u8ba9\u4ed6\u4eec\u534f\u52a9\u4fee\u6539http.conf\uff0c\u5c06”AddDefaultCharset ISO-8859-1″\u4fee\u6539\u4e3a”AddDefaultCharset GB2312″\u3002\u8fc5\u901f\u5f97\u5230DH\u7684\u56de\u590d\uff0c\u53ef\u60dc\u7b54\u6848\u5e76\u6ca1\u6709\u89e3\u51b3\u6211\u7684\u95ee\u9898\u3002DH\u4e0d\u5141\u8bb8\u4fee\u6539\u7cfb\u7edf\u914d\u7f6e\uff0c\u544a\u8bc9\u6211\u53bb\u4fee\u6539htaccess\u6587\u4ef6\uff0c\u770b\u770b\u80fd\u5426\u89e3\u51b3\u95ee\u9898\u3002\u53c8\u89c1htaccess\u6587\u4ef6\u2026\u2026\u6211\u4fee\u6539\u4e86\u51e0\u5341\u6b21\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4e0d\u8fc7\u6ca1\u6709\u4e00\u6b21\u53ef\u4ee5\u6210\u529f\u89e3\u51b3\u8fd9\u4e2a\u4e71\u7801\u95ee\u9898\u3002\u867d\u7136\u5982\u6b64\uff0c\u89c1DH\u70ed\u5fc3\u5730\u9644\u4e0a\u4e86\u914d\u7f6e\u53c2\u8003\u6587\u6863\uff08http:\/\/www.w3.org\/International\/questions\/qa-htaccess-charset<\/a>\uff09\uff0c\u8fd8\u662f\u633a\u611f\u6fc0\u7684\u3002<\/p>\n

\u4e4b\u524d\uff0c\u5229\u7528htaccess\uff0c\u4f01\u56fe\u89e3\u51b3\u4e71\u7801\u95ee\u9898\uff0c\u5c1d\u8bd5\u8fc7\u4ee5\u4e0b\u591a\u79cd\u6307\u4ee4\uff1a<\/p>\n

AddDefaultCharset GB2312
DefaultLanguage zh-cn
AddDefaultCharset none
AddDefaultCharset Off
AddLanguage zh-cn .cn
AddCharset gb2312 .html
AddCharset gb2312 .htm<\/p>\n

\u7528W3\u7684\u68c0\u67e5\u5668\u68c0\u67e5\uff08http:\/\/validator.w3.org\/detailed.html<\/a>\uff09\uff0c\u7ed3\u679c\u53d1\u73b0\uff0c\u5bf9Apache\u7684\u76ee\u5f55\u6d4f\u89c8\u662f\u4e0d\u8d77\u4f5c\u7528\u7684\u3002\u53ea\u5bf9\u4e0a\u4f20\u7684\u6587\u4ef6\uff08.html\u7b49\u7b49\uff09\u8d77\u4f5c\u7528\u3002<\/p>\n

\u7ecf\u8fc7\u5206\u6790\uff0c\u5e94\u8be5\u662f\u7531\u4e8e\u9ed8\u8ba4\u7684\u76ee\u5f55\u6d4f\u89c8\u65b9\u5f0f\u662f\u7531Apache\u751f\u6210index\u6587\u4ef6\u7684\uff0c\u56e0\u4e3a\u53ea\u80fd\u5728\u751f\u6210\u524d\u8bbe\u5b9a\u7f16\u7801\u3002<\/p>\n

\u518d\u4ed4\u7ec6\u770b\u4e86\u4e00\u4e0bhtaccess\u6587\u4ef6\u914d\u7f6e\u6587\u6863\uff0c\u53d1\u73b0Apache Module mod_autoindex\uff08http:\/\/httpd.apache.org\/docs\/2.2\/mod\/mod_autoindex.html#indexoptions<\/a>\uff09\uff0c\u91cc\u9762\u6709FancyIndexing\u9879\u76ee\uff08\u5176\u5b9e\u4e4b\u524d\u90fd\u7528\u8fc7\u8fd9\u4e2a\u8bbe\u7f6e\u7684IndexOptions NameWidth\u4e86\uff09\uff0cIndexOptions\u7adf\u7136\u4e5f\u6709\u4e00\u4e2a\u5173\u4e8e\u7f16\u7801\u7684\u8bbe\u7f6e\uff0cCharset=character-set\uff0c\u5929\u554a\uff01\u600e\u4e48\u4e4b\u524d\u6ca1\u6709\u770b\u5230\uff1f\uff01\u4e00\u770b\u5230\u8fd9\u4e2a\u9009\u9879\uff0c\u5c31\u611f\u89c9\u5df2\u7ecf\u63a5\u8fd1\u89e3\u51b3\u4e71\u7801\u95ee\u9898\u4e86\u3002<\/p>\n

\u7acb\u523b\u4fee\u6539htaccess\u6587\u4ef6\uff0c\u52a0\u5165<\/p>\n

IndexOptions Charset=GB2312<\/strong><\/font><\/p>\n

\u91cd\u65b0\u6253\u5f00\u7f51\u9875\uff0c\u6210\u529f\uff01\u7528W3\u7684\u68c0\u67e5\u5668\u68c0\u67e5\uff0c\u4e5f\u662f\u663e\u793a\u7f16\u7801\u4e3aGB2312\uff01\u7ec8\u4e8e\u89e3\u51b3\u4e86\uff01\"\u7ec8\u4e8e\u89e3\u51b3\u4e86Apache\u4e71\u7801\u95ee\u9898<\/p>\n

\u4e00\u53e5\u7b80\u5355\u7684\u547d\u4ee4\uff0c\u4e3a\u4ec0\u4e48\u4e4b\u524d\u4e00\u76f4\u90fd\u6ca1\u6709\u770b\u5230\uff1f\u592a\u4e0d\u5c0f\u5fc3\u4e86\uff01\"\u7ec8\u4e8e\u89e3\u51b3\u4e86Apache\u4e71\u7801\u95ee\u9898<\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

Apache\u76ee\u5f55\u6d4f\u89c8\u4e71\u7801\uff0cApache\u4e71\u7801\uff0cApache\u7f16\u7801\u4fee\u6539\uff0chtaccess\u7f16\u7801\u4fee\u6539\uff0cISO-8859-1\uff0cGB2312\uff0cUTF-8\uff0cIndexOptions Charset\uff08\u52a0\u4e0a\u51e0\u53e5\u5173\u952e\u5b57\uff0c\u597d\u8ba9\u5176\u4ed6\u9047\u5230\u6b64\u95ee\u9898\u7684\u7f51\u53cb\u80fd\u901a\u8fc7\u641c\u7d22\u5f15\u64ce\u627e\u5230\u6b64\u6587\u7ae0\u3002^_^\uff09<\/p>\n

 <\/p>\n

 <\/p>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

\u539f\u6587\u5730\u5740\uff1ahttp:\/\/alexpress.blog.163.com\/blog\/static\/10718752 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"\n\u7ec8\u4e8e\u89e3\u51b3\u4e86Apache\u4e71\u7801\u95ee\u9898(\u8f6c) - \u6211\u81ea\u7136<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/yankay.com\/\u7ec8\u4e8e\u89e3\u51b3\u4e86apache\u4e71\u7801\u95ee\u9898\u8f6c\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7ec8\u4e8e\u89e3\u51b3\u4e86Apache\u4e71\u7801\u95ee\u9898(\u8f6c) - \u6211\u81ea\u7136\" \/>\n<meta property=\"og:description\" content=\"\u539f\u6587\u5730\u5740\uff1ahttp:\/\/alexpress.blog.163.com\/blog\/static\/10718752 […]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/yankay.com\/\u7ec8\u4e8e\u89e3\u51b3\u4e86apache\u4e71\u7801\u95ee\u9898\u8f6c\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6211\u81ea\u7136\" \/>\n<meta property=\"article:published_time\" content=\"2009-09-24T13:56:55+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/st.blog.163.com\/style\/common\/htmlEditor\/portrait\/g\/preview\/g45.gif\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/yankay.com\/#website\",\"url\":\"http:\/\/yankay.com\/\",\"name\":\"\\u6211\\u81ea\\u7136\",\"description\":\"\\u989c\\u5f00\\u7684\\u535a\\u5ba2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/yankay.com\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/yankay.com\/%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac\/#primaryimage\",\"inLanguage\":\"zh-CN\",\"url\":\"http:\/\/st.blog.163.com\/style\/common\/htmlEditor\/portrait\/g\/preview\/g45.gif\",\"contentUrl\":\"http:\/\/st.blog.163.com\/style\/common\/htmlEditor\/portrait\/g\/preview\/g45.gif\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/yankay.com\/%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac\/#webpage\",\"url\":\"http:\/\/yankay.com\/%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac\/\",\"name\":\"\\u7ec8\\u4e8e\\u89e3\\u51b3\\u4e86Apache\\u4e71\\u7801\\u95ee\\u9898(\\u8f6c) - \\u6211\\u81ea\\u7136\",\"isPartOf\":{\"@id\":\"http:\/\/yankay.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/yankay.com\/%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac\/#primaryimage\"},\"datePublished\":\"2009-09-24T13:56:55+00:00\",\"dateModified\":\"2009-09-24T13:56:55+00:00\",\"author\":{\"@id\":\"http:\/\/yankay.com\/#\/schema\/person\/f52d918e9bfa51c4454172c2caa7704f\"},\"breadcrumb\":{\"@id\":\"http:\/\/yankay.com\/%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/yankay.com\/%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/yankay.com\/%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/yankay.com\/\",\"url\":\"http:\/\/yankay.com\/\",\"name\":\"\\u9996\\u9875\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@id\":\"http:\/\/yankay.com\/%e7%bb%88%e4%ba%8e%e8%a7%a3%e5%86%b3%e4%ba%86apache%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98%e8%bd%ac\/#webpage\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/yankay.com\/#\/schema\/person\/f52d918e9bfa51c4454172c2caa7704f\",\"name\":\"yankay\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/yankay.com\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/426bb830224c1471011d92a830a6ed4f?s=96&d=wavatar&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/426bb830224c1471011d92a830a6ed4f?s=96&d=wavatar&r=g\",\"caption\":\"yankay\"},\"sameAs\":[\"http:\/\/47.100.65.109\"],\"url\":\"http:\/\/yankay.com\/author\/yankay\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts\/25411"}],"collection":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/comments?post=25411"}],"version-history":[{"count":0,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts\/25411\/revisions"}],"wp:attachment":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/media?parent=25411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/categories?post=25411"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/tags?post=25411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}