このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
|
apache:2.4:setting [2020/11/20 09:21] y2sunlight [ドキュメントディレクトリのマッピング] |
apache:2.4:setting [2020/11/20 09:32] (現在) y2sunlight [Apacheの設定ファイル] |
||
|---|---|---|---|
| 行 18: | 行 18: | ||
| ===== Apacheの設定ファイル ===== | ===== Apacheの設定ファイル ===== | ||
| - | Apacheのメインの設定ファイルは **httpd.conf** です。httpd.conf はUNIX版とWindows版で記述方法や基本的な設定内容は同じです。httpd.conf は、テキストファイルなので、「メモ帳」などのテキストエディターで編集できます。編集後はApacheを再起動して下さい。 | + | Apacheのメインの設定ファイルは **httpd.conf** です。XAMPPのhttpd.conf は以下に配置されています。 |
| + | |||
| + | < | ||
| + | {XAMPP Install folder}\apache\conf\*httpd.conf | ||
| + | </ | ||
| + | |||
| + | httpd.conf はUNIX版とWindows版で記述方法や基本的な設定内容は同じです。httpd.conf は、テキストファイルなので、「メモ帳」などのテキストエディターで編集できます。編集後はApacheを再起動して下さい。 | ||
| httpd.confの文法チェックは、コマンドプロンプトから以下のコマンドで実行できます。 | httpd.confの文法チェックは、コマンドプロンプトから以下のコマンドで実行できます。 | ||
| 行 165: | 行 171: | ||
| また、AliasMatch や ScriptAliasMatch ディレクティブ を使えば正規表現に基づいた強力なエイリアス設定を行なうことができます。 | また、AliasMatch や ScriptAliasMatch ディレクティブ を使えば正規表現に基づいた強力なエイリアス設定を行なうことができます。 | ||
| + | |||
| + | \\ | ||
| ==== ユーザディレクトリ(UserDir) ==== | ==== ユーザディレクトリ(UserDir) ==== | ||
| 行 210: | 行 218: | ||
| UserDir enabled user1 user2 user3 | UserDir enabled user1 user2 user3 | ||
| </ | </ | ||
| + | |||
| + | \\ | ||
| ==== シンボリックリンク ==== | ==== シンボリックリンク ==== | ||
| 行 216: | 行 226: | ||
| 例:Apacheインストール時のDocumentRootのOptionsディレクティブの設定 | 例:Apacheインストール時のDocumentRootのOptionsディレクティブの設定 | ||
| - | < | + | < |
| < | < | ||
| Options Indexes FollowSymLinks Includes ExecCGI | Options Indexes FollowSymLinks Includes ExecCGI | ||