Added response time info to Nginx logging

This commit is contained in:
Tim de Pater 2016-03-16 14:54:20 +01:00
parent 7d28fb3e65
commit 44ccef07a8

View File

@ -8,6 +8,14 @@ http {
include mime.types;
default_type application/octet-stream;
log_format main_timed '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'$request_time $upstream_response_time $pipe $upstream_cache_status';
access_log /dev/stdout main_timed;
error_log /dev/stderr info;
keepalive_timeout 65;
server {
@ -20,9 +28,6 @@ http {
root /var/www/html;
index index.php index.html;
error_log /dev/stderr info;
access_log /dev/stdout;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.php