Apache HTTP Serverコマンド
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*Apache HTTP Serverコマンド [#qd979684]
-[[Apache HTTP Server]]
**apachectl [#b1ca4207]
-Apache の設定ファイルの構文チェック
apachectl configtest
-Apache の起動・停止・再起動
apachectl start
apachectl stop
apachectl restart
-Apache の再起動 ※処理中のリクエストを考慮する
apachectl -k graceful
apachectl -k graceful-stop
**httpd ※Red Hat系 [#b17827ff]
-バージョンの表示
httpd -version
httpd -V
-モジュールを表示
httpd -M
-設定ファイルの構文チェック
httpd -t
-バーチャルホストの設定を表示
httpd -t -D DUMP_VHOSTS
**apache2 ※Debian系 [#b17827ff]
-バージョンの表示
apache2 -version
apache2 -v
apache2 -V
-モジュールを表示
apache2 -M
**サイトの操作 [#m6be13c9]
***a2ensite [#s2b2a274]
-有効化
a2ensite <site-name>.conf
***a2dissite [#c0321ff1]
-無効化
a2dissite <site-name>.conf
**モジュールの操作 [#ve849799]
***a2enmod [#c24186f0]
-有効化
a2enmod <module-name>
***a2dismod [#o9bb24d5]
-無効化
a2dismod <module-name>
*設定 [#z0de5e4c]
**メインの設定ファイル [#r669e3b2]
-/etc/httpd/conf/httpd.conf
-/etc/apache2/apache2.conf
|ServerRoot | Apache サーバのルートディレクトリ |
|ServerTokens | HTTPレスポンスヘッダのサーバ情報(Server:)|
|ServerSignature | エラーメッセージなどに表示されるサーバ...
|TraceEnable | Traceメソッドの有効化|
|DirectorySlash | |
|DirectoryIndex | ルート(/)を指定して表示するファイルを指...
|Directory | |
-リバースプロキシの設定
|ProxyPreserveHost | 元のHost:ヘッダーを保持する |
|ProxyPass | URLのマッピングを指定する |
|ProxyPassReverse | HTTPレスポンスヘッダのバックエンドサ...
**拡張モジュールの設定ファイル [#sd6a4c13]
-/etc/httpd/conf.modules.d/*.conf
**Apache がリッスンするポートの設定 [#c9ab70a0]
-/etc/apache2/ports.conf
**apache2ctl コマンドの環境変数の設定 [#x6d0bc74]
-/etc/apache2/envvars
**仮想ホストの設定 [#p550373f]
-/etc/apache2/sites-available/
-/etc/apache2/sites-enabled/
**仮想ホスト以外の設定 [#tb4dbe2b]
-/etc/apache2/conf-available/
-/etc/apache2/conf-enabled/
**拡張モジュールの設定 [#k990f22f]
-/etc/apache2/mods-available/
-/etc/apache2/mods-enabled/
**ディレクトリ単位で設定するファイル [#a17c5b8c]
-.htaccess
--設定ファイルが保存されているディレクトリを含めた配下の...
*ログ [#gfff2ffd]
-/var/log/apache2/access.log
-/var/log/apache2/error.log
-/var/log/apache2/<hostname>_access.log
-/var/log/apache2/<hostname>_error.log
*参考情報 [#h2fd683a]
-[[Apache HTTP Server]]
-[[Linuxコマンド]]
終了行:
*Apache HTTP Serverコマンド [#qd979684]
-[[Apache HTTP Server]]
**apachectl [#b1ca4207]
-Apache の設定ファイルの構文チェック
apachectl configtest
-Apache の起動・停止・再起動
apachectl start
apachectl stop
apachectl restart
-Apache の再起動 ※処理中のリクエストを考慮する
apachectl -k graceful
apachectl -k graceful-stop
**httpd ※Red Hat系 [#b17827ff]
-バージョンの表示
httpd -version
httpd -V
-モジュールを表示
httpd -M
-設定ファイルの構文チェック
httpd -t
-バーチャルホストの設定を表示
httpd -t -D DUMP_VHOSTS
**apache2 ※Debian系 [#b17827ff]
-バージョンの表示
apache2 -version
apache2 -v
apache2 -V
-モジュールを表示
apache2 -M
**サイトの操作 [#m6be13c9]
***a2ensite [#s2b2a274]
-有効化
a2ensite <site-name>.conf
***a2dissite [#c0321ff1]
-無効化
a2dissite <site-name>.conf
**モジュールの操作 [#ve849799]
***a2enmod [#c24186f0]
-有効化
a2enmod <module-name>
***a2dismod [#o9bb24d5]
-無効化
a2dismod <module-name>
*設定 [#z0de5e4c]
**メインの設定ファイル [#r669e3b2]
-/etc/httpd/conf/httpd.conf
-/etc/apache2/apache2.conf
|ServerRoot | Apache サーバのルートディレクトリ |
|ServerTokens | HTTPレスポンスヘッダのサーバ情報(Server:)|
|ServerSignature | エラーメッセージなどに表示されるサーバ...
|TraceEnable | Traceメソッドの有効化|
|DirectorySlash | |
|DirectoryIndex | ルート(/)を指定して表示するファイルを指...
|Directory | |
-リバースプロキシの設定
|ProxyPreserveHost | 元のHost:ヘッダーを保持する |
|ProxyPass | URLのマッピングを指定する |
|ProxyPassReverse | HTTPレスポンスヘッダのバックエンドサ...
**拡張モジュールの設定ファイル [#sd6a4c13]
-/etc/httpd/conf.modules.d/*.conf
**Apache がリッスンするポートの設定 [#c9ab70a0]
-/etc/apache2/ports.conf
**apache2ctl コマンドの環境変数の設定 [#x6d0bc74]
-/etc/apache2/envvars
**仮想ホストの設定 [#p550373f]
-/etc/apache2/sites-available/
-/etc/apache2/sites-enabled/
**仮想ホスト以外の設定 [#tb4dbe2b]
-/etc/apache2/conf-available/
-/etc/apache2/conf-enabled/
**拡張モジュールの設定 [#k990f22f]
-/etc/apache2/mods-available/
-/etc/apache2/mods-enabled/
**ディレクトリ単位で設定するファイル [#a17c5b8c]
-.htaccess
--設定ファイルが保存されているディレクトリを含めた配下の...
*ログ [#gfff2ffd]
-/var/log/apache2/access.log
-/var/log/apache2/error.log
-/var/log/apache2/<hostname>_access.log
-/var/log/apache2/<hostname>_error.log
*参考情報 [#h2fd683a]
-[[Apache HTTP Server]]
-[[Linuxコマンド]]
ページ名: