fix stream module load,
add logging format to streams
This commit is contained in:
parent
1c8432b2d4
commit
5eac025ffe
@ -1,6 +1,7 @@
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
pcre_jit on;
|
||||
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
|
||||
events {
|
||||
worker_connections 768;
|
||||
}
|
||||
@ -38,8 +39,11 @@ http {
|
||||
}
|
||||
stream {
|
||||
# logging
|
||||
access_log access.log;
|
||||
error_log error.log;
|
||||
log_format basic '$remote_addr:$remote_port - $time_local '
|
||||
'$protocol stat:$status bs:$bytes_sent br:$bytes_received '
|
||||
st:'$session_time';
|
||||
access_log access.log basic;
|
||||
error_log error.log basic;
|
||||
|
||||
# include stream
|
||||
include stream/*.conf;
|
||||
|
Loading…
Reference in New Issue
Block a user