比这篇新的文章: Codee#9304
比这篇旧的文章: Codee#9302

Codee#9303 编辑代码

语言: Nginx configuration file, 标签: 无  2010/02/09发布 1个月前更新 | 编辑代码
作者: , 点击124次, 评论(0), 收藏者(0), , 打分:

背景
主题: 字体:
Nginx configuration file语言: Codee#9303
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         location / {
40             root   html;
41             index  index.html index.htmi;
42             proxy_pass  http://wurmbai;
43         }
44     }
45
46 }


所有评论,共0条:( 我也来说两句)


发表评论

注册登录后再发表评论