{"id":59,"date":"2013-03-02T16:34:04","date_gmt":"2013-03-02T07:34:04","guid":{"rendered":"http:\/\/www.very-cute.net\/wp\/?p=59"},"modified":"2013-03-24T17:45:35","modified_gmt":"2013-03-24T08:45:35","slug":"apache22install","status":"publish","type":"post","link":"https:\/\/www.very-cute.net\/wp\/59\/","title":{"rendered":"Apache2.2 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a"},"content":{"rendered":"<p>CentOS\/RHEL\u306b Apache2.2 \u3092 yum \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3068\u3001\u3044\u3064\u3082\u3084\u308b\u6700\u4f4e\u9650\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<h2>\u25a0 Apache2.2 \u3068 mod_ssl (yum\u914d\u5e03\u7248rpm)<\/h2>\n<h3>(1) \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>SSL\u3092\u5165\u308c\u306a\u3044\u7406\u7531\u3082\u306a\u3044\u306e\u3067 mod_ssl \u3082\u540c\u6642\u306b\u5165\u308c\u307e\u3059\u3002<\/p>\n<pre>\r\n# yum  -y install httpd mod_ssl\r\n<\/pre>\n<h3>(2) \u30d5\u30a1\u30a4\u30eb\u69cb\u6210<\/h3>\n<pre>\r\n\/etc\/httpd\/conf\/httpd.conf\r\n\/etc\/httpd\/conf.d\/README\r\n\/etc\/httpd\/conf.d\/ssl.conf\r\n\/etc\/httpd\/conf.d\/welcome.conf\r\n<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u91cd\u8981\u306a\u306e\u306f\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb httpd.conf \u3067\u3059\u3002<br \/>\nSSL\u306e\u8a2d\u5b9a\u306f ssl.conf \u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h3>(3) \u8a2d\u5b9a<\/h3>\n<p>\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a<br \/>\n\/etc\/httpd\/conf\/httpd.conf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\nKeepAlive On\r\n\r\nKeepAliveTimeout 2\r\n\r\n&lt;IfModule prefork.c&gt;\r\n...\r\n...\r\nServerLimit      100\t\t\u203bMaxClients\u3068\u540c\u3058\u306b\u3059\u308b\r\nMaxClients       100\t\t\u203b\u30e1\u30e2\u30ea\u306b\u5fdc\u3058 100 \u7a0b\u5ea6\u304b\u3089\u8abf\u6574\r\nMaxRequestsPerChild  1000\t\u203b\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3092\u6291\u3048\u308b\u305f\u3081 1000\u4ee5\u4e0b\r\n&lt;\/IfModule&gt;\r\n\r\n\r\n# Include\u306e\u524d\u306b\u540d\u524d\u30d9\u30fc\u30b9\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u5ba3\u8a00\r\nNameVirtualHost *:80\r\nNameVirtualHost *:443\r\nInclude conf.d\/*.conf\r\n\r\n\r\n&lt;Directory \/&gt;\r\n    Options FollowSymLinks\r\n    AllowOverride All\r\n&lt;\/Directory&gt;\r\n\r\n&lt;Directory &quot;\/var\/www\/html&quot;&gt;\r\n    Options -Indexes FollowSymLinks Includes ExecCGI\r\n    AllowOverride All\r\n    Order allow,deny\r\n    Allow from all\r\n&lt;\/Directory&gt;\r\n\r\nDirectoryIndex index.html index.html.var index.htm index.shtml index.phtml index.hdml index.php index.cgi index.pl index.xml\r\n\r\nLanguagePriority ja en ca cs da de el eo es et fr he hr it ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW\r\n\r\n#\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u306a\u3044\u3068\u6587\u5b57\u5316\u3051\u3059\u308b\u5834\u5408\u304c\u3042\u308b\r\n#AddDefaultCharset UTF-8\r\n\r\nAddHandler cgi-script .cgi .pl\r\n\r\nAddType text\/html .shtml .html\r\nAddOutputFilter INCLUDES .shtml .html\r\n\r\n<\/pre>\n<p>\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a(\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210)<br \/>\n\/etc\/httpd\/conf.d\/vhosts.conf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# \u672a\u5b9a\u7fa9\u306e\u5834\u5408\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u306eDocumentRoot\u3092\u8868\u793a\r\n&lt;VirtualHost _default_:80&gt;\r\n&lt;\/VirtualHost&gt;\r\n\r\n#\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\r\n&lt;VirtualHost *:80&gt;\r\n    #ServerAdmin admin@HOSTNAME\r\n    DocumentRoot \/home\/USERNAME\/public_html\r\n    ServerName HOSTNAME\r\n    ServerAlias DOMAINNAME\r\n    SetEnvIf Request_URI &quot;\\.(gif)|(jpg)|(jepg)|(png)|(js)|(css)|(swf)|(flv)|(hta)$&quot; nolog\r\n    ErrorLog logs\/HOSTNAME-error_log\r\n    CustomLog logs\/HOSTNAME-access_log combined env=!nolog\r\n&lt;\/VirtualHost&gt;\r\n\r\n<\/pre>\n<p>SSL\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\uff08\u7279\u306bSSL\u4f7f\u308f\u306a\u3044\u5834\u5408\uff09<br \/>\n\/etc\/httpd\/conf.d\/ssl.conf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;VirtualHost _default_:443&gt;\r\n#&lt;VirtualHost xxx.xxx.xxx.xxx:443&gt;\t\u2190 IP\u30d9\u30fc\u30b9\u306e\u5834\u5408\u306fIP\u3092\u6307\u5b9a\r\n\r\n#ErrorLog logs\/ssl_error_log\r\nErrorLog logs\/error_log             \u2190 SSL\u3058\u3083\u306a\u3044\u30ed\u30b0\u3068\u7d71\u5408\u3059\u308b\r\n#TransferLog logs\/ssl_access_log\r\nCustomLog logs\/access_log combined  \u2190 SSL\u3058\u3083\u306a\u3044\u30ed\u30b0\u3068\u7d71\u5408\u3059\u308b\r\n\r\nLogLevel warn\r\n\r\n...\r\n...\r\n\r\n#\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\r\n#CustomLog logs\/ssl_request_log \\\r\n#          &quot;%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \\&quot;%r\\&quot; %b&quot;\r\n\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>Apache(httpd)\u3092\u518d\u8d77\u52d5<\/p>\n<pre>\r\n# \/etc\/rc.d\/init.d\/httpd start\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>CentOS\/RHEL\u306b Apache2.2 \u3092 yum \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3068\u3001\u3044\u3064\u3082\u3084\u308b\u6700\u4f4e\u9650\u306e\u521d\u671f\u8a2d\u5b9a\u3092\u66f8\u304d\u307e\u3059\u3002 \u25a0 Apache2.2 \u3068 mod_ssl (yum\u914d\u5e03\u7248rpm) (1) \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb SSL &hellip; <a href=\"https:\/\/www.very-cute.net\/wp\/59\/\">\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":[],"categories":[4,3],"tags":[17],"_links":{"self":[{"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/posts\/59"}],"collection":[{"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":0,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.very-cute.net\/wp\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}