{"id":169,"date":"2014-11-16T23:25:24","date_gmt":"2014-11-16T14:25:24","guid":{"rendered":"http:\/\/dukehide.dip.jp\/wordpress\/com\/?p=169"},"modified":"2018-02-12T19:30:32","modified_gmt":"2018-02-12T10:30:32","slug":"apache2-4-setting","status":"publish","type":"post","link":"https:\/\/dukehide.com\/pc\/apache2-4-setting\/","title":{"rendered":"Apache\u8a2d\u5b9a(2.2\u21922.4)"},"content":{"rendered":"<p>\u4eca\u56de\u306eCentOS\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3067\u624b\u9593\u53d6\u3063\u305f\u306e\u304cApache\u3067\u3057\u305f\u3002\u9577\u3089\u304fCentOS 6\u3067\u306f2.2\u3067\u3057\u305f\u304c\u3001CentOS 7\u3067\u306f\u3088\u3046\u3084\u304f2.4\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u304c\u3001\u4eca\u307e\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u3057\u3066\u63a7\u3048\u3066\u3044\u305fconf\u30d5\u30a1\u30a4\u30eb\u304c\u5f79\u306b\u7acb\u305f\u306a\u304f\u306a\u308b\u3068\u3044\u3046\u59cb\u672b\u3002\u305d\u306e\u307e\u307e\u6d41\u7528\u3059\u308b\u3068\u201cOrder\u201d\u5f62\u5f0f\u306e\u8a18\u8ff0\u3067\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u3042\u305d\u3046\u3044\u3046\u6642\u306e\u305f\u3081\u306b<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/upgrading.html\" target=\"_blank\">Apache<\/a>\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u306a\u308a\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u76ee\u3092\u901a\u305b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\u3001\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<div class=\"sp-memo\">\n<strong>\u25cbApache2.2\u30682.4\u306e\u9055\u3044<\/strong><br \/>\n<strong>\u30fb\u62d2\u5426\u6307\u5b9a\u4f8b<\/strong><br \/>\n\u3010ver.2.2\u3011<br \/>\n\u3000Order deny, allow<br \/>\n\u3000Deny from all<br \/>\n\u3010ver.2.4\u3011<br \/>\n\u3000Require all denied<br \/>\n<br \/>\n<strong>\u30fb\u8a31\u53ef\u6307\u5b9a\u4f8b<\/strong><br \/>\n\u3010ver.2.2\u3011<br \/>\n\u3000Order allow, deny<br \/>\n\u3000Allow from all<br \/>\n\u3010ver.2.4\u3011<br \/>\n\u3000Require all granted<br \/>\n<br \/>\n<strong>\u30fb\u30c9\u30e1\u30a4\u30f3\u6307\u5b9a\u4f8b<\/strong><br \/>\n\u3010ver.2.2\u3011<br \/>\n\u3000Order deny, allow<br \/>\n\u3000Deny from all<br \/>\n\u3000Allow from dukehide.dip.jp<br \/>\n\u3010ver.2.4\u3011<br \/>\n\u3000Require host dukehide.dip.jp\n<\/div>\n<p><\/p>\n<p>Apache2.4\u3067\u306f\u8a18\u8ff0\u304c\u201cRequire\u201d\u5f62\u5f0f\u3067\u30b9\u30c3\u30ad\u30ea\u3057\u307e\u3057\u305f\u306d\u2026\u3002\u4eca\u307e\u3067\u66f8\u304d\u6163\u308c\u3066\u3044\u305fOrder\u5f62\u5f0f\u304c\u4f7f\u7528\u4e0d\u53ef\u306b\u306a\u3063\u305f\u3068\u306f\u77e5\u3089\u306a\u3093\u3060\u3002\u3053\u308c\u3082\u307e\u305f\u826f\u3044\u52c9\u5f37\u3067\u3059\u3002<\/p>\n<p>conf\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u8a18\u8ff0\u306b\u95a2\u3057\u3066\u306f\u5206\u304b\u308a\u307e\u3057\u305f\u304c\u3001\u3082\u3046\u4e00\u3064\u306e\u554f\u984c\u306f\u30f4\u30a1\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3067\u3059\u3002\u3053\u3061\u3089\u306b\u95a2\u3057\u3066\u306f\u30b5\u30f3\u30d7\u30eb\u304c\u7121\u3044\u304b\u306a\uff1f \u3068\u63a2\u3057\u3066\u307f\u305f\u3089\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<div class=\"terminal\">\n# find \/ -name httpd-vhosts.conf<br \/>\n\/usr\/share\/doc\/httpd-2.4.6\/httpd-vhosts.conf\n<\/div>\n<p><\/p>\n<p>\u3053\u308c\u3092\u53c2\u8003\u306b\u624b\u76f4\u3057\u3057\u3001\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u3044\u3048\u3070\u4eca\u307e\u3067Web\u30b5\u30fc\u30d0\u30fc\u306f\u9577\u5e74Apache\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u6a5f\u4f1a\u304c\u3042\u308c\u3070<a href=\"http:\/\/nginx.org\/en\/\" target=\"_blank\">Nginx<\/a>\u3067\u3082\u8a66\u3057\u3066\u307f\u3088\u3046\u304b\u306a\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306eCentOS\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3067\u624b\u9593\u53d6\u3063\u305f\u306e\u304cApache\u3067\u3057\u305f\u3002\u9577\u3089\u304fCentOS 6\u3067\u306f2.2\u3067\u3057\u305f\u304c\u3001CentOS 7\u3067\u306f\u3088\u3046\u3084\u304f2.4\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u304c\u3001\u4eca\u307e\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u3057\u3066\u63a7\u3048\u3066\u3044\u305fconf\u30d5\u30a1\u30a4\u30eb\u304c\u5f79 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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,"footnotes":"","_jetpack_memberships_contains_paid_content":false,"_lightning_design_setting":[],"vkexunit_cta_each_option":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[112,3],"tags":[91,28],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9iVw6-2J","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/posts\/169"}],"collection":[{"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/comments?post=169"}],"version-history":[{"count":0,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"wp:attachment":[{"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dukehide.com\/pc\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}