比这篇新的文章:
Codee#9303
比这篇旧的文章: Codee#9301
作者: , 点击40次, 评论(0), 收藏者(0), , 打分:
所有评论,共0条:( 我也来说两句)
比这篇旧的文章: Codee#9301
Codee#9302 编辑代码
语言: Nginx configuration file, 标签: 无 2010/02/09发布 1个月前更新 | 编辑代码作者: , 点击40次, 评论(0), 收藏者(0), , 打分:
Nginx configuration file语言: Codee#9302
01 #user nobody;
02 worker_processes 1;
03
04 error_log logs/error.log debug;
05
06 master_process off;
07 daemon off;
08
09 events {
10 worker_connections 1024;
11 }
12
13
14 http {
15 include mime.types;
16 default_type application/octet-stream;
17
18 access_log logs/access.log ;
19
20 sendfile on;
21 #tcp_nopush on;
22
23 #keepalive_timeout 0;
24 keepalive_timeout 65;
25 #for error 502
26 large_client_header_buffers 4 32k;
27 proxy_next_upstream error timeout invalid_header http_500 http_503;
28 upstream wurmbai{
29 server 127.0.0.1:80;
30 server 127.0.0.1:3128;
31 hash $request_uri;
32 hash_again 2;
33 }
34
35 server {
36 listen 80;
37 server_name localhost;
38
39 #charset koi8-r;
40
41 #access_log logs/host.access.log main;
42
43 location / {
44 root html;
45 index index.html index.htmi;
46 proxy_pass http://wurmbai;
47 }
48 }
49
50 }
02 worker_processes 1;
03
04 error_log logs/error.log debug;
05
06 master_process off;
07 daemon off;
08
09 events {
10 worker_connections 1024;
11 }
12
13
14 http {
15 include mime.types;
16 default_type application/octet-stream;
17
18 access_log logs/access.log ;
19
20 sendfile on;
21 #tcp_nopush on;
22
23 #keepalive_timeout 0;
24 keepalive_timeout 65;
25 #for error 502
26 large_client_header_buffers 4 32k;
27 proxy_next_upstream error timeout invalid_header http_500 http_503;
28 upstream wurmbai{
29 server 127.0.0.1:80;
30 server 127.0.0.1:3128;
31 hash $request_uri;
32 hash_again 2;
33 }
34
35 server {
36 listen 80;
37 server_name localhost;
38
39 #charset koi8-r;
40
41 #access_log logs/host.access.log main;
42
43 location / {
44 root html;
45 index index.html index.htmi;
46 proxy_pass http://wurmbai;
47 }
48 }
49
50 }
所有评论,共0条:( 我也来说两句)
代码
