apache2
Webサーバのルートディレクトリ
/var/www
コマンド
restart
$sudo /etc/init.d/apache2 restart
または
$sudo apache2ctl restart
init.dはlinuxカーネルが読み込む起動スクリプト格納ディレクトリ。
デーモン関連。rcスクリプト関連。
デーモン関連。rcスクリプト関連。
etc/apache2/
コンフィグが置いてある。
apache2.conf
etc/apache2/apache2.conf
httpd.conf
etc/apache2/httpd.conf
サーバ名、メールアドレスなど。
ServerName www.example.co.jp
ServerAdmin info@example.co.jp
ports.conf
etc/apache2/ports.conf
apache2のポート番号の設定
sites-available
etc/apache2/sites-available/
サイトや仮想ホストの設定。
etc/apache2/mods-available/
モジュール。