しらべるくんφ(・w・。

Webのことだったり、わからないこと調べたときのメモがわりに。引用多いです。。

Apache HTTP Server

公式サイト:http://www.apache.org/
引用元:http://httpd.apache.org/docs/2.4/ja/(日本語)

.htaccess

.htaccess ファイル (「分散設定ファイル」)は ディレクトリ毎に設定を変更する方法を提供します。ディレクティブの書かれたファイルをディレクトリに置くことで、そのディレクトリとその サブディレクトリすべてにディレクティブを適用させることができます。

httpd.conf

メインの Apache 設定 ファイル。 デフォルトの場所は /usr/local/apache2/conf/httpd.conf ですが、実行時やコンパイル時の設定により違う場所に移動されて いるかもしれません。

Listen ディレクティブ

Listen ディレクティブは Apache が特定の IP アドレスやポート番号だけを listen するように指定します。 デフォルトでは全ての IP インターフェースのリクエストに応答します。

Alias ディレクティブ

Alias ディレクティブはドキュメントを ローカルファイルシステムDocumentRoot 以外の場所に保管することを可能にします。 URL の (% が復号された) パスが url-path で始まるものは directory-filename で始まるローカルファイルにマップされます。 Listen ディレクティブは 現在は必須のディレクティブとなりました。 もし設定ファイルになければ、サーバは起動に失敗します。 これは以前のバージョンの Apache から変更のあった部分です。

mod_rewrite

The mod_rewrite module uses a rule-based rewriting engine, based on a PCRE regular-expression parser, to rewrite requested URLs on the fly. By default, mod_rewrite maps a URL to a filesystem path. However, it can also be used to redirect one URL to another URL, or to invoke an internal proxy fetch.

mod_rewrite provides a flexible and powerful way to manipulate URLs using an unlimited number of rules. Each rule can have an unlimited number of attached rule conditions, to allow you to rewrite URL based on server variables, environment variables, HTTP headers, or time stamps.

googleで翻訳

このmod_rewriteモジュールは、PCRE正規表現パーサーに基づくルールベースの書き換えエンジンを使用して、要求されたURLをその場で書き換えます。デフォルトでmod_rewriteは、URLをファイルシステムパスにマップします。ただし、あるURLを別のURLにリダイレクトしたり、内部プロキシフェッチを呼び出したりするためにも使用できます。