nginxでどうやるんだっけ、と思ったので、メモ。 nginxの場合 log_formatディレクティブに$upstream_response_timeという変数を使えるので、 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_refer... 続きを読む
前回と同様に、バーチャルサーバの設定について説明を行います。特に今回はURIのパス名毎の設定を行うlocationディレクティブと関連する設定について説明します。 特に次の設定について説明します。 location alias index try_files error_page internal URIの... 続きを読む
lingering close がなんであるかについては、Apache Performance Tuning - Apache HTTP Server を参照。Apache 2.2.16 と lighttpd 1.4.28 は、必ずアプリケーションレイヤでの lingering close を行う Apache は2秒、lighttpd は5秒nginx 0.8.53 は直前に requ... 続きを読む
daemontoolsのrunファイル。Apache #!/bin/sh exec 2>&1 CONF=/usr/irori/etc/apache/httpd.conf DAEMON=/usr/local/app/apache/bin/httpd DAEMON_ARGS="-f $CONF -DNO_DETACH -DFOREGROUND" if [ ! -x "$DAEMON" ]; then echo "not executable: $DAEMON" exit ... 続きを読む