Apache2 setting files
11月 10, 2011
Apache2の設定に関する備忘録など。どうやらDebian GNUはLinuxでも特異的らしい。
# ls -al /etc/apache2 合計 84 drwxr-xr-x 7 root root 4096 2011-10-14 15:22 . drwxr-xr-x 76 root root 4096 2011-11-09 17:15 .. -rw-r--r-- 1 root root 7994 2011-03-23 06:13 apache2.conf drwxr-xr-x 2 root root 4096 2011-10-14 15:22 conf.d -rw-r--r-- 1 root root 1169 2011-03-23 06:13 envvars -rw-r--r-- 1 root root 0 2011-08-22 11:43 httpd.conf -rw-r--r-- 1 root root 31063 2011-03-23 06:13 magic drwxr-xr-x 2 root root 12288 2011-10-14 15:22 mods-available drwxr-xr-x 2 root root 4096 2011-08-22 11:43 mods-enabled -rw-r--r-- 1 root root 750 2011-03-23 06:13 ports.conf drwxr-xr-x 2 root root 4096 2011-10-14 15:22 sites-available drwxr-xr-x 2 root root 4096 2011-08-22 11:43 sites-enabled
- /etc/apache2/apache2.conf
- /etc/apache2/httpd.conf
- /etc/apache2/ports.conf
- /etc/apache2/mods-enabled/
- /etc/apache2/mods-available
- /etc/apache2/sites-enabled/
- /etc/apache2/sites-available
- /var/www/
- /var/log/apach2/
- /usr/lib/cgi-bin
基本設定ファイル
デフォルトでは何も書かれていないサイズもゼロのファイル。apache2.confにIncudeされている。自分用の設定をしたい場合はapache2.confを触らないで、このhttpd.confを書き換えるらしい。
Listenとかポート関係の設定だけを記述
使用するモジュールへのシンボリックリンクを置く
モジュールファイルを置く
サイト定義ファイルへのシンボリックリンクを置く
サイト定義ファイルを置く
ドキュメントルート。/etc/apache2/sites-available/defaultで指定され、/etc/apache2/sites-enabled/000-defaultにシンボリックリンクが貼られている。
ログファイルを置く
cgiを置く
Apacheの起動は/etc/init.d/apache2から行う。
# ls -al /etc/apache2/mods-enabled 合計 8 drwxr-xr-x 2 root root 4096 2011-08-22 11:43 . drwxr-xr-x 7 root root 4096 2011-10-14 15:22 .. lrwxrwxrwx 1 root root 28 2011-08-22 11:43 alias.conf -> ../mods-available/alias.conf lrwxrwxrwx 1 root root 28 2011-08-22 11:43 alias.load -> ../mods-available/alias.load lrwxrwxrwx 1 root root 33 2011-08-22 11:43 auth_basic.load -> ../mods-available/auth_basic.load lrwxrwxrwx 1 root root 33 2011-08-22 11:43 authn_file.load -> ../mods-available/authn_file.load lrwxrwxrwx 1 root root 36 2011-08-22 11:43 authz_default.load -> ../mods-available/authz_default.load lrwxrwxrwx 1 root root 38 2011-08-22 11:43 authz_groupfile.load -> ../mods-available/authz_groupfile.load lrwxrwxrwx 1 root root 33 2011-08-22 11:43 authz_host.load -> ../mods-available/authz_host.load lrwxrwxrwx 1 root root 33 2011-08-22 11:43 authz_user.load -> ../mods-available/authz_user.load lrwxrwxrwx 1 root root 32 2011-08-22 11:43 autoindex.conf -> ../mods-available/autoindex.conf lrwxrwxrwx 1 root root 32 2011-08-22 11:43 autoindex.load -> ../mods-available/autoindex.load lrwxrwxrwx 1 root root 26 2011-08-22 11:43 cgi.load -> ../mods-available/cgi.load lrwxrwxrwx 1 root root 30 2011-08-22 11:43 deflate.conf -> ../mods-available/deflate.conf lrwxrwxrwx 1 root root 30 2011-08-22 11:43 deflate.load -> ../mods-available/deflate.load lrwxrwxrwx 1 root root 26 2011-08-22 11:43 dir.conf -> ../mods-available/dir.conf lrwxrwxrwx 1 root root 26 2011-08-22 11:43 dir.load -> ../mods-available/dir.load lrwxrwxrwx 1 root root 26 2011-08-22 11:43 env.load -> ../mods-available/env.load lrwxrwxrwx 1 root root 27 2011-08-22 11:43 mime.conf -> ../mods-available/mime.conf lrwxrwxrwx 1 root root 27 2011-08-22 11:43 mime.load -> ../mods-available/mime.load lrwxrwxrwx 1 root root 34 2011-08-22 11:43 negotiation.conf -> ../mods-available/negotiation.conf lrwxrwxrwx 1 root root 34 2011-08-22 11:43 negotiation.load -> ../mods-available/negotiation.load lrwxrwxrwx 1 root root 27 2011-08-22 11:43 perl.load -> ../mods-available/perl.load lrwxrwxrwx 1 root root 27 2011-08-22 11:43 php5.conf -> ../mods-available/php5.conf lrwxrwxrwx 1 root root 27 2011-08-22 11:43 php5.load -> ../mods-available/php5.load lrwxrwxrwx 1 root root 29 2011-08-22 11:43 python.load -> ../mods-available/python.load lrwxrwxrwx 1 root root 33 2011-08-22 11:43 reqtimeout.conf -> ../mods-available/reqtimeout.conf lrwxrwxrwx 1 root root 33 2011-08-22 11:43 reqtimeout.load -> ../mods-available/reqtimeout.load lrwxrwxrwx 1 root root 31 2011-08-22 11:43 setenvif.conf -> ../mods-available/setenvif.conf lrwxrwxrwx 1 root root 31 2011-08-22 11:43 setenvif.load -> ../mods-available/setenvif.load lrwxrwxrwx 1 root root 29 2011-08-22 11:43 status.conf -> ../mods-available/status.conf lrwxrwxrwx 1 root root 29 2011-08-22 11:43 status.load -> ../mods-available/status.load
コメントはまだありません








