|
|
|
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
|
|
|
|
user root; |
|
|
|
|
worker_processes auto; |
|
|
|
|
worker_rlimit_nofile 50000; |
|
|
|
|
error_log /data/xcdn/logs/error.log; |
|
|
|
|
error_log /usr/local/nginx/logs/error.log; |
|
|
|
|
#error_log logs/error.log notice; |
|
|
|
|
#error_log logs/error.log info; |
|
|
|
|
|
|
|
|
@ -25,10 +25,10 @@ stream {
@@ -25,10 +25,10 @@ stream {
|
|
|
|
|
'$session_time "$upstream_addr" ' |
|
|
|
|
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"'; |
|
|
|
|
#stream日志路径 |
|
|
|
|
access_log /data/xcdn/logs/stream-access.log proxy; |
|
|
|
|
access_log /usr/local/nginx/logs/stream-access.log proxy; |
|
|
|
|
open_log_file_cache off; |
|
|
|
|
#载入stream配置 |
|
|
|
|
include /data/xcdn/conf/stream/*.conf; |
|
|
|
|
include /usr/local/nginx/conf/stream/*.conf; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
http { |
|
|
|
@ -113,6 +113,6 @@ http {
@@ -113,6 +113,6 @@ http {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#载入额外的配置 |
|
|
|
|
include /data/xcdn/conf/cdn/*.conf; |
|
|
|
|
include /data/xcdn/conf/vhost/*.conf; |
|
|
|
|
include /usr/local/nginx/conf/cdn/*.conf; |
|
|
|
|
include /usr/local/nginx/conf/vhost/*.conf; |
|
|
|
|
} |
|
|
|
|