Mercurial > hg > nginx-vendor-current
comparison conf/nginx.conf @ 126:df17fbafec8f NGINX_0_3_10
nginx 0.3.10
*) Change: the "valid_referers" directive and the "$invalid_referer"
variable were moved to the new ngx_http_referer_module from the
ngx_http_rewrite_module.
*) Change: the "$apache_bytes_sent" variable name was changed to
"$body_bytes_sent".
*) Feature: the "$sent_http_..." variables.
*) Feature: the "if" directive supports the "=" and "!=" operations.
*) Feature: the "proxy_pass" directive supports the HTTPS protocol.
*) Feature: the "proxy_set_body" directive.
*) Feature: the "post_action" directive.
*) Feature: the ngx_http_empty_gif_module.
*) Feature: the "worker_cpu_affinity" directive for Linux.
*) Bugfix: the "rewrite" directive did not unescape URI part in
redirect, now it is unescaped except the %00-%25 and %7F-%FF
characters.
*) Bugfix: nginx could not be built by the icc 9.0 compiler.
*) Bugfix: if the SSI was enabled for zero size static file, then the
chunked response was encoded incorrectly.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 15 Nov 2005 00:00:00 +0300 |
parents | d25a1d6034f1 |
children | 84910468f6de |
comparison
equal
deleted
inserted
replaced
125:97504de1f89e | 126:df17fbafec8f |
---|---|
1 | 1 |
2 #user nobody; | 2 #user nobody; |
3 worker_processes 1; | 3 worker_processes 1; |
4 | 4 |
5 #error_log logs/error.log; | 5 #error_log logs/error.log; |
6 #error_log logs/error.log notice; | |
7 #error_log logs/error.log info; | |
8 | |
6 #pid logs/nginx.pid; | 9 #pid logs/nginx.pid; |
7 | 10 |
8 | 11 |
9 events { | 12 events { |
10 worker_connections 1024; | 13 worker_connections 1024; |
13 | 16 |
14 http { | 17 http { |
15 include conf/mime.types; | 18 include conf/mime.types; |
16 default_type application/octet-stream; | 19 default_type application/octet-stream; |
17 | 20 |
21 #log_format main '$remote_addr - $remote_user [$time_gmt] $status ' | |
22 # '"$request" $body_bytes_sent "$http_referer" ' | |
23 # '"$http_user_agent" "http_x_forwarded_for"'; | |
24 | |
25 #access_log logs/access.log main; | |
26 | |
18 sendfile on; | 27 sendfile on; |
28 #tcp_nopush on; | |
19 #tcp_nodelay on; | 29 #tcp_nodelay on; |
20 | 30 |
21 #keepalive_timeout 0; | 31 #keepalive_timeout 0; |
22 | 32 |
23 #gzip on; | 33 #gzip on; |
24 | 34 |
25 server { | 35 server { |
26 listen 80; | 36 listen 80; |
37 server_name localhost; | |
27 | 38 |
28 #charset koi8-r; | 39 #charset koi8-r; |
29 | 40 |
30 #access_log logs/access.log; | 41 #access_log logs/host.access.log main; |
31 | 42 |
32 location / { | 43 location / { |
33 root html; | 44 root html; |
34 index index.html index.htm; | 45 index index.html index.htm; |
35 } | 46 } |
38 # | 49 # |
39 #location ~ \.php$ { | 50 #location ~ \.php$ { |
40 # proxy_pass http://127.0.0.1; | 51 # proxy_pass http://127.0.0.1; |
41 #} | 52 #} |
42 | 53 |
54 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | |
55 # | |
56 #location ~ \.php$ { | |
57 # fastcgi_pass 127.0.0.1:9000; | |
58 # fastcgi_index index.php; | |
59 # fastcgi_param PATH_TRANSLATED /scripts$fastcgi_script_name; | |
60 # include conf/fastcgi_params; | |
61 #} | |
62 | |
43 # deny access to .htaccess files | 63 # deny access to .htaccess files |
44 # | 64 # |
45 #location ~ /\.ht { | 65 #location ~ /\.ht { |
46 # deny all; | 66 # deny all; |
47 #} | 67 #} |
68 | |
69 #error_page 404 /404.html; | |
70 #error_page 500 502 503 504 /50x.html; | |
48 } | 71 } |
72 | |
73 | |
74 # another virtual host using mix of IP-, name-, and port-based configuration | |
75 # | |
76 #server { | |
77 # listen 8000; | |
78 # listen somename:8080; | |
79 # server_name somename alias another.alias; | |
80 | |
81 # location / { | |
82 # root html; | |
83 # index index.html index.htm; | |
84 # } | |
85 #} | |
86 | |
87 | |
88 # HTTPS server | |
89 # | |
90 #server { | |
91 # listen 443; | |
92 # server_name localhost; | |
93 | |
94 # ssl on; | |
95 # ssl_certificate cert.pem; | |
96 # ssl_certificate_key cert.key; | |
97 | |
98 # ssl_session_timeout 5m; | |
99 | |
100 # ssl_protocols SSLv2 SSLv3 TLSv1; | |
101 # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; | |
102 # ssl_prefer_server_ciphers on; | |
103 | |
104 # location / { | |
105 # root html; | |
106 # index index.html index.htm; | |
107 # } | |
108 #} | |
109 | |
49 } | 110 } |