Permalink
Browse files

Merge "Include app_id in nginx's access log for dev_setup"

  • Loading branch information...
2 parents a4d83fa + 966d188 commit 7075ae42ec15f2d0e26bfb4df8923476db5ddcd4 @figof figof committed with Gerrit Code Review Aug 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 dev_setup/cookbooks/nginx/templates/default/router-nginx.conf.erb
@@ -19,7 +19,7 @@ http {
log_format main '$host - [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
- '$remote_addr response_time:$upstream_response_time';
+ '$remote_addr response_time:$upstream_response_time app_id:$app_id';
access_log <%= node[:nginx][:log_home] %>/nginx_router_main_access.log main;
@@ -71,6 +71,7 @@ http {
proxy_read_timeout 120;
set $health_monitor '';
+ set $app_id 0;
if ($http_user_agent = "HTTP-Monitor/1.1") {
set $health_monitor T;
}

0 comments on commit 7075ae4

Please sign in to comment.