Skip to content

Instantly share code, notes, and snippets.

@freeseacher
Created January 30, 2019 13:50
Show Gist options
  • Save freeseacher/2ea287574e13d9b4418305c7aba361eb to your computer and use it in GitHub Desktop.
Save freeseacher/2ea287574e13d9b4418305c7aba361eb to your computer and use it in GitHub Desktop.
# cat nginx1.conf
user www-data;
events {
}
http {
server {
listen 0.0.0.0:8080;
error_log /dev/stdout debug;
access_log /dev/stdout;
location / {
root /etc/nginx;
}
}
}
2019/01/30 13:46:46 [info] 410#410: *3 writev() failed (32: Broken pipe) while sending response to client, client: 127.0.0.1, server: , request: "GET /bigfile HTTP/1.0", host: "my"
127.0.0.1 - - [30/Jan/2019:13:46:46 +0000] "GET /bigfile HTTP/1.0" 200 323977163 "-" "curl/7.58.0"
user www-data;
events {
}
http {
upstream my {
server 127.0.0.1:8080 fail_timeout=10s;
}
server {
listen 0.0.0.0:80;
error_log /dev/stdout debug;
access_log /dev/stdout;
location / {
proxy_pass http://my;
}
}
}
2019/01/30 13:46:46 [warn] 407#407: *11 an upstream response is buffered to a temporary file /var/cache/nginx/proxy_temp/4/00/0000000004 while reading upstream, client: 172.17.0.1, server: , request: "GET /bigfile HTTP/1.1", upstream: "http://127.0.0.1:8080/bigfile", host: "0.0.0.0:8080"
2019/01/30 13:46:46 [info] 407#407: *11 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while reading upstream, client: 172.17.0.1, server: , request: "GET /bigfile HTTP/1.1", upstream: "http://127.0.0.1:8080/bigfile", host: "0.0.0.0:8080"
172.17.0.1 - - [30/Jan/2019:13:46:46 +0000] "GET /bigfile HTTP/1.1" 200 149562 "-" "curl/7.58.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment