設定ファイルの取込(Include)

広告

「Include」は他に用意された設定ファイルを取り込む場合に使います。

Include ファイル名

ファイル名は絶対パスでの指定、又は「ServerRoot」からの相対パスで指定します。

それでは「httpd.conf」ファイルで「Include」で検索してみてください。440行目付近に次の記述が見つかります。

# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be 
# included to add extra features or to modify the default configuration of 
# the server, or you may simply copy their contents here and change as 
# necessary.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf

# Language settings
#Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
#Include conf/extra/httpd-default.conf

# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf

現在は全てコメントとなっていますが「httpd.conf」以外に用意された設定ファイルを「httpd.conf」に取り込みたい場合にはコメントを外して「Include」を有効にします。

( Written by Tatsuo Ikura )