nul-point

完全に自分用の備忘録です。

apacheでVirtualHost一覧を出力する

出力の結果は同じように見える 何か違いがあるとは思うけどまだ理解してない そのうち調べよう・・・と思ったら純粋にただのsynonym(同意語)だった・・・・

[~]/usr/local/apache2/bin/httpd -t -D DUMP_VHOSTS
VirtualHost configuration:
192.168.2.100:80      example.com (/usr/local/apache2/conf/httpd.conf:32)
Syntax OK

[~]/usr/local/apache2/bin/httpd -S
VirtualHost configuration:
192.168.2.100:80      example.com (/usr/local/apache2/conf/httpd.conf:32)
Syntax OK

[~]/usr/local/apache2/bin/httpd -h
Usage: /usr/local/apache2/bin/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]
Options:
  -D name            : define a name for use in <IfDefine name> 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 settings (currently only vhost settings)
  -S                 : a synonym for -t -D DUMP_VHOSTS
  -t -D DUMP_MODULES : show all loaded modules 
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files
  -T                 : start without DocumentRoot(s) check