apache基礎の基礎
apacheの理解を中途半端にするとapache繋がらんみたいなことになりかねない気がしたのでよく見るやつだけでもしっかり理解しとこうと思います。
apacheの公式サイトを読んだものをまとめます。
よく見るディレクティブについて
-Include
機能:設定ファイルの読み込み(ex.httpd-vhosts.conf)
コンテクスト:httpd.conf,<Virtual Host>,<directory>...etc
-ErrorLog
機能:エラーログの収集
コンテクスト:httpd.conf,<Virtual Host>-DocumentRoot
機能:メインのドキュメントツリーの設定
コンテクスト:httpd.conf,<Virtual Host>-ServerName
機能:ホスト名、ポートの指定
コンテクスト:httpd.conf,<Virtual Host>-<Directory>
機能:指定ディレクトリとサブディレクトリにのみに適用
コンテクスト:httpd.conf,<Virtual Host>-Allow from
機能:特定ディレクトリへのアクセス許可
コンテクスト:<Directory>,.htaccess-Deny from
Allowと同じ-Order allow,deny / deny,allow
機能:Allowディレクティブ、denyディレクティブの序列
コンテクスト:<Directory>,.htaccess-AllowOverride
機能:.htaccessで許可されるディレクティブの種類
コンテクスト:<Directory>内-<IfModule>
機能:Moduleの有無に応じて処理を指定
コンテクスト:httpd.conf,<VirtualHost>,ディレクティブ,.htaccess-Options FollowSymlinks
機能:ディレクトリ内でシンボリックリンクを有効にする
コンテクスト:httpd.conf,<VirtualHost>,ディレクティブ,.htaccess-RewriteCond
機能:Rewriteの条件設定
コンテクスト:httpd.conf,<VirtualHost>,ディレクティブ,.htaccess-RewriteEngine
機能:mod_rewriteのオン・オフ設定
コンテクスト:httpd.conf,<VirtualHost>,ディレクティブ,.htaccess-RewriteBase
機能:ディレクトリごとのrewrite設定
コンテクスト:ディレクティブ,.htaccess-RewriteRule
機能:rewriteの具体的指示
コンテクスト:httpd.conf,<VirtualHost>,ディレクティブ,.htaccess
ちなみにコンテクストはディレクティブを書き込める場所のことです。
次は実際にhttpd.confや.htaccessを見てディレクティブの理解を深めたいと思います。