{"id":106,"date":"2010-01-20T01:49:22","date_gmt":"2010-01-19T16:49:22","guid":{"rendered":"http:\/\/cms1f37b.corede.net\/wordpress\/?p=106"},"modified":"2010-01-20T01:49:22","modified_gmt":"2010-01-19T16:49:22","slug":"apache%e3%83%a2%e3%82%b8%e3%83%a5%e3%83%bc%e3%83%ab%e6%b4%bb%e7%94%a8","status":"publish","type":"post","link":"https:\/\/matsudapress.com\/?p=106","title":{"rendered":"apache\u30e2\u30b8\u30e5\u30fc\u30eb\u6d3b\u7528!"},"content":{"rendered":"<p>Apache\u306e\u7a3c\u50cd\u72b6\u6cc1\u306e\u8868\u793a<br \/>\n<strong>\u25cfmod_status<\/strong><\/p>\n<p>\/etc\/httpd\/conf\/httpd.conf\u3000\u306e\u4e00\u90e8<br \/>\n#&lt;Location \/server-status&gt;<br \/>\n#\u00a0 SetHandler server-status<br \/>\n#\u00a0 Order deny,allow<br \/>\n#\u00a0 Deny from all<br \/>\n#\u00a0 Allow from .example.com<br \/>\n#&lt;\/Location&gt;<\/p>\n<p>\u2193\u3000\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5909\u66f4<br \/>\n&lt;Location \/server-status&gt;<br \/>\nSetHandler server-status<br \/>\nOrder deny,allow<br \/>\nDeny from all<br \/>\nAllow from all<br \/>\n&lt;\/Location&gt;<\/p>\n<p>\u3068\u3057\u3001Apache\u3092\u518d\u8d77\u52d5\u3067\u8a2d\u5b9a\u3092\u53cd\u6620\u3057\u3001<br \/>\nhttp:\/\/192.168.1.30\/server-status\u3000\u3068\u300cserver-status\u300d\u3092URL\u306b\u8ffd\u52a0\u3059\u308b\u3068\u3001<img decoding=\"async\" src=\"file:\/\/\/C:\/Users\/ymatsuda\/AppData\/Local\/Temp\/moz-screenshot.jpg\" alt=\"\" \/><br \/>\nWeb\u4e0a\u3067\u3001\u7a3c\u50cd\u72b6\u6cc1\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n<p>\u898b\u65b9\u3068\u3057\u3066\u306f\u3001\u753b\u9762\u4e2d\u592e\u306e<br \/>\n___W__&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br \/>\n&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br \/>\n\u90e8\u5206\u3067\u3001<br \/>\n\u300c_\u300d\u304c\u5f85\u6a5f\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9\u3067<br \/>\nW\u3000R\u3000K\u3000\u306a\u3069\u306f\u51e6\u7406\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u30d7\u30ed\u30bb\u30b9\u306e\u8a73\u7d30\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u540c\u30d5\u30a1\u30a4\u30eb\u306a\u3044\u306e<br \/>\nExtendedStatus\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u300c\uff03\u300d\u3092\u3092\u306f\u305a\u3057\u3066\u6709\u52b9\u3057\u3001Apache\u3092\u518d\u8d77\u52d5\u3059\u308c\u3070\u3001<br \/>\n\u8a73\u7d30\u306a\u60c5\u5831\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br \/>\n#ExtendedStatus On<br \/>\n\u2193<br \/>\nExtendedStatus On<\/p>\n<p>\u30b3\u30f3\u30c6\u30f3\u30c4\u5727\u7e2e<br \/>\n<strong>\u25cfmod_deflate<\/strong><\/p>\n<p>httpd.conf\u5185\u306e<br \/>\nSetOutputFilter DEFLATE<br \/>\nDeflateCompressionLevel 3<\/p>\n<p>\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u9001\u4fe1\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5727\u7e2e\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3067\u3059\u304c\u3001\u5727\u7e2e\u30ec\u30d9\u30eb\u304c\u9ad8\u3044\u307b\u3069\u3001CPU\u3078\u306e\u8ca0\u8377\u306f\u3042\u304c\u308a\u307e\u3059\u3002<br \/>\n\u30ec\u30d9\u30eb\u306f\uff11\uff5e\uff19\u307e\u3067<\/p>\n<p>URL\u306e\u66f8\u304d\u63db\u3048<br \/>\n<strong>\u25cfmod_rewrite<\/strong><br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u8981\u6c42\u3055\u308c\u305fURL\u3092\u66f8\u304d\u63db\u3048\u308b\u3002<br \/>\n\u4f8b\u3067\u3044\u3046\u3068\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3092\u544a\u77e5\u3059\u308b\u30da\u30fc\u30b8\u3078\u8a98\u5c0e\u3057\u305f\u3044\u5834\u5408\u306b\u3001<br \/>\nhttpd.conf\u3092<br \/>\nRewriteEngine on<br \/>\nRewriteRule ^.*$ \/sorry.html [L]<br \/>\n\u3068\u3059\u308b\u3068\u3002<br \/>\n\u30c9\u30e1\u30a4\u30f3\u4e0a\u306e\u3059\u3079\u3066\u306e\u30a2\u30af\u30bb\u30b9\u306b\u5bfe\u3057\u3066\u3001<br \/>\n\u300c\/sorry.html\u300d\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u3059\u308b\u3068\u3044\u3063\u305f\u4f7f\u3044\u65b9\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30ad\u30b7\u306e\u5229\u7528<br \/>\n<strong>\u25cfmod_proxy<\/strong><br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306eWeb\u30a2\u30af\u30bb\u30b9\u306e\u8981\u6c42\u3092\u3046\u3051\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4ee3\u308f\u308a\u306b\u76ee\u7684\u306eWeb\u30b5\u30fc\u30d0\u30fc\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u3067\u3059\uff08Web\u4ee5\u5916\u306e\u901a\u4fe1\u3082\u53ef\u80fd\uff09\u3002<br \/>\n\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u306b\u306f\u3001<br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u4efb\u610f\u306b\u6307\u5b9a\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u306b\u4ee3\u7406\u3067\u63a5\u7d9a\u3059\u308b\u3000\uff1d\u3000\u30d5\u30a9\u30ef\u30fc\u30c9\u30d7\u30ed\u30ad\u30b7\u3068\u3001<br \/>\n\u7279\u5b9a\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u306b\u4e2d\u7d99\u3092\u884c\u3046\u3000\u3000\u3000\u3000\u3000\u3000\uff1d\u3000\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\uff12\u3064\u304c\u3042\u308b\u3002<\/p>\n<p>\u30d5\u30a9\u30ef\u30fc\u30c9\u3092\u30d7\u30ed\u30ad\u30b7\u3092\u5229\u7528\u3059\u308b\u4f8b<br \/>\n#&lt;IfModule mod_proxy.c&gt;<br \/>\n#ProxyRequests On<\/p>\n<p>#&lt;Proxy *&gt;<br \/>\n#\u00a0 Order deny,allow<br \/>\n#\u00a0 Deny from all<br \/>\n#\u00a0 Allow from .example.com<br \/>\n#&lt;\/Proxy&gt;<\/p>\n<p>#ProxyVia On<\/p>\n<p>#&lt;\/IfModule&gt;<\/p>\n<p>\u2193<\/p>\n<p>&lt;IfModule mod_proxy.c&gt;<br \/>\nProxyRequests On<\/p>\n<p>&lt;Proxy *&gt;<br \/>\nOrder deny,allow<br \/>\nDeny from all<br \/>\nAllow from all<br \/>\n&lt;\/Proxy&gt;<\/p>\n<p>ProxyVia On<\/p>\n<p>&lt;\/IfModule&gt;<\/p>\n<p>\u3068\u3057\u3001Apache\u3092\u518d\u8d77\u52d5\u3057\u3001\u3042\u3068\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30d6\u30e9\u30a6\u30b6\u306e\u8a2d\u5b9a\u3067Apache\u3092\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u306b\u6307\u5b9a\u3059\u308c\u3070\u5b8c\u4e86\u3002\u793e\u5185LAN\u306a\u3069\u304b\u3089\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u4e00\u672c\u5316\u3057\u305f\u3044\u5834\u5408\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001mod_proxy\u3068\u3068\u3082\u306bmod_cache\u306a\u3069\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><strong>\u25cfBasic\u8a8d\u8a3c<\/strong><\/p>\n<p><strong><\/strong>\u4e0b\u8a18\u5185\u5bb9\u3092httpd.conf\u306b\u8ffd\u8a18<br \/>\n&lt;Directory \/var\/www\/html\/CentOS&gt;<br \/>\nAuthName &#8220;Secret Page&#8221;<br \/>\nAuthType Basic<br \/>\nAuthUserFile \/var\/www\/html\/CentOS\/.htpasswd<br \/>\nrequire valid-user<br \/>\n&lt;\/Directory&gt;<\/p>\n<p>\u4e0a\u8a18\u8a2d\u5b9a\u304c\u304a\u308f\u3063\u305f\u3089\u3001<br \/>\n# htpasswd -c \/var\/www\/html\/CentOS\/.htpasswd user1<br \/>\n\u3057\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u3001<br \/>\nApache\u3092\u518d\u8d77\u52d5\u3059\u308c\u3070\u3001\u5bfe\u8c61\u306eURL\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u8a8d\u8a3c\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u5229\u7528<br \/>\n<strong>\u25cfmod_dav, mod_dav_fs<\/strong><br \/>\n\u3053\u3061\u3089\u306f\u7c21\u5358\u306aApache\u3092\u5229\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u3067\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4f5c\u6210\u3057\u3001<br \/>\n\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n#mkdir \/var\/www\/html\/webdav<br \/>\n#chown apache.apache \/var\/www\/html\/webdav<\/p>\n<p>\u6b21\u306bhttpd.conf<br \/>\nAlias \/webdav &#8220;\/var\/www\/html\/webdav&#8221;<br \/>\n&lt;Location \/webdav&gt;<br \/>\nDAV on<br \/>\n&lt;\/Location&gt;<br \/>\n\u3068\u8a18\u8ff0\u3057\u3001apache\u3092\u518d\u8d77\u52d5\u3057\u305f\u3042\u3068\u3001<br \/>\nWindowsXP\u306e\u5834\u5408\u3060\u3068\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ec\u30fc\u30b9\u306e\u8ffd\u52a0\u3067\u3001<br \/>\nhttp:\/\/192.168.1.30\/webdav\u306a\u3069\u3068\u3059\u308c\u3070\u3001<br \/>\nwebdav\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u958b\u304b\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache\u306e\u7a3c\u50cd\u72b6\u6cc1\u306e\u8868\u793a \u25cfmod_status \/etc\/httpd\/co &hellip; <a href=\"https:\/\/matsudapress.com\/?p=106\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[87,91,78,1],"tags":[],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-apache","category-web","category-78","category-1"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/matsudapress.com\/index.php?rest_route=\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matsudapress.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matsudapress.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matsudapress.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matsudapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=106"}],"version-history":[{"count":0,"href":"https:\/\/matsudapress.com\/index.php?rest_route=\/wp\/v2\/posts\/106\/revisions"}],"wp:attachment":[{"href":"https:\/\/matsudapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matsudapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matsudapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}