{"id":217,"date":"2018-04-17T08:50:03","date_gmt":"2018-04-16T23:50:03","guid":{"rendered":"https:\/\/dong1lkim.oboki.net\/?p=217"},"modified":"2019-09-01T22:21:42","modified_gmt":"2019-09-01T13:21:42","slug":"linux-httpd-%ec%84%a4%ec%b9%98","status":"publish","type":"post","link":"https:\/\/oboki.net\/workspace\/system\/linux\/linux-httpd-%ec%84%a4%ec%b9%98\/","title":{"rendered":"[Linux] httpd \uc124\uce58"},"content":{"rendered":"<h1>Apache Httpd \uc124\uce58<\/h1>\n<h2>\uc758\uc874 \ud328\ud0a4\uc9c0 \ubc84\uc804<\/h2>\n<table>\n<thead>\n<tr>\n<th>PROGRAM<\/th>\n<th>VERSION<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>apr<\/td>\n<td>1.6.2<\/td>\n<\/tr>\n<tr>\n<td>apr-util<\/td>\n<td>1.5.3<\/td>\n<\/tr>\n<tr>\n<td>curl<\/td>\n<td>7.30.0<\/td>\n<\/tr>\n<tr>\n<td>pcre<\/td>\n<td>8.00<\/td>\n<\/tr>\n<tr>\n<td>openssl<\/td>\n<td>1.0.2m<\/td>\n<\/tr>\n<tr>\n<td>httpd<\/td>\n<td>2.4.27<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>apr \uc124\uce58<\/h2>\n<h3>1. Configuration<\/h3>\n<pre><code>.\/configure --prefix=\/apps\/share\/apr\/1.6.2\n<\/code><\/pre>\n<h3>2. Build<\/h3>\n<p><code>make<\/code><\/p>\n<h3>3. Install<\/h3>\n<p><code>make install<\/code><\/p>\n<h2>apr-util \uc124\uce58<\/h2>\n<h3>1. Configuration<\/h3>\n<pre><code>.\/configure --prefix=\/apps\/share\/apr-util\/1.5.3 \\\n--with-apr=\/apps\/share\/apr\n<\/code><\/pre>\n<h3>2. Build<\/h3>\n<p><code>make<\/code><\/p>\n<h3>3. Install<\/h3>\n<p><code>make install<\/code><\/p>\n<h2>curl \uc124\uce58<\/h2>\n<h3>1. Configuration<\/h3>\n<pre><code>.\/configure --prefix=\/apps\/share\/curl\/7.30.0\n<\/code><\/pre>\n<h3>2. Build<\/h3>\n<p><code>make<\/code><\/p>\n<h3>3. Install<\/h3>\n<p><code>make install<\/code><\/p>\n<h2>pcre \uc124\uce58<\/h2>\n<h3>1. Configuration<\/h3>\n<pre><code>.\/configure --prefix=\/apps\/share\/pcre\/8.00\n<\/code><\/pre>\n<h3>2. Build<\/h3>\n<p><code>make<\/code><\/p>\n<h3>3. Install<\/h3>\n<p><code>make install<\/code><\/p>\n<h2>openssl \uc124\uce58<\/h2>\n<h3>1. Configuration<\/h3>\n<pre><code>.\/config --prefix=\/apps\/share\/openssl\/1.0.2m \\\n--openssldir=\/apps\/share\/openssl\/1.0.2m -fPIC\n<\/code><\/pre>\n<h3>2. Build<\/h3>\n<p><code>make<\/code><\/p>\n<h3>3. Install<\/h3>\n<p><code>make install<\/code><\/p>\n<h2>httpd \uc124\uce58<\/h2>\n<h3>1. Configuration<\/h3>\n<pre><code>.\/configure --prefix=\/apps\/httpd\/2.4.27 --with-apr=\/apps\/share\/apr \\\n--with-apr-util=\/apps\/share\/apr-util --with-pcre=\/apps\/share\/pcre \\\n--enable-module=so --enable-so --enable-mods-shared=ssl --with-ssl=\/apps\/share\/openssl \\\n--enable-ssl=shared --enable-rewrite\n<\/code><\/pre>\n<h3>2. Build<\/h3>\n<p><code>make<\/code><\/p>\n<h3>3. Install<\/h3>\n<p><code>make install<\/code><\/p>\n<h3>4. Httpd Configuration<\/h3>\n<p><code>vi \/apps\/httpd\/2.4.27\/conf\/httpd.conf<\/code><\/p>\n<pre><code class=\"conf\">#\n# ServerRoot: The top of the directory tree under which the server's\n# configuration, error, and log files are kept.\n#\nServerRoot \"\/apps\/httpd\" ## \ubcc0\uacbd\n\n#\n# Listen: Allows you to bind Apache to specific IP addresses and\/or\n# ports, instead of the default. See also the &lt;VirtualHost&gt;\n# directive.\n#\n# Change this to Listen on specific IP addresses as shown below to \n# prevent Apache from glomming onto all bound IP addresses.\n#\nListen 80 ## \ubcc0\uacbd\n\n#\n# Dynamic Shared Object (DSO) Support\n#\n# To be able to use the functionality of a module which was built as a DSO you\n# have to place corresponding `LoadModule' lines at this location so the\n# directives contained in it are actually available _before_ they are used.\n# Statically compiled modules (those listed by `httpd -l') do not need\n# to be loaded here.\n#\nLoadModule socache_shmcb_module modules\/mod_socache_shmcb.so ## \uc8fc\uc11d \ud574\uc81c\nLoadModule proxy_module modules\/mod_proxy.so ## \uc8fc\uc11d \ud574\uc81c\nLoadModule proxy_http_module modules\/mod_proxy_http.so ## \uc8fc\uc11d \ud574\uc81c\nLoadModule php7_module        modules\/libphp7.so\n\n&lt;IfModule unixd_module&gt;\n#\n# If you wish httpd to run as a different user or group, you must run\n# httpd as root initially and it will switch.  \n#\nUser httpd ## httpd \ub370\ubaac \uc2e4\ud589 \uc2dc\uc2a4\ud15c \uc720\uc800\nGroup httpd ## \uc704 \uc720\uc800\uc758 \uadf8\ub8f9\n\n&lt;\/IfModule&gt;\n\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 you@example.com ## \ubcc0\uacbd\n\n#\n# ServerName gives the name and port that the server uses to identify itself.\n# This can often be determined automatically, but we recommend you specify\n# it explicitly to prevent problems during startup.\n#\n# If your host doesn't have a registered DNS name, enter its IP address here.\n#\nServerName 192.168.179.84 ## \ubcc0\uacbd\n\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#\nDocumentRoot \"\/data\/docs\/wp_bigdata\" ## \ubcc0\uacbd\n&lt;Directory \"\/data\/docs\/wp_bigdata\"&gt; ## \ubcc0\uacbd\n    Options Indexes FollowSymLinks\n    AllowOverride None\n    Require all granted\n&lt;\/Directory&gt;\n\n#\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.php index.html ## \ubcc0\uacbd\n&lt;\/IfModule&gt;\n\n#\n# ErrorLog: The location of the error log file.\n#\nErrorLog \"\/logs\/httpd\/error_log\" ## \ubcc0\uacbd\n\n#\n# LogLevel: Control the number of messages logged to the error_log.\n# Possible values include: debug, info, notice, warn, error, crit,\n# alert, emerg.\n#\nLogLevel warn\n\n&lt;IfModule log_config_module&gt;\n    #\n    # The following directives define some format nicknames for use with\n    # a CustomLog directive (see below).\n    #\n    LogFormat \"%h %l %u %t \\\"%r\\\" %&gt;s %b \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\"\" combined\n    LogFormat \"%h %l %u %t \\\"%r\\\" %&gt;s %b\" common\n\n    &lt;IfModule logio_module&gt;\n      # You need to enable mod_logio.c to use %I and %O\n      LogFormat \"%h %l %u %t \\\"%r\\\" %&gt;s %b \\\"%{Referer}i\\\" \\\"%{User-Agent}i\\\" %I %O\" combinedio\n    &lt;\/IfModule&gt;\n\n    #\n    # The location and format of the access logfile (Common Logfile Format).\n    # If you do not define any access logfiles within a &lt;VirtualHost&gt;\n    # container, they will be logged here.  Contrariwise, if you *do*\n    # define per-&lt;VirtualHost&gt; access logfiles, transactions will be\n    # logged therein and *not* in this file.\n    #\n    CustomLog \"\/logs\/httpd\/access_log\" common ## \ubcc0\uacbd\n\n    #\n    # If you prefer a logfile with access, agent, and referer information\n    # (Combined Logfile Format) you can use the following directive.\n    #\n    #CustomLog \"logs\/access_log\" combined\n&lt;\/IfModule&gt;\n\n&lt;IfModule alias_module&gt;\n    #\n    # ScriptAlias: This controls which directories contain server scripts. \n    # ScriptAliases are essentially the same as Aliases, except that\n    # documents in the target directory are treated as applications and\n    # run by the server when requested rather than as documents sent to the\n    # client.  The same rules about trailing \"\/\" apply to ScriptAlias\n    # directives as to Alias.\n    #\n    ScriptAlias \/cgi-bin\/ \"\/apps\/httpd\/cgi-bin\/\" ## \uacbd\ub85c \ud655\uc778\n\n&lt;\/IfModule&gt;\n\n&lt;IfModule mime_module&gt;\n    #\n    # TypesConfig points to the file containing the list of mappings from\n    # filename extension to MIME-type.\n    #\n    TypesConfig conf\/mime.types\n\n    #\n    # AddType allows you to add to or override the MIME configuration\n    # file specified in TypesConfig for specific file types.\n    #\n    #AddType application\/x-gzip .tgz\n    #\n    # AddEncoding allows you to have certain browsers uncompress\n    # information on the fly. Note: Not all browsers support this.\n    #\n    #AddEncoding x-compress .Z\n    #AddEncoding x-gzip .gz .tgz\n    #\n    # If the AddEncoding directives above are commented-out, then you\n    # probably should define those extensions to indicate media types:\n    #\n    AddType application\/x-compress .Z\n    AddType application\/x-gzip .gz .tgz\n    AddType application\/x-httpd-php .php .html ## \ucd94\uac00\n&lt;\/IfModule&gt;\n\n# Supplemental configuration\n#\n# The configuration files in the conf\/extra\/ directory can be \n# included to add extra features or to modify the default configuration of \n# the server, or you may simply copy their contents here and change as \n# necessary.\n\n# Virtual hosts\n#Include conf\/extra\/httpd-vhosts.conf ## virtual host \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0 \ud65c\uc131\ud654\ud55c \ub2e4\uc74c \ud574\ub2f9 \ud30c\uc77c \ub0b4\uc6a9 \uc218\uc815\n\n# Secure (SSL\/TLS) connections\n#Include conf\/extra\/httpd-ssl.conf ## TLS \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0 \ud65c\uc131\ud654\ud55c \ub2e4\uc74c \ud574\ub2f9 \ud30c\uc77c \ub0b4\uc6a9 \uc218\uc815\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Apache Httpd \uc124\uce58 \uc758\uc874 \ud328\ud0a4\uc9c0 \ubc84\uc804 PROGRAM VERSION apr 1.6.2 apr-util 1.5.3 curl 7.30.0 pcre 8.00 openssl 1.0.2m httpd 2.4.27 apr \uc124\uce58 1. Configuration .\/configure &#8211;prefix=\/apps\/share\/apr\/1.6.2 2. Build make 3. Install make install apr-util \uc124\uce58 1. Configuration .\/configure &#8211;prefix=\/apps\/share\/apr-util\/1.5.3 \\ &#8211;with-apr=\/apps\/share\/apr 2. Build make 3. Install make install curl \uc124\uce58 1. Configuration .\/configure &#8211;prefix=\/apps\/share\/curl\/7.30.0 2. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[117,83],"class_list":["post-217","post","type-post","status-publish","format-standard","hentry","category-linux","tag-httpd","tag-linux"],"_links":{"self":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":17,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":1275,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/posts\/217\/revisions\/1275"}],"wp:attachment":[{"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oboki.net\/workspace\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}