mirror of
https://github.com/mashirozx/docker-php-nginx.git
synced 2024-11-21 22:38:14 +08:00
Making sure output from PHP-FPM is redirected to the Docker logs
This commit is contained in:
parent
257f26e6da
commit
ad15933ed3
@ -1,3 +1,7 @@
|
||||
[global]
|
||||
; Log to stderr
|
||||
error_log = /dev/stderr
|
||||
|
||||
[www]
|
||||
; Enable status page
|
||||
pm.status_path = /fpm-status
|
||||
@ -29,3 +33,6 @@ pm.max_requests = 500
|
||||
|
||||
; Make sure the FPM workers can reach the environment variables for configuration
|
||||
clear_env = no
|
||||
|
||||
; Catch output from PHP
|
||||
catch_workers_output = yes
|
||||
|
@ -15,7 +15,7 @@ http {
|
||||
'$request_time $upstream_response_time $pipe $upstream_cache_status';
|
||||
|
||||
access_log /dev/stdout main_timed;
|
||||
error_log /dev/stderr info;
|
||||
error_log /dev/stderr notice;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user