mirror of
https://github.com/mashirozx/docker-php-nginx.git
synced 2024-11-25 16:28:14 +08:00
Added response time info to Nginx logging
This commit is contained in:
parent
7d28fb3e65
commit
44ccef07a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user