{"id":678,"date":"2012-05-26T00:55:43","date_gmt":"2012-05-25T16:55:43","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=678"},"modified":"2012-05-26T00:55:43","modified_gmt":"2012-05-25T16:55:43","slug":"apache%e9%85%8d%e7%bd%aenamevirtualhost%e5%87%ba%e7%8e%b0%e8%a6%86%e7%9b%96%e8%ad%a6%e5%91%8a%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95-kloxo","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/678","title":{"rendered":"Apache\u914d\u7f6eNameVirtualHost\u51fa\u73b0\u8986\u76d6\u8b66\u544a\u7684\u89e3\u51b3\u529e\u6cd5-kloxo"},"content":{"rendered":"

\u4f7f\u7528Kloxo\u7ba1\u7406\u7fa4\u7ad9\uff0c\u5728\u5207\u6362\u5907\u4efd\u540e\uff0c\u5c06\u57df\u540d\u89e3\u6790\u5230\u65b0\u7684\u670d\u52a1\u5668IP\u5730\u5740\u4e0a\uff0c\u53d1\u73b0\u4f7f\u7528\u57df\u540d\u6253\u5f00\u7f51\u7ad9\u663e\u793a\u4e3akloxo\u9ed8\u8ba4\u540d\u9875\u9762(\u9ed8\u8ba4\u9875\u9762\u4e3a\u81ea\u5df1\u8c03\u8bd5\u65f6\u5019\u52a0\u5165\u7684phpinfo(),\u5efa\u7ad9\u65f6\u5df2\u7ecf\u628a\u7f51\u7ad9\u76ee\u5f55\u4e0b\u7684index.html\u5220\u9664)\uff0c\u91cd\u542fapache\u670d\u52a1\u5668\uff0c\u63d0\u793a\uff1athe first has precedence, perhaps you need a NameVirtualHost directive\uff0c\u53d1\u73b0\u7f51\u7ad9\u7684\u9ed8\u8ba4\u76ee\u5f55\u6307\u5b9a\u5230\u4e86\/home\/kloxo\/httpd\/default\/index.php\u4e0b\u9762\u3002<\/strong><\/p>\n

<\/strong>\u00a0<\/p>\n

\u56e0\u4e3aKloxo\u9ed8\u8ba4\u4f7f\u7528\u7684\u662fapache\uff0c\u91cd\u542f\u9519\u8bef\u63d0\u793a\u4e3a\u865a\u62df\u4e3b\u673a\u6ca1\u6709\u6307\u5b9a\u00a0NameVirtualHost\uff0c\u67e5\u770b\/home\/httpd\/site.com\/conf\/kloxo.site.com\u914d\u7f6e\u6587\u4ef6\uff0c\u6ca1\u6709\u95ee\u9898\uff0c\u731c\u6d4b\u53ef\u80fd\u95ee\u9898\u662fapache\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u6253\u5f00\/etc\/httpd\/conf\/kloxo\/virtualhost.conf(apache\u4f1a\u8bfb\u53d6\u6539\u6587\u4ef6\uff0c\u5728httpd.conf\u6709\u58f0\u660e)\uff0c\u53d1\u73b0\u6539\u6587\u4ef6\u6ca1\u6709\u914d\u7f6e\u00a0NameVirtualHost\uff0c\u628aNameVirtualHost ip:port\u6dfb\u52a0\u4e0a\u53bb\uff0c\u91cd\u542fapache\u3002\u518d\u6b21\u6253\u5f00\u57df\u540d\uff0c\u663e\u793a\u6b63\u5e38\uff01<\/strong><\/p>\n

kloxo\u95ee\u9898\u771f\u591a\u554a\u3002\u5509\u3002\u7d2f\u6b7b\u4eba\u4e86\uff01<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528Kloxo\u7ba1\u7406\u7fa4\u7ad9\uff0c\u5728\u5207\u6362\u5907\u4efd\u540e\uff0c\u5c06\u57df\u540d\u89e3\u6790\u5230\u65b0\u7684\u670d\u52a1\u5668IP\u5730\u5740\u4e0a\uff0c\u53d1\u73b0\u4f7f\u7528\u57df\u540d\u6253\u5f00\u7f51\u7ad9\u663e\u793a\u4e3akloxo\u9ed8\u8ba4\u540d\u9875\u9762(\u9ed8\u8ba4\u9875\u9762\u4e3a\u81ea\u5df1\u8c03\u8bd5\u65f6\u5019\u52a0\u5165\u7684phpinfo(),\u5efa\u7ad9\u65f6\u5df2\u7ecf\u628a\u7f51\u7ad9\u76ee\u5f55\u4e0b\u7684index.html\u5220\u9664)\uff0c\u91cd\u542fapache\u670d\u52a1\u5668\uff0c\u63d0\u793a\uff1athe first has precedence, perhaps you need a NameVirtualHost directive\uff0c\u53d1\u73b0\u7f51\u7ad9\u7684\u9ed8\u8ba4\u76ee\u5f55\u6307\u5b9a\u5230\u4e86\/home\/kloxo\/httpd\/default\/index.php\u4e0b\u9762\u3002 \u00a0 \u56e0\u4e3aKloxo\u9ed8\u8ba4\u4f7f\u7528\u7684\u662fapache\uff0c\u91cd\u542f\u9519\u8bef\u63d0\u793a\u4e3a\u865a\u62df\u4e3b\u673a\u6ca1\u6709\u6307\u5b9a\u00a0NameVirtualHos<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,9],"tags":[108],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/678"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=678"}],"version-history":[{"count":2,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/678\/revisions"}],"predecessor-version":[{"id":680,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/678\/revisions\/680"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=678"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}