{"id":9168,"date":"2023-10-01T22:00:00","date_gmt":"2023-10-01T13:00:00","guid":{"rendered":"https:\/\/na-3.com\/wp_na-blog\/?p=9168"},"modified":"2024-10-15T10:02:41","modified_gmt":"2024-10-15T01:02:41","slug":"apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97","status":"publish","type":"post","link":"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/","title":{"rendered":"apache\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7"},"content":{"rendered":"\n<p>\u30b5\u30fc\u30d0\u30fc\u66f4\u65b0\u306b\u4f34\u3044apache\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u305f\u306e\u3067\u624b\u9806\u3092\u30e1\u30e2\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full\"><a href=\"https:\/\/httpd.apache.org\/\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"144\" src=\"https:\/\/na-3.com\/wp_na-blog\/wp-content\/uploads\/2023\/09\/image-1-1.png\" alt=\"\" class=\"wp-image-9156\" srcset=\"https:\/\/na-3.com\/wp_na-blog\/wp-content\/uploads\/2023\/09\/image-1-1.png 432w, https:\/\/na-3.com\/wp_na-blog\/wp-content\/uploads\/2023\/09\/image-1-1-300x100.png 300w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>\u3000<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\r\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\r\n<label for=\"ez-toc-cssicon-toggle-item-69dca4886783d\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69dca4886783d\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89\" >\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#%E8%A8%AD%E5%AE%9A%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB\" >\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#httpdconf\" >httpd.conf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#httpd-sslconf\" >httpd-ssl.conf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#httpd-vhostsconf\" >httpd-vhosts.conf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#httpd-mpmconf\" >httpd-mpm.conf<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#%E8%A8%AD%E5%AE%9A%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E6%96%B0%E6%97%A7%E6%AF%94%E8%BC%83%E3%83%BB%E5%A4%89%E6%9B%B4\" >\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u65b0\u65e7\u6bd4\u8f03\u30fb\u5909\u66f4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E7%A7%BB%E5%8B%95\" >\u30d5\u30a1\u30a4\u30eb\u79fb\u52d5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#apache%E3%81%AE%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E7%99%BB%E9%8C%B2\" >apache\u306e\u30b5\u30fc\u30d3\u30b9\u767b\u9332<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#apache%E3%81%AE%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E8%A8%AD%E5%AE%9A\" >apache\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#apache%E3%81%AE%E8%B5%B7%E5%8B%95\" >apache\u306e\u8d77\u52d5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#%E3%82%A8%E3%83%A9%E3%83%BC%E3%83%AD%E3%82%B0%E7%A2%BA%E8%AA%8D\" >\u30a8\u30e9\u30fc\u30ed\u30b0\u78ba\u8a8d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/#%E3%81%9D%E3%81%AE%E4%BB%96%E3%82%BD%E3%83%95%E3%83%88%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >\u305d\u306e\u4ed6\u30bd\u30d5\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><\/ul><\/nav><\/div>\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89\"><\/span>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<br><a rel=\"noreferrer noopener\" href=\"https:\/\/httpd.apache.org\/download.cgi\" target=\"_blank\">Download &#8211; The Apache HTTP Server Project<\/a><br>Windows\u7248\u306f<a rel=\"noreferrer noopener\" href=\"https:\/\/www.apachelounge.com\/download\/\" target=\"_blank\">Apache VS17 binaries and modules download (apachelounge.com)<\/a><br>\u73fe\u6642\u70b9\u306e\u6700\u65b0\u7248\u3000\u300chttpd-2.4.57-win64-VS17.zip\u300d<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u73fe\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u306f\u5225\u306e\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u5c55\u958b\u3059\u308b\u3002<br>\u4ed6\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u79fb\u884c\u7b49\u3092\u8003\u616e\u3057\u3066OS\u306eC\u30c9\u30e9\u30a4\u30d6\u306f\u907f\u3051\u308b\u3002\u4f8b\uff1aD:\\Program Files\\Apache24<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%A8%AD%E5%AE%9A%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB\"><\/span>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5404\u8a2d\u5b9a\u5909\u66f4\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7 \uff08\u8a72\u5f53\u7b87\u6240\u306e\u307f\u8a18\u8f09\uff09<br>\u30fbhttpd.conf<br>\u30fbhttpd-ssl.conf<br>\u30fbhttpd-vhosts.conf<br>\u30fbhttpd-mpm.conf<br><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"httpdconf\"><\/span>httpd.conf<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\" data-file=\"httpd.conf\"><code>Define SRVROOT &quot;d:\/Program Files\/Apache24&quot;\nServerRoot &quot;${SRVROOT}&quot;\n#\nLoadModule access_compat_module modules\/mod_access_compat.so\nLoadModule headers_module modules\/mod_headers.so\nLoadModule md_module modules\/mod_md.so\nLoadModule php_module &quot;d:\/Program Files\/php\/php8apache2_4.dll&quot;\nLoadModule rewrite_module modules\/mod_rewrite.so\nLoadModule socache_shmcb_module modules\/mod_socache_shmcb.so\nLoadModule ssl_module modules\/mod_ssl.so\nLoadModule vhost_alias_module modules\/mod_vhost_alias.so\nLoadModule watchdog_module modules\/mod_watchdog.so\n \nUser apache\nGroup user\n\n# ServerAdmin: Your address, where problems with the server should be\n# e-mailed.  This address appears on some server-generated pages, such\n# as error documents.  e.g. admin@your-domain.com\n#\nServerAdmin admin@example.com\n \nServerName localhost:80\n#\n# DocumentRoot: The directory out of which you will serve your\n# documents. By default, all requests are taken from this directory, but\n# symbolic links and aliases may be used to point to other locations.\n#\n#DocumentRoot &quot;D:\/www\/public_html&quot;\u3000&lt;&lt;&lt;&lt;&lt;\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8 \u300chttpd-ssl.conf\u300d\u306e\u500b\u5225\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u6307\u5b9a\n&lt; Directory &quot;D:\/www\/public_html&quot;&gt;\n    #\n    Options -Indexes +FollowSymLinks +ExecCGI\n    Options +Includes\n    #\n    AllowOverride All\n    #\n    Require all granted\n&lt;\/Directory&gt;\n# DirectoryIndex: sets the file that Apache will serve if a directory\n# is requested.\n#\n&lt;IfModule dir_module&gt;\n    DirectoryIndex index.html index.htm index.shtml index.shtm index.php index.cgi index.pl\n&lt;\/IfModule&gt;\n \n#\n# The following lines prevent .htaccess and .htpasswd files from being \n# viewed by Web clients. \n#\n&lt;Files &quot;.ht*&quot;&gt;\n    Require all denied\n&lt;\/Files&gt;\n#\n&lt;IfModule alias_module&gt;\n    #\n    ScriptAlias \/cgi-bin\/ &quot;${SRVROOT}\/cgi-bin\/&quot;\n&lt;\/IfModule&gt;\n#\n&lt;Directory &quot;${SRVROOT}\/cgi-bin&quot;&gt;\n    AllowOverride None\n    Options None\n    Require all denied\n&lt;\/Directory&gt;\n&lt;IfModule mime_module&gt;\n\n    TypesConfig conf\/mime.types\n\n    AddType application\/x-compress .Z\n    AddType application\/x-gzip .gz .tgz\n\n    AddType application\/x-httpd-php .php\n    AddType application\/x-httpd-php-source .phps\n    AddType application\/x-httpd-cgi .cgi\n    AddType application\/x-httpd-cgi .pl\n\n    AddHandler php-script .php\n    AddHandler cgi-script .cgi .pl\n\n    PHPIniDir &quot;d:\/Program Files\/php&quot;\n    LoadFile  &quot;d:\/Program Files\/php\/php8ts.dll&quot;\n    LoadFile  &quot;d:\/Program Files\/php\/libssh2.dll&quot;\n    LoadFile  &quot;d:\/Program Files\/php\/nghttp2.dll&quot;\n    LoadFile  &quot;d:\/Program Files\/php\/libcrypto-1_1-x64.dll&quot;\n    LoadFile  &quot;d:\/Program Files\/php\/libssl-1_1-x64.dll&quot;\n    LoadFile  &quot;d:\/Program Files\/php\/libsqlite3.dll&quot;\n\n    AddType text\/x-server-parsed-html .shtml\n    Options Includes\n    AddOutputFilter INCLUDES .shtml\n&lt;\/IfModule&gt;\n \n#\n# Server-pool management (MPM specific)\nInclude conf\/extra\/httpd-mpm.conf\n \n# Virtual hosts\nInclude conf\/extra\/httpd-vhosts.conf\n \n# Secure (SSL\/TLS) connections\nInclude conf\/extra\/httpd-ssl.conf\n#\n# Note: The following must must be present to support\n#       starting without SSL on platforms with no \/dev\/random equivalent\n#       but a statically compiled-in mod_ssl.\n#\n&lt; IfModule ssl_module&gt;\nSSLRandomSeed startup builtin\nSSLRandomSeed connect builtin\n&lt; \/IfModule&gt;<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"httpd-sslconf\"><\/span>httpd-ssl.conf<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>SSL\/TLS\u901a\u4fe1\u3092\u884c\u3046\u305f\u3081\u306b\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3055\u305b\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\" data-file=\"httpd-ssl.conf\"><code>MDomain hoge.com\n&lt; VirtualHost _default_:443&gt;\n#   General setup for the virtual host\nDocumentRoot &quot;D:\/www\/public_html&quot;\nServerName hoge.com\nServerAlias www.hoge.com\nServerAdmin admin@example.com\nErrorLog &quot;${SRVROOT}\/logs\/error.log&quot;\nTransferLog &quot;${SRVROOT}\/logs\/access.log&quot;\n \n#   SSL Engine Switch:\n#   Enable\/Disable SSL for this virtual host.\nSSLEngine on\n \n#SSLCertificateFile &quot;${SRVROOT}\/conf\/server.crt&quot;\n#SSLCertificateFile &quot;${SRVROOT}\/conf\/server-dsa.crt&quot;\n#SSLCertificateFile &quot;${SRVROOT}\/conf\/server-ecc.crt&quot;\n \n#SSLCertificateKeyFile &quot;${SRVROOT}\/conf\/server.key&quot;\n#SSLCertificateKeyFile &quot;${SRVROOT}\/conf\/server-dsa.key&quot;\n#SSLCertificateKeyFile &quot;${SRVROOT}\/conf\/server-ecc.key&quot;\n#\u3000\u3000\u3000\u3000\u250b\u3000\u3000\u3053\u306e\u9593\u7701\u7565\u3000\u3000\u3000\u3000\n&lt; \/VirtualHost&gt;\n \n&lt; IfModule md_module&gt;\nMDBaseServer            off\nMDCertificateProtocol   ACME\nMDCAChallenges          http-01 tls-alpn-01\nMDRenewMode             auto \nMDPrivateKeys           RSA 2048\nMDRenewWindow           33%\nMDStoreDir              md\n \n# fake\u8a3c\u660e\u66f8\u7528\nMDCertificateAuthority https:\/\/acme-staging-v02.api.letsencrypt.org\/directory\n# \u672c\u756a\u8a3c\u660e\u66f8\u7528\n#MDCertificateAuthority  https:\/\/acme-v02.api.letsencrypt.org\/directory\nMDCertificateAgreement  https:\/\/letsencrypt.org\/documents\/LE-SA-v1.2-November-15-2017.pdf\n&lt; \/IfModule&gt;<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"httpd-vhostsconf\"><\/span>httpd-vhosts.conf<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u30db\u30b9\u30c8\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\" data-file=\"httpd-vhosts.conf\"><code># Virtual Hosts\n#\n# Required modules: mod_log_config\n \n# If you want to maintain multiple domains\/hostnames on your\n# machine you can setup VirtualHost containers for them. Most configurations\n# use only name-based virtual hosts so the server doesn&#39;t need to worry about\n# IP addresses. This is indicated by the asterisks in the directives below.\n#\n# Please see the documentation at \n# \n# for further details before you try to setup virtual hosts.\n#\n# You may use the command line option &#39;-S&#39; to verify your virtual host\n# configuration.\n \n#\n# VirtualHost example:\n# Almost any Apache directive may go into a VirtualHost container.\n# The first VirtualHost section is used for all requests that do not\n# match a ServerName or ServerAlias in any  block.\n#\n \n&lt; VirtualHost *:80&gt;\n    ServerAdmin admin@example.com\n    DocumentRoot &quot;D:\/www\/public_html&quot;\n    ServerName hoge.com\n    ServerAlias www.hoge.com\n    ErrorLog &quot;${SRVROOT}\/logs\/error.log&quot;\n    CustomLog &quot;${SRVROOT}\/logs\/access.log&quot; common\n&lt; \/VirtualHost&gt;\n \n#&lt;VirtualHost *:80&gt;\n#    ServerAdmin webmaster@dummy-host2.example.com\n#    DocumentRoot &quot;${SRVROOT}\/docs\/dummy-host2.example.com&quot;\n#    ServerName dummy-host2.example.com\n#    ErrorLog &quot;logs\/dummy-host2.example.com-error.log&quot;\n#    CustomLog &quot;logs\/dummy-host2.example.com-access.log&quot; common\n#&lt;\/VirtualHost&gt;<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"httpd-mpmconf\"><\/span>httpd-mpm.conf<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>Windows\u30b5\u30fc\u30d0\u30fc\u306e\u5b89\u5b9a\u5316\u5bfe\u7b56<br>\u5916\u90e8\u304b\u3089\u306eIE\u3067\u306e\u30a2\u30af\u30bb\u30b9\u6642\u306b\u6025\u306b\u753b\u9762\u304c\u6b62\u307e\u308b\u306a\u3069\u306e\u63a5\u7d9a\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u308b\u73fe\u8c61\u304c\u767a\u751f\u3057\u3066\u3044\u305f\u306e\u3067\uff0c\u5b89\u5b9a\u5316\u5bfe\u7b56\u3068\u3057\u3066\u8a2d\u5b9a\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\" data-file=\"httpd-mpm.conf\"><code># WinNT MPM\n# ThreadsPerChild: constant number of worker threads in the server process\n# MaxConnectionsPerChild: maximum number of connections a server process serves\n&lt; IfModule mpm_winnt_module&gt;\n    ThreadsPerChild        150\n    MaxConnectionsPerChild   0\n    AcceptFilter http none \n    AcceptFilter https none \n    EnableSendfile off \n    EnableMMAP off \n    ThreadStackSize 8388608\n&lt; \/IfModule&gt;<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%A8%AD%E5%AE%9A%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E6%96%B0%E6%97%A7%E6%AF%94%E8%BC%83%E3%83%BB%E5%A4%89%E6%9B%B4\"><\/span>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u65b0\u65e7\u6bd4\u8f03\u30fb\u5909\u66f4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u65b0\u65e7\u6bd4\u8f03\u30c4\u30fc\u30eb\uff08<a href=\"https:\/\/winmerge.org\/?lang=ja\" target=\"_blank\" rel=\"noreferrer noopener\">WinMerge<\/a>\uff09\u3092\u4f7f\u7528\u3057\u3066,\u65b0\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u3002<br>Apache\u306e\u65b0\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u540c\u30582.4\u3067\u3042\u308c\u3070\u300cconf\u300d\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u65e7\u304b\u3089\u65b0\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u305d\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057\u3066\u3082\u554f\u984c\u306a\u3044\u3002\u3068\u601d\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E7%A7%BB%E5%8B%95\"><\/span>\u30d5\u30a1\u30a4\u30eb\u79fb\u52d5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u904b\u7528\u4e2d\u306eapache\u3092\u505c\u6b62\u3057\u3066\uff0c\u30eb\u30fc\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u540d\u5909\u66f4(\u4f8b\uff1aApache24 \u2192\u3000\u65e7_Apache24)<br>\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306eapache\u30d5\u30a9\u30eb\u30c0\u30fc\u540d\u3092Apache24\u306b\u5909\u66f4<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"apache%E3%81%AE%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%E7%99%BB%E9%8C%B2\"><\/span>apache\u306e\u30b5\u30fc\u30d3\u30b9\u767b\u9332<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>\u3010\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u306f\u8a2d\u5b9a\u6e08\u307f\u306e\u305f\u3081\u4e0d\u8981\u3011<\/strong><br>Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u7ba1\u7406\u8005\u3068\u3057\u3066\u8d77\u52d5\u3057\u3001httpd -k install \u3068\u5165\u529b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\" data-file=\"\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\"><code>Apache \u3092\u30b5\u30fc\u30d3\u30b9\u306b\u767b\u9332(\u7ba1\u7406\u8005)\nd:\/Program Files\/Apache24\/bin&gt; httpd -k install\n\n\nApache \u3092\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u524a\u9664\nd:\/Program Files\/Apache24\/bin&gt; httpd -k uninstall<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"apache%E3%81%AE%E5%AE%9F%E8%A1%8C%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E8%A8%AD%E5%AE%9A\"><\/span>apache\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>\u3010\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u6642\u306f\u8a2d\u5b9a\u6e08\u307f\u306e\u305f\u3081\u4e0d\u8981\u3011<\/strong><br>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a4\u5bfe\u7b56\u3068\u3057\u3066apache\u3092\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u6a29\u9650\u3067\u5b9f\u884c\u3055\u305b\u308b\u3002<br>Apache\u306e\u30b5\u30fc\u30d3\u30b9\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u30c7\u30d5\u30a9\u30eb\u30c8(admin)\u3092\u4f7f\u7528\u3057\u306a\u3044\u3067\u5c02\u7528\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8(apache)\u3092\u4f5c\u6210\u3057\u3066\u30b5\u30fc\u30d3\u30b9\u306e\u30ed\u30b0\u30aa\u30f3\u30bf\u30d6\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u767b\u9332\u3059\u308b\u3002\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u9650\u5b9a\u3059\u308b\u3053\u3068\u3067,\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u78ba\u4fdd\u3059\u308b\u3002<br>\u5177\u4f53\u4f8b\uff1a\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\uff1aapache\u3000\u6240\u5c5e\u30b0\u30eb\u30fc\u30d7\uff1auser<br>apache\u306eDocumentRoot\uff0cmd\uff0clogs\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u5909\u66f4\u8a31\u53ef\u306b\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"385\" height=\"142\" src=\"https:\/\/na-3.com\/wp_na-blog\/wp-content\/uploads\/2023\/10\/\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u5909\u66f4.jpg\" alt=\"\" class=\"wp-image-9283\" srcset=\"https:\/\/na-3.com\/wp_na-blog\/wp-content\/uploads\/2023\/10\/\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u5909\u66f4.jpg 385w, https:\/\/na-3.com\/wp_na-blog\/wp-content\/uploads\/2023\/10\/\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u5909\u66f4-300x111.jpg 300w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><figcaption class=\"wp-element-caption\">DocumentRoot<\/figcaption><\/figure>\n\n\n\n<p>httpd.conf\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u300cUser daemon\u300d\u3000, \u300cGroup daemon\u300d\u6307\u5b9a\u304b\u3089<br>\u300cUser apache\u300d\u3000, \u300cGroup user\u300d\u306b\u4e00\u5fdc\u5909\u66f4\u3057\u305f\u304c\uff0cWindows\u3067\u306f\u95a2\u4fc2\u306a\u3044\u304b\u3082\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"apache%E3%81%AE%E8%B5%B7%E5%8B%95\"><\/span>apache\u306e\u8d77\u52d5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089 httpd -k start&nbsp;\u3068\u5165\u529b\u3057\u30a8\u30e9\u30fc\u8868\u793a\u3055\u308c\u306a\u3051\u308c\u3070\u8d77\u52d5\u3057\u3066\u3044\u308b\u3002<br>\u53c8\u306f\u30b5\u30fc\u30d3\u30b9\u306eGUI\u304b\u3089\u8d77\u52d5\u3055\u305b\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\" data-file=\"\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\"><code>Apache \u3092\u8d77\u52d5\nd:\/Program Files\/Apache24\/bin&gt; httpd -k start\n\nApache \u3092\u505c\u6b62\nd:\/Program Files\/Apache24\/bin&gt; httpd -k stop<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%82%A8%E3%83%A9%E3%83%BC%E3%83%AD%E3%82%B0%E7%A2%BA%E8%AA%8D\"><\/span>\u30a8\u30e9\u30fc\u30ed\u30b0\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>apache\u306elogs\u30d5\u30a9\u30eb\u30c0\u30fc\u304b\u3089errlog\u3092\u958b\u3044\u3066\u30a8\u30e9\u30fc\u304c\u7121\u3044\u4e8b\u3092\u78ba\u8a8d\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%81%9D%E3%81%AE%E4%BB%96%E3%82%BD%E3%83%95%E3%83%88%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>\u305d\u306e\u4ed6\u30bd\u30d5\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Apache\u4ee5\u5916\u306b\u4e0b\u8a18\u306e\u30bd\u30d5\u30c8\u3082\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09\u3057\u305f\u3002<br>\uff11\uff0e<a href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/09\/phpimagick%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%83%a1%e3%83%a2\/\" target=\"_blank\" rel=\"noopener\" title=\"\">PHP<\/a><br>\uff12\uff0e<a href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/15\/mysql%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a8%e3%83%87%e3%83%bc%e3%82%bf%e3%83%bc%e7%a7%bb%e8%a1%8c\/\" target=\"_blank\" rel=\"noopener\" title=\"\">MySQL<\/a><br>\uff13\uff0e<a href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/25\/imagemagickperlmagick%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Perl<\/a><br>\uff14\uff0e<a href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/15\/mysql%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a8%e3%83%87%e3%83%bc%e3%82%bf%e3%83%bc%e7%a7%bb%e8%a1%8c\/#MySQL_%E3%81%AE%E7%AE%A1%E7%90%86%E3%83%84%E3%83%BC%E3%83%AB\" target=\"_blank\" rel=\"noopener\" title=\"\">WordPress \uff08\u30c7\u30fc\u30bf\u30fc\u79fb\u884c)<\/a><br>\u3053\u308c\u3089\u306b\u3064\u3044\u3066\u306f\u5f8c\u65e5\u307e\u3068\u3081\u3066\u8a18\u8f09\u3059\u308b\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30fc\u30d0\u30fc\u66f4\u65b0\u306b\u4f34\u3044apache\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u305f\u306e\u3067\u624b\u9806 <a class=\"more-link\" href=\"https:\/\/na-3.com\/wp_na-blog\/2023\/10\/01\/apache%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97\/\">\u7d9a\u304d\u3092\u8aad\u3080 &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":9156,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"ngg_post_thumbnail":0,"footnotes":""},"categories":[105,48],"tags":[474,475,476],"class_list":["post-9168","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-server","tag-conf","tag-475","tag-476"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/posts\/9168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/comments?post=9168"}],"version-history":[{"count":26,"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/posts\/9168\/revisions"}],"predecessor-version":[{"id":10863,"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/posts\/9168\/revisions\/10863"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/media\/9156"}],"wp:attachment":[{"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/media?parent=9168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/categories?post=9168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/na-3.com\/wp_na-blog\/wp-json\/wp\/v2\/tags?post=9168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}