| 1 | worker_processes 1;
|
|---|
| 2 | error_log logs/error.log error;
|
|---|
| 3 | #error_log logs/error.log.pipe debug;
|
|---|
| 4 | # error_log logs/error.log.pipe notice;
|
|---|
| 5 | daemon off; # debug
|
|---|
| 6 | master_process off; # debug
|
|---|
| 7 |
|
|---|
| 8 | events {
|
|---|
| 9 | use epoll;
|
|---|
| 10 | worker_connections 4096;
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | http {
|
|---|
| 14 | include mime.types;
|
|---|
| 15 | default_type application/octet-stream;
|
|---|
| 16 |
|
|---|
| 17 | log_format main '$remote_addr - $remote_user [$time_local] $request_time "$request" '
|
|---|
| 18 | '$status $body_bytes_sent "$http_referer" '
|
|---|
| 19 | '"$http_user_agent" "$http_x_forwarded_for" $server_addr "$http_range" $msec "-"';
|
|---|
| 20 |
|
|---|
| 21 | sendfile on;
|
|---|
| 22 | include upstreams.list;
|
|---|
| 23 |
|
|---|
| 24 | server {
|
|---|
| 25 | listen 8240 default backlog=2048 sndbuf=1024000;
|
|---|
| 26 |
|
|---|
| 27 | access_log logs/access.log main;
|
|---|
| 28 | error_log logs/debug.log debug;
|
|---|
| 29 |
|
|---|
| 30 | location / {
|
|---|
| 31 | proxy_set_header Host $host;
|
|---|
| 32 | proxy_pass http://wwwbaidubk;
|
|---|
| 33 | }
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | }
|
|---|