Apache Httpdでの表題の件を調べたい。モジュールをちゃんと読んでいるのだろうか?と疑問に思う点があったので確認。
■ 環境
- Apache httpd 2.4.23
- Amazon Linux
■ static
随分と前によく使っていたのは下記である。
$ httpd -l
Compiled in modules:
core.c
mod_so.c
http_core.c
$
自身でコンパイルしていインストールしていたので、ほとんど静的モジュールとして組み込んでいた。
しかし最近はパッケージ管理で、あるものを入れているという事がほとんどなので、動的モジュール(DSO)はどうやったら見れるかな?と疑問に。
■ shared
下記の方法で見られるようである。
$ httpd -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
access_compat_module (shared)
actions_module (shared)
alias_module (shared)
:
静的モジュールも含めて全てのモジュールのようだ。
$ httpd -h
Usage: httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
-D name : define a name for use in directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t -D DUMP_INCLUDES: show all included configuration files
-t : run syntax check for config files
-T : start without DocumentRoot(s) check
-X : debug mode (only one worker, do not detach)
$
以上。