« FTP | Main | あわわわわわ »

Apacheの設定

Apacheを設定する。


CustomLog logs/ドメイン.com-access_log combined env=!nolog

#ログから指定したアドレスを除く
SetEnvIfNoCase Remote_Addr アドレス nolog
#ログから指定した拡張子ファイルを除く
SetEnvIfNoCase Request_URI "\.(gif)|(jpg)|(png)|(css)|(js)|(swf)|(ico)$" nolog

//SetEnvIfNoCaseは大文字、小文字の区別をしない。
//SetEnvIfの方は区別する。

アクセス数はないに等しいのでホスト名を取得させる
HostnameLookups On

バーチャルホストを設定(2つのサイト)している場合、2つとも設定しないと動作しなかった(*´ェ`)

|
|

« FTP | Main | あわわわわわ »

Comments

Post a comment



(Not displayed with comment.)


Comments are moderated, and will not appear on this weblog until the author has approved them.



TrackBack

TrackBack URL for this entry:
http://app.cocolog-nifty.com/t/trackback/64149/42718951

Listed below are links to weblogs that reference Apacheの設定:

« FTP | Main | あわわわわわ »