{"id":1429,"date":"2015-02-05T10:44:17","date_gmt":"2015-02-05T02:44:17","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1429"},"modified":"2015-02-05T10:44:17","modified_gmt":"2015-02-05T02:44:17","slug":"apache-2-4-%e7%a6%81%e6%ad%a2%e6%9f%90%e4%b8%80ipip%e6%ae%b5%e8%ae%bf%e9%97%ae%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1429","title":{"rendered":"apache 2.4 \u7981\u6b62\u67d0\u4e00IP\\IP\u6bb5\u8bbf\u95ee\u65b9\u6cd5"},"content":{"rendered":"
\u7f16\u8f91\uff1a
\nhttp.conf
\n,\u627e\u5230<\/p>\n
\r\nDocumentRoot \"\/alidata\/www\"\r\n\r\n<\/Directory>\r\n<\/pre>\n \u6807\u7b7e
\n\uff0c
\n# Controls who can get stuff from this server \u8fd9\u4e4b\u540e \u5c31\u662f\u8bbf\u95ee\u63a7\u5236\uff0c\u53ef\u4ee5\u6dfb\u52a0\u4f60\u8981\u7981\u6b62\u7684ip\u6216\u8005\u57df\u540d
\n\u8981\u6ce8\u610f\u7684\u662f\uff0c2.4\u548c2.2\u662f\u6709\u4e0d\u540c\u4e86\u7684\u3002<\/p>\n\r\n\r\n Require all granted\r\n Require not ip 183.136.190\r\n<\/RequireAll>\r\n<\/pre>\n \u4ee5\u4e0a\u662f\u7981\u6b62183.136.190\u8bbf\u95ee\u7684\u65b9\u6cd5\u3002\u6ce8\u610f\uff0c\u5728\u7981\u6b62\u65f6\uff0c\u8981\u6709
\u8fd9\u4e2a\u6807\u7b7e\u7684\u3002<\/p>\n \/\/\/\/\/\/\/\/\/\/\/
\napache\u5b98\u65b9\u6587\u6863\u5730\u5740:
\nhttp:\/\/httpd.apache.org\/docs\/2.4\/howto\/access.html<\/p>\n","protected":false},"excerpt":{"rendered":"\u7f16\u8f91\uff1a http.conf ,\u627e\u5230 DocumentRoot “\/alidata\/www” \u6807\u7b7e \uff0c # Controls who can get stuff from this server \u8fd9\u4e4b\u540e \u5c31\u662f\u8bbf\u95ee\u63a7\u5236\uff0c\u53ef\u4ee5\u6dfb\u52a0\u4f60\u8981\u7981\u6b62\u7684ip\u6216\u8005\u57df\u540d \u8981\u6ce8\u610f\u7684\u662f\uff0c2.4\u548c2.2\u662f\u6709\u4e0d\u540c\u4e86\u7684\u3002 Require all granted Require not ip 183.136.190 \u4ee5\u4e0a\u662f\u7981\u6b62183.136.190\u8bbf\u95ee\u7684\u65b9\u6cd5\u3002\u6ce8\u610f\uff0c\u5728\u7981\u6b62\u65f6\uff0c\u8981\u6709\u8fd9\u4e2a\u6807\u7b7e\u7684\u3002 \/\/\/\/\/\/\/\/\/\/\/ apache\u5b98\u65b9\u6587\u6863\u5730\u5740: http:\/\/httpd.apache.org\/docs\/2.4\/howto\/acce<\/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":[258,259],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1429"}],"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=1429"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1429\/revisions"}],"predecessor-version":[{"id":1430,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1429\/revisions\/1430"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1429"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}