{"id":2889,"date":"2016-02-01T14:34:36","date_gmt":"2016-02-01T06:34:36","guid":{"rendered":"http:\/\/ellery.no-ip.info\/wp\/thinkingmore\/?p=2889"},"modified":"2016-02-01T14:34:36","modified_gmt":"2016-02-01T06:34:36","slug":"apache-%e8%a8%ad%e5%ae%9a%e5%a4%9a%e5%80%8b-virtualhost-%e7%9a%84%e9%a0%90%e8%a8%ad","status":"publish","type":"post","link":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/2016\/02\/apache-%e8%a8%ad%e5%ae%9a%e5%a4%9a%e5%80%8b-virtualhost-%e7%9a%84%e9%a0%90%e8%a8%ad\/","title":{"rendered":"Apache \u8a2d\u5b9a\u591a\u500b VirtualHost \u7684\u9810\u8a2d"},"content":{"rendered":"<p>\u4e00\u53f0\u4e3b\u6a5f\u4e0a\u8981\u7d81\u5b9a\u591a\u500b domain name \uff0c\u662f\u85c9\u8457\u8a2d\u5b9a Apache \u7684 VirtualHost \u4f86\u5b8c\u6210\u3002\u90a3\u5982\u679c\u5728\u6c92\u8f38\u5165 domain name \u7684\u60c5\u6cc1\u4e0b\uff0c\u8981\u4f7f\u7528\u6307\u5b9a\u7684\u8a2d\u5b9a\u8a72\u600e\u9ebc\u505a\u5462\uff1f<\/p>\n<p>\u7c21\u55ae\u7684\u8aaa\uff0cApache \u6703\u4ee5\u7b2c\u4e00\u500b VirtualHost \u4f86\u7576\u4f5c\u9810\u8a2d\u7684\u3002\u4f8b\u5982\u73fe\u5728\u6709\u5169\u500b VirtualHost\uff0c\u4e00\u500b\u662f A\uff0c\u4f7f\u7528 www.example.com\uff1b\u4e00\u500b\u662f B\uff0c\u4f7f\u7528 www.example.net \uff0c\u90a3\u9ebc\u7db2\u5740\u5217\u8f38\u5165 IP \u6642\uff0c\u6703\u770b\u5230 A\u3002\u60f3\u8981\u6709\u9810\u8a2d\u7684 VirtualHost\uff0c\u5c31\u662f\u5728\u8a2d\u5b9a A \u7684\u524d\u9762\u591a\u52a0\u4e00\u500b VirtualHost\uff0c\u88cf\u9762\u4e0d\u6307\u5b9a ServerName \u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u53f0\u4e3b\u6a5f\u4e0a\u8981\u7d81\u5b9a\u591a\u500b domain name \uff0c\u662f\u85c9\u8457\u8a2d\u5b9a Apache \u7684 VirtualHost \u4f86\u5b8c\u6210\u3002\u90a3\u5982\u679c\u5728\u6c92\u8f38\u5165 domain name \u7684\u60c5\u6cc1\u4e0b\uff0c\u8981\u4f7f\u7528\u6307\u5b9a\u7684\u8a2d\u5b9a\u8a72\u600e\u9ebc\u505a\u5462\uff1f \u7c21\u55ae\u7684\u8aaa\uff0cApache \u6703\u4ee5\u7b2c\u4e00\u500b VirtualHost \u4f86\u7576\u4f5c\u9810\u8a2d\u7684\u3002\u4f8b\u5982\u73fe\u5728\u6709\u5169\u500b VirtualHost\uff0c\u4e00\u500b\u662f A\uff0c\u4f7f\u7528 www.example.com\uff1b\u4e00\u500b\u662f B\uff0c\u4f7f\u7528 www.example.net \uff0c\u90a3\u9ebc\u7db2\u5740\u5217\u8f38\u5165 IP \u6642\uff0c\u6703\u770b\u5230 A\u3002\u60f3\u8981\u6709\u9810\u8a2d\u7684 VirtualHost\uff0c\u5c31\u662f\u5728\u8a2d\u5b9a A \u7684\u524d\u9762\u591a\u52a0\u4e00\u500b VirtualHost\uff0c\u88cf\u9762\u4e0d\u6307\u5b9a ServerName \u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[135],"class_list":["post-2889","post","type-post","status-publish","format-standard","hentry","category-idea","tag-apache"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":false,"jetpack_shortlink":"https:\/\/wp.me\/p2MOxp-KB","_links":{"self":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/2889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/comments?post=2889"}],"version-history":[{"count":1,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/2889\/revisions"}],"predecessor-version":[{"id":2890,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/posts\/2889\/revisions\/2890"}],"wp:attachment":[{"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/media?parent=2889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/categories?post=2889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ellery.no-ip.info\/wp\/thinkingmore\/wp-json\/wp\/v2\/tags?post=2889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}