do add script nginx to developer
Showing
58 changed files
with
2095 additions
and
7 deletions
script/nginx/Process.exe
0 → 100644
No preview for this file type
script/nginx/RunHiddenConsole.exe
0 → 100644
No preview for this file type
script/nginx/WindowsServiceView.exe
0 → 100644
No preview for this file type
script/nginx/conf/fastcgi.conf
0 → 100644
1 | + | ||
2 | +fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
3 | +fastcgi_param QUERY_STRING $query_string; | ||
4 | +fastcgi_param REQUEST_METHOD $request_method; | ||
5 | +fastcgi_param CONTENT_TYPE $content_type; | ||
6 | +fastcgi_param CONTENT_LENGTH $content_length; | ||
7 | + | ||
8 | +fastcgi_param SCRIPT_NAME $fastcgi_script_name; | ||
9 | +fastcgi_param REQUEST_URI $request_uri; | ||
10 | +fastcgi_param DOCUMENT_URI $document_uri; | ||
11 | +fastcgi_param DOCUMENT_ROOT $document_root; | ||
12 | +fastcgi_param SERVER_PROTOCOL $server_protocol; | ||
13 | + | ||
14 | +fastcgi_param GATEWAY_INTERFACE CGI/1.1; | ||
15 | +fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; | ||
16 | + | ||
17 | +fastcgi_param REMOTE_ADDR $remote_addr; | ||
18 | +fastcgi_param REMOTE_PORT $remote_port; | ||
19 | +fastcgi_param SERVER_ADDR $server_addr; | ||
20 | +fastcgi_param SERVER_PORT $server_port; | ||
21 | +fastcgi_param SERVER_NAME $server_name; | ||
22 | + | ||
23 | +# PHP only, required if PHP was built with --enable-force-cgi-redirect | ||
24 | +fastcgi_param REDIRECT_STATUS 200; |
script/nginx/conf/fastcgi_params
0 → 100644
1 | + | ||
2 | +fastcgi_param QUERY_STRING $query_string; | ||
3 | +fastcgi_param REQUEST_METHOD $request_method; | ||
4 | +fastcgi_param CONTENT_TYPE $content_type; | ||
5 | +fastcgi_param CONTENT_LENGTH $content_length; | ||
6 | + | ||
7 | +fastcgi_param SCRIPT_NAME $fastcgi_script_name; | ||
8 | +fastcgi_param REQUEST_URI $request_uri; | ||
9 | +fastcgi_param DOCUMENT_URI $document_uri; | ||
10 | +fastcgi_param DOCUMENT_ROOT $document_root; | ||
11 | +fastcgi_param SERVER_PROTOCOL $server_protocol; | ||
12 | + | ||
13 | +fastcgi_param GATEWAY_INTERFACE CGI/1.1; | ||
14 | +fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; | ||
15 | + | ||
16 | +fastcgi_param REMOTE_ADDR $remote_addr; | ||
17 | +fastcgi_param REMOTE_PORT $remote_port; | ||
18 | +fastcgi_param SERVER_ADDR $server_addr; | ||
19 | +fastcgi_param SERVER_PORT $server_port; | ||
20 | +fastcgi_param SERVER_NAME $server_name; | ||
21 | + | ||
22 | +# PHP only, required if PHP was built with --enable-force-cgi-redirect | ||
23 | +fastcgi_param REDIRECT_STATUS 200; |
script/nginx/conf/koi-utf
0 → 100644
1 | + | ||
2 | +# This map is not a full koi8-r <> utf8 map: it does not contain | ||
3 | +# box-drawing and some other characters. Besides this map contains | ||
4 | +# several koi8-u and Byelorussian letters which are not in koi8-r. | ||
5 | +# If you need a full and standard map, use contrib/unicode2nginx/koi-utf | ||
6 | +# map instead. | ||
7 | + | ||
8 | +charset_map koi8-r utf-8 { | ||
9 | + | ||
10 | + 80 E282AC ; # euro | ||
11 | + | ||
12 | + 95 E280A2 ; # bullet | ||
13 | + | ||
14 | + 9A C2A0 ; # | ||
15 | + | ||
16 | + 9E C2B7 ; # · | ||
17 | + | ||
18 | + A3 D191 ; # small yo | ||
19 | + A4 D194 ; # small Ukrainian ye | ||
20 | + | ||
21 | + A6 D196 ; # small Ukrainian i | ||
22 | + A7 D197 ; # small Ukrainian yi | ||
23 | + | ||
24 | + AD D291 ; # small Ukrainian soft g | ||
25 | + AE D19E ; # small Byelorussian short u | ||
26 | + | ||
27 | + B0 C2B0 ; # ° | ||
28 | + | ||
29 | + B3 D081 ; # capital YO | ||
30 | + B4 D084 ; # capital Ukrainian YE | ||
31 | + | ||
32 | + B6 D086 ; # capital Ukrainian I | ||
33 | + B7 D087 ; # capital Ukrainian YI | ||
34 | + | ||
35 | + B9 E28496 ; # numero sign | ||
36 | + | ||
37 | + BD D290 ; # capital Ukrainian soft G | ||
38 | + BE D18E ; # capital Byelorussian short U | ||
39 | + | ||
40 | + BF C2A9 ; # (C) | ||
41 | + | ||
42 | + C0 D18E ; # small yu | ||
43 | + C1 D0B0 ; # small a | ||
44 | + C2 D0B1 ; # small b | ||
45 | + C3 D186 ; # small ts | ||
46 | + C4 D0B4 ; # small d | ||
47 | + C5 D0B5 ; # small ye | ||
48 | + C6 D184 ; # small f | ||
49 | + C7 D0B3 ; # small g | ||
50 | + C8 D185 ; # small kh | ||
51 | + C9 D0B8 ; # small i | ||
52 | + CA D0B9 ; # small j | ||
53 | + CB D0BA ; # small k | ||
54 | + CC D0BB ; # small l | ||
55 | + CD D0BC ; # small m | ||
56 | + CE D0BD ; # small n | ||
57 | + CF D0BE ; # small o | ||
58 | + | ||
59 | + D0 D0BF ; # small p | ||
60 | + D1 D18F ; # small ya | ||
61 | + D2 D180 ; # small r | ||
62 | + D3 D181 ; # small s | ||
63 | + D4 D182 ; # small t | ||
64 | + D5 D183 ; # small u | ||
65 | + D6 D0B6 ; # small zh | ||
66 | + D7 D0B2 ; # small v | ||
67 | + D8 D18C ; # small soft sign | ||
68 | + D9 D18B ; # small y | ||
69 | + DA D0B7 ; # small z | ||
70 | + DB D188 ; # small sh | ||
71 | + DC D18D ; # small e | ||
72 | + DD D189 ; # small shch | ||
73 | + DE D187 ; # small ch | ||
74 | + DF D18A ; # small hard sign | ||
75 | + | ||
76 | + E0 D0AE ; # capital YU | ||
77 | + E1 D090 ; # capital A | ||
78 | + E2 D091 ; # capital B | ||
79 | + E3 D0A6 ; # capital TS | ||
80 | + E4 D094 ; # capital D | ||
81 | + E5 D095 ; # capital YE | ||
82 | + E6 D0A4 ; # capital F | ||
83 | + E7 D093 ; # capital G | ||
84 | + E8 D0A5 ; # capital KH | ||
85 | + E9 D098 ; # capital I | ||
86 | + EA D099 ; # capital J | ||
87 | + EB D09A ; # capital K | ||
88 | + EC D09B ; # capital L | ||
89 | + ED D09C ; # capital M | ||
90 | + EE D09D ; # capital N | ||
91 | + EF D09E ; # capital O | ||
92 | + | ||
93 | + F0 D09F ; # capital P | ||
94 | + F1 D0AF ; # capital YA | ||
95 | + F2 D0A0 ; # capital R | ||
96 | + F3 D0A1 ; # capital S | ||
97 | + F4 D0A2 ; # capital T | ||
98 | + F5 D0A3 ; # capital U | ||
99 | + F6 D096 ; # capital ZH | ||
100 | + F7 D092 ; # capital V | ||
101 | + F8 D0AC ; # capital soft sign | ||
102 | + F9 D0AB ; # capital Y | ||
103 | + FA D097 ; # capital Z | ||
104 | + FB D0A8 ; # capital SH | ||
105 | + FC D0AD ; # capital E | ||
106 | + FD D0A9 ; # capital SHCH | ||
107 | + FE D0A7 ; # capital CH | ||
108 | + FF D0AA ; # capital hard sign | ||
109 | +} |
script/nginx/conf/koi-win
0 → 100644
1 | + | ||
2 | +charset_map koi8-r windows-1251 { | ||
3 | + | ||
4 | + 80 88 ; # euro | ||
5 | + | ||
6 | + 95 95 ; # bullet | ||
7 | + | ||
8 | + 9A A0 ; # | ||
9 | + | ||
10 | + 9E B7 ; # · | ||
11 | + | ||
12 | + A3 B8 ; # small yo | ||
13 | + A4 BA ; # small Ukrainian ye | ||
14 | + | ||
15 | + A6 B3 ; # small Ukrainian i | ||
16 | + A7 BF ; # small Ukrainian yi | ||
17 | + | ||
18 | + AD B4 ; # small Ukrainian soft g | ||
19 | + AE A2 ; # small Byelorussian short u | ||
20 | + | ||
21 | + B0 B0 ; # ° | ||
22 | + | ||
23 | + B3 A8 ; # capital YO | ||
24 | + B4 AA ; # capital Ukrainian YE | ||
25 | + | ||
26 | + B6 B2 ; # capital Ukrainian I | ||
27 | + B7 AF ; # capital Ukrainian YI | ||
28 | + | ||
29 | + B9 B9 ; # numero sign | ||
30 | + | ||
31 | + BD A5 ; # capital Ukrainian soft G | ||
32 | + BE A1 ; # capital Byelorussian short U | ||
33 | + | ||
34 | + BF A9 ; # (C) | ||
35 | + | ||
36 | + C0 FE ; # small yu | ||
37 | + C1 E0 ; # small a | ||
38 | + C2 E1 ; # small b | ||
39 | + C3 F6 ; # small ts | ||
40 | + C4 E4 ; # small d | ||
41 | + C5 E5 ; # small ye | ||
42 | + C6 F4 ; # small f | ||
43 | + C7 E3 ; # small g | ||
44 | + C8 F5 ; # small kh | ||
45 | + C9 E8 ; # small i | ||
46 | + CA E9 ; # small j | ||
47 | + CB EA ; # small k | ||
48 | + CC EB ; # small l | ||
49 | + CD EC ; # small m | ||
50 | + CE ED ; # small n | ||
51 | + CF EE ; # small o | ||
52 | + | ||
53 | + D0 EF ; # small p | ||
54 | + D1 FF ; # small ya | ||
55 | + D2 F0 ; # small r | ||
56 | + D3 F1 ; # small s | ||
57 | + D4 F2 ; # small t | ||
58 | + D5 F3 ; # small u | ||
59 | + D6 E6 ; # small zh | ||
60 | + D7 E2 ; # small v | ||
61 | + D8 FC ; # small soft sign | ||
62 | + D9 FB ; # small y | ||
63 | + DA E7 ; # small z | ||
64 | + DB F8 ; # small sh | ||
65 | + DC FD ; # small e | ||
66 | + DD F9 ; # small shch | ||
67 | + DE F7 ; # small ch | ||
68 | + DF FA ; # small hard sign | ||
69 | + | ||
70 | + E0 DE ; # capital YU | ||
71 | + E1 C0 ; # capital A | ||
72 | + E2 C1 ; # capital B | ||
73 | + E3 D6 ; # capital TS | ||
74 | + E4 C4 ; # capital D | ||
75 | + E5 C5 ; # capital YE | ||
76 | + E6 D4 ; # capital F | ||
77 | + E7 C3 ; # capital G | ||
78 | + E8 D5 ; # capital KH | ||
79 | + E9 C8 ; # capital I | ||
80 | + EA C9 ; # capital J | ||
81 | + EB CA ; # capital K | ||
82 | + EC CB ; # capital L | ||
83 | + ED CC ; # capital M | ||
84 | + EE CD ; # capital N | ||
85 | + EF CE ; # capital O | ||
86 | + | ||
87 | + F0 CF ; # capital P | ||
88 | + F1 DF ; # capital YA | ||
89 | + F2 D0 ; # capital R | ||
90 | + F3 D1 ; # capital S | ||
91 | + F4 D2 ; # capital T | ||
92 | + F5 D3 ; # capital U | ||
93 | + F6 C6 ; # capital ZH | ||
94 | + F7 C2 ; # capital V | ||
95 | + F8 DC ; # capital soft sign | ||
96 | + F9 DB ; # capital Y | ||
97 | + FA C7 ; # capital Z | ||
98 | + FB D8 ; # capital SH | ||
99 | + FC DD ; # capital E | ||
100 | + FD D9 ; # capital SHCH | ||
101 | + FE D7 ; # capital CH | ||
102 | + FF DA ; # capital hard sign | ||
103 | +} |
script/nginx/conf/mime.types
0 → 100644
1 | + | ||
2 | +types { | ||
3 | + text/html html htm shtml; | ||
4 | + text/css css; | ||
5 | + text/xml xml; | ||
6 | + image/gif gif; | ||
7 | + image/jpeg jpeg jpg; | ||
8 | + application/x-javascript js; | ||
9 | + application/atom+xml atom; | ||
10 | + application/rss+xml rss; | ||
11 | + | ||
12 | + text/mathml mml; | ||
13 | + text/plain txt; | ||
14 | + text/vnd.sun.j2me.app-descriptor jad; | ||
15 | + text/vnd.wap.wml wml; | ||
16 | + text/x-component htc; | ||
17 | + | ||
18 | + image/png png; | ||
19 | + image/tiff tif tiff; | ||
20 | + image/vnd.wap.wbmp wbmp; | ||
21 | + image/x-icon ico; | ||
22 | + image/x-jng jng; | ||
23 | + image/x-ms-bmp bmp; | ||
24 | + image/svg+xml svg; | ||
25 | + | ||
26 | + application/java-archive jar war ear; | ||
27 | + application/mac-binhex40 hqx; | ||
28 | + application/msword doc; | ||
29 | + application/pdf pdf; | ||
30 | + application/postscript ps eps ai; | ||
31 | + application/rtf rtf; | ||
32 | + application/vnd.ms-excel xls; | ||
33 | + application/vnd.ms-powerpoint ppt; | ||
34 | + application/vnd.wap.wmlc wmlc; | ||
35 | + application/vnd.wap.xhtml+xml xhtml; | ||
36 | + application/vnd.google-earth.kml+xml kml; | ||
37 | + application/vnd.google-earth.kmz kmz; | ||
38 | + application/x-7z-compressed 7z; | ||
39 | + application/x-cocoa cco; | ||
40 | + application/x-java-archive-diff jardiff; | ||
41 | + application/x-java-jnlp-file jnlp; | ||
42 | + application/x-makeself run; | ||
43 | + application/x-perl pl pm; | ||
44 | + application/x-pilot prc pdb; | ||
45 | + application/x-rar-compressed rar; | ||
46 | + application/x-redhat-package-manager rpm; | ||
47 | + application/x-sea sea; | ||
48 | + application/x-shockwave-flash swf; | ||
49 | + application/x-stuffit sit; | ||
50 | + application/x-tcl tcl tk; | ||
51 | + application/x-x509-ca-cert der pem crt; | ||
52 | + application/x-xpinstall xpi; | ||
53 | + application/zip zip; | ||
54 | + | ||
55 | + application/octet-stream bin exe dll; | ||
56 | + application/octet-stream deb; | ||
57 | + application/octet-stream dmg; | ||
58 | + application/octet-stream eot; | ||
59 | + application/octet-stream iso img; | ||
60 | + application/octet-stream msi msp msm; | ||
61 | + | ||
62 | + audio/midi mid midi kar; | ||
63 | + audio/mpeg mp3; | ||
64 | + audio/x-realaudio ra; | ||
65 | + | ||
66 | + video/3gpp 3gpp 3gp; | ||
67 | + video/mpeg mpeg mpg; | ||
68 | + video/quicktime mov; | ||
69 | + video/x-flv flv; | ||
70 | + video/x-mng mng; | ||
71 | + video/x-ms-asf asx asf; | ||
72 | + video/x-ms-wmv wmv; | ||
73 | + video/x-msvideo avi; | ||
74 | +} |
script/nginx/conf/nginx.conf
0 → 100644
1 | +#user nobody; | ||
2 | +worker_processes 1; | ||
3 | + | ||
4 | +#error_log logs/error.log; | ||
5 | +#error_log logs/error.log notice; | ||
6 | +#error_log logs/error.log info; | ||
7 | + | ||
8 | +#pid logs/nginx.pid; | ||
9 | + | ||
10 | + | ||
11 | +events { | ||
12 | + worker_connections 1024; | ||
13 | +} | ||
14 | + | ||
15 | + | ||
16 | +http { | ||
17 | + include mime.types; | ||
18 | + default_type application/octet-stream; | ||
19 | + | ||
20 | + #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
21 | + # '$status $body_bytes_sent "$http_referer" ' | ||
22 | + # '"$http_user_agent" "$http_x_forwarded_for"'; | ||
23 | + | ||
24 | + #access_log logs/access.log main; | ||
25 | + | ||
26 | + sendfile on; | ||
27 | + #tcp_nopush on; | ||
28 | + | ||
29 | + keepalive_timeout 600; | ||
30 | + server_names_hash_bucket_size 64; | ||
31 | + #gzip on; | ||
32 | + autoindex on; | ||
33 | + autoindex_exact_size on; | ||
34 | + autoindex_localtime on; | ||
35 | + | ||
36 | + server { | ||
37 | + listen 80; | ||
38 | + server_name localhost; | ||
39 | + | ||
40 | + #charset koi8-r; | ||
41 | + | ||
42 | + #access_log logs/host.access.log main; | ||
43 | + | ||
44 | + location / { | ||
45 | + root /cygdrive/E/nginx/html; | ||
46 | + index index.html index.htm; | ||
47 | + } | ||
48 | + | ||
49 | + #error_page 404 /404.html; | ||
50 | + | ||
51 | + # redirect server error pages to the static page /50x.html | ||
52 | + # | ||
53 | + error_page 500 502 503 504 /50x.html; | ||
54 | + location = /50x.html { | ||
55 | + root html; | ||
56 | + } | ||
57 | + | ||
58 | + # proxy the PHP scripts to Apache listening on 127.0.0.1:80 | ||
59 | + # | ||
60 | + #location ~ \.php$ { | ||
61 | + # proxy_pass http://127.0.0.1; | ||
62 | + #} | ||
63 | + | ||
64 | + # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | ||
65 | + # | ||
66 | + # deny access to .htaccess files, if Apache's document root | ||
67 | + # concurs with nginx's one | ||
68 | + # | ||
69 | + #location ~ /\.ht { | ||
70 | + # deny all; | ||
71 | + #} | ||
72 | + } | ||
73 | + | ||
74 | + | ||
75 | + # another virtual host using mix of IP-, name-, and port-based configuration | ||
76 | + # | ||
77 | + #server { | ||
78 | + # listen 8000; | ||
79 | + # listen somename:8080; | ||
80 | + # server_name somename alias another.alias; | ||
81 | + | ||
82 | + # location / { | ||
83 | + # root html; | ||
84 | + # index index.html index.htm; | ||
85 | + # } | ||
86 | + #} | ||
87 | + | ||
88 | + | ||
89 | + # HTTPS server | ||
90 | + # | ||
91 | + #server { | ||
92 | + # listen 443; | ||
93 | + # server_name localhost; | ||
94 | + | ||
95 | + # #ssl on; | ||
96 | + # #ssl_certificate cert.pem; | ||
97 | + # #ssl_certificate_key cert.key; | ||
98 | + | ||
99 | + # #ssl_session_timeout 5m; | ||
100 | + | ||
101 | + # #ssl_protocols #sslv2 #sslv3 TLSv1; | ||
102 | + # #ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+#sslv2:+EXP; | ||
103 | + # #ssl_prefer_server_ciphers on; | ||
104 | + | ||
105 | + # location / { | ||
106 | + # root html; | ||
107 | + # index index.html index.htm; | ||
108 | + # } | ||
109 | + #} | ||
110 | + | ||
111 | + # Զļ | ||
112 | + #include /nginx/conf/vhosts/yohoboys.conf; | ||
113 | + #include /nginx/conf/vhosts/yohogirls.conf; | ||
114 | + #include /nginx/conf/vhosts/yohostore.conf; | ||
115 | + #include /nginx/conf/vhosts/yoho.conf; | ||
116 | + #include /nginx/conf/vhosts/symfony.conf; | ||
117 | + #include /nginx/conf/vhosts/bbs.conf; | ||
118 | + #include /nginx/conf/vhosts/ezine.conf; | ||
119 | + #include /nginx/conf/vhosts/yohobill.conf; | ||
120 | + include /nginx/conf/vhosts/yohobuy.conf; | ||
121 | +} |
script/nginx/conf/nginx.conf.ca
0 → 100644
1 | + | ||
2 | +#user nobody; | ||
3 | +worker_processes 1; | ||
4 | + | ||
5 | +#error_log logs/error.log; | ||
6 | +#error_log logs/error.log notice; | ||
7 | +#error_log logs/error.log info; | ||
8 | +error_log ../nginx-0.8.52-error.log; | ||
9 | + | ||
10 | +#pid logs/nginx.pid; | ||
11 | + | ||
12 | + | ||
13 | +events { | ||
14 | + worker_connections 1024; | ||
15 | +} | ||
16 | + | ||
17 | + | ||
18 | +http { | ||
19 | + include mime.types; | ||
20 | + default_type application/octet-stream; | ||
21 | + | ||
22 | + #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
23 | + # '$status $body_bytes_sent "$http_referer" ' | ||
24 | + # '"$http_user_agent" "$http_x_forwarded_for"'; | ||
25 | + | ||
26 | + #access_log logs/access.log main; | ||
27 | + access_log ../nginx-0.8.52-access.log; | ||
28 | + | ||
29 | + sendfile on; | ||
30 | + #tcp_nopush on; | ||
31 | + | ||
32 | + #keepalive_timeout 0; | ||
33 | + keepalive_timeout 65; | ||
34 | + | ||
35 | + #gzip on; | ||
36 | + | ||
37 | + server { | ||
38 | + listen 80; | ||
39 | + server_name localhost; | ||
40 | + | ||
41 | + #charset koi8-r; | ||
42 | + | ||
43 | + #access_log logs/host.access.log main; | ||
44 | + | ||
45 | + location / { | ||
46 | + root ../../htdocs; | ||
47 | + index index.php index.html; | ||
48 | + } | ||
49 | + | ||
50 | + location ~ ^(.+\.php)(.*)$ { | ||
51 | + root ../../htdocs; | ||
52 | + fastcgi_pass 127.0.0.1:9000; | ||
53 | + fastcgi_index index.php; | ||
54 | + | ||
55 | + set $document_root2 $document_root; | ||
56 | + if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") { set $document_root2 $1$2; } | ||
57 | + if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") { set $document_root2 $1$2; } | ||
58 | + if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") { set $document_root2 $1$2; } | ||
59 | + if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") { set $document_root2 $1$2; } | ||
60 | + if ($document_root2 ~ "^(.*\\\\).*?[\\\\|\/]\.\.\/(.*)$") { set $document_root2 $1$2; } | ||
61 | + | ||
62 | + fastcgi_split_path_info ^(.+\.php)(.*)$; | ||
63 | + fastcgi_param SCRIPT_FILENAME $document_root2$fastcgi_script_name; | ||
64 | + fastcgi_param PATH_INFO $fastcgi_path_info; | ||
65 | + fastcgi_param PATH_TRANSLATED $document_root2$fastcgi_path_info; | ||
66 | + include fastcgi_params; | ||
67 | + fastcgi_param DOCUMENT_ROOT $document_root2; | ||
68 | + } | ||
69 | + | ||
70 | + #error_page 404 /404.html; | ||
71 | + | ||
72 | + # redirect server error pages to the static page /50x.html | ||
73 | + # | ||
74 | + error_page 500 502 503 504 /50x.html; | ||
75 | + location = /50x.html { | ||
76 | + root html; | ||
77 | + } | ||
78 | + | ||
79 | + # proxy the PHP scripts to Apache listening on 127.0.0.1:80 | ||
80 | + # | ||
81 | + #location ~ \.php$ { | ||
82 | + # proxy_pass http://127.0.0.1; | ||
83 | + #} | ||
84 | + | ||
85 | + # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | ||
86 | + # | ||
87 | + #location ~ \.php$ { | ||
88 | + # root html; | ||
89 | + # fastcgi_pass 127.0.0.1:9000; | ||
90 | + # fastcgi_index index.php; | ||
91 | + # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; | ||
92 | + # include fastcgi_params; | ||
93 | + #} | ||
94 | + | ||
95 | + # deny access to .htaccess files, if Apache's document root | ||
96 | + # concurs with nginx's one | ||
97 | + # | ||
98 | + #location ~ /\.ht { | ||
99 | + # deny all; | ||
100 | + #} | ||
101 | + } | ||
102 | + | ||
103 | + | ||
104 | + # another virtual host using mix of IP-, name-, and port-based configuration | ||
105 | + # | ||
106 | + server { | ||
107 | + listen 192.168.1.33:8000; | ||
108 | + server_name www.nginx.com; | ||
109 | + access_log logs/nginx.access.log; | ||
110 | + location / { | ||
111 | + index index1.html; | ||
112 | + root /cygdrive/E/nginx/html; | ||
113 | + } | ||
114 | + } | ||
115 | + server { | ||
116 | + listen 192.168.1.33:8001; | ||
117 | + server_name www.feifei.com; | ||
118 | + access_log logs/feifei.access.log; | ||
119 | + location / { | ||
120 | + index index2.html; | ||
121 | + root html; | ||
122 | + } | ||
123 | + } | ||
124 | + | ||
125 | + # HTTPS server | ||
126 | + # | ||
127 | + #server { | ||
128 | + # listen 443; | ||
129 | + # server_name localhost; | ||
130 | + | ||
131 | + # ssl on; | ||
132 | + # ssl_certificate cert.pem; | ||
133 | + # ssl_certificate_key cert.key; | ||
134 | + | ||
135 | + # ssl_session_timeout 5m; | ||
136 | + | ||
137 | + # ssl_protocols SSLv2 SSLv3 TLSv1; | ||
138 | + # ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; | ||
139 | + # ssl_prefer_server_ciphers on; | ||
140 | + | ||
141 | + # location / { | ||
142 | + # root html; | ||
143 | + # index index.html index.htm; | ||
144 | + # } | ||
145 | + #} | ||
146 | + | ||
147 | + | ||
148 | +} |
script/nginx/conf/scgi_params
0 → 100644
1 | + | ||
2 | +scgi_param REQUEST_METHOD $request_method; | ||
3 | +scgi_param REQUEST_URI $request_uri; | ||
4 | +scgi_param QUERY_STRING $query_string; | ||
5 | +scgi_param CONTENT_TYPE $content_type; | ||
6 | + | ||
7 | +scgi_param DOCUMENT_URI $document_uri; | ||
8 | +scgi_param DOCUMENT_ROOT $document_root; | ||
9 | +scgi_param SCGI 1; | ||
10 | +scgi_param SERVER_PROTOCOL $server_protocol; | ||
11 | + | ||
12 | +scgi_param REMOTE_ADDR $remote_addr; | ||
13 | +scgi_param REMOTE_PORT $remote_port; | ||
14 | +scgi_param SERVER_PORT $server_port; | ||
15 | +scgi_param SERVER_NAME $server_name; |
script/nginx/conf/uwsgi_params
0 → 100644
1 | + | ||
2 | +uwsgi_param QUERY_STRING $query_string; | ||
3 | +uwsgi_param REQUEST_METHOD $request_method; | ||
4 | +uwsgi_param CONTENT_TYPE $content_type; | ||
5 | +uwsgi_param CONTENT_LENGTH $content_length; | ||
6 | + | ||
7 | +uwsgi_param REQUEST_URI $request_uri; | ||
8 | +uwsgi_param PATH_INFO $document_uri; | ||
9 | +uwsgi_param DOCUMENT_ROOT $document_root; | ||
10 | +uwsgi_param SERVER_PROTOCOL $server_protocol; | ||
11 | + | ||
12 | +uwsgi_param REMOTE_ADDR $remote_addr; | ||
13 | +uwsgi_param REMOTE_PORT $remote_port; | ||
14 | +uwsgi_param SERVER_PORT $server_port; | ||
15 | +uwsgi_param SERVER_NAME $server_name; |
script/nginx/conf/vhosts/ezine.conf
0 → 100644
1 | +server { | ||
2 | + listen 80; | ||
3 | + server_name ezine.dev.yoho.cn apiezine.dev.yoho.cn; | ||
4 | + index index.html index-dev.php; | ||
5 | + root D:/workspace/yohoezine/ezine.yoho.cn; | ||
6 | + | ||
7 | + location / { | ||
8 | + index index-dev.php; | ||
9 | + } | ||
10 | + | ||
11 | + location ~* .*\.(php|php5)?$ { | ||
12 | + fastcgi_pass 127.0.0.1:9000; | ||
13 | + fastcgi_index index-dev.php; | ||
14 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
15 | + include fastcgi_params; | ||
16 | + } | ||
17 | + | ||
18 | + location = /favicon.ico{ | ||
19 | + return 204; | ||
20 | + } | ||
21 | + | ||
22 | + location ^~ /preview/ { | ||
23 | + root D:/ezine; | ||
24 | + } | ||
25 | + | ||
26 | + access_log E:/nginx/logs/ezine.new.log combined; | ||
27 | + error_log E:/nginx/logs/ezine.error.log warn; | ||
28 | +} | ||
29 | + | ||
30 | + | ||
31 | +server { | ||
32 | + listen 80; | ||
33 | + server_name ezine.hf.com apiezine.hf.com; | ||
34 | + index index.html index-dev.php; | ||
35 | + root D:/workspace/yohoezine/ezine.myoho.net; | ||
36 | + | ||
37 | + location / { | ||
38 | + index index-dev.php; | ||
39 | + } | ||
40 | + | ||
41 | + location ~* .*\.(php|php5)?$ { | ||
42 | + fastcgi_pass 127.0.0.1:9000; | ||
43 | + fastcgi_index index-test.php; | ||
44 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
45 | + include fastcgi_params; | ||
46 | + } | ||
47 | + | ||
48 | + location = /favicon.ico{ | ||
49 | + return 204; | ||
50 | + } | ||
51 | + | ||
52 | + access_log E:/nginx/logs/ezine.old.log combined; | ||
53 | + error_log E:/nginx/logs/ezine.error.log warn; | ||
54 | +} |
script/nginx/conf/vhosts/localhost.conf
0 → 100644
1 | +server | ||
2 | +{ | ||
3 | + listen 80; | ||
4 | + server_name localhost; | ||
5 | + | ||
6 | + #access_log /nginx/logs/access_test_yoho_cn.log combined; | ||
7 | + error_log /nginx/logs/error_test_yoho_cn.log warn; | ||
8 | + | ||
9 | + root D:/opensource; | ||
10 | + | ||
11 | + location / { | ||
12 | + index index.php index.html; | ||
13 | + } | ||
14 | + | ||
15 | + location ~ .*\.php?$ { | ||
16 | + fastcgi_pass 127.0.0.1:9000; | ||
17 | + fastcgi_index index.php; | ||
18 | + #fastcgi_param PATH_INFO $fastcgi_script_name; | ||
19 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
20 | + include fastcgi_params; | ||
21 | + } | ||
22 | + | ||
23 | + location ~ .*/.svn/ { | ||
24 | + deny all; | ||
25 | + } | ||
26 | + | ||
27 | + location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { | ||
28 | + expires 1h; | ||
29 | + } | ||
30 | +} |
script/nginx/conf/vhosts/shindig.conf
0 → 100644
1 | +server { | ||
2 | + listen 80; | ||
3 | + server_name open.test.lan; | ||
4 | + access_log logs/nginx.access.log; | ||
5 | + location / { | ||
6 | + index index.html index.php; | ||
7 | + root /nginx/html/shindig; | ||
8 | + rewrite ^/$ /index.php last; | ||
9 | + rewrite ^/(?!index\.php)(.*)$ /index.php/$1 last; | ||
10 | + | ||
11 | + } | ||
12 | + | ||
13 | + location ~ \.php { | ||
14 | + root /nginx/html/shindig; | ||
15 | + fastcgi_pass 127.0.0.1:9000; | ||
16 | + fastcgi_index index.php; | ||
17 | + #pathinfo | ||
18 | + fastcgi_param PATH_INFO $fastcgi_script_name; | ||
19 | + fastcgi_param SCRIPT_FILENAME E:/nginx/html/shindig$fastcgi_script_name; | ||
20 | + include fastcgi_params; | ||
21 | + } | ||
22 | + | ||
23 | +} |
script/nginx/conf/vhosts/yoho.conf
0 → 100644
1 | +server | ||
2 | +{ | ||
3 | + listen 80; | ||
4 | + server_name dev.yoho.cn; | ||
5 | + | ||
6 | + #access_log /nginx/logs/access_test_yoho_cn.log combined; | ||
7 | + error_log /nginx/logs/error_test_yoho_cn.log warn; | ||
8 | + | ||
9 | + root D:/workspace/v3.svn.dev.yoho.cn/yoho.cn/www.yoho.cn/public; | ||
10 | + | ||
11 | + # https | ||
12 | + #ssl on; | ||
13 | + #ssl_certificate //nginx/data/server.pem; | ||
14 | + #ssl_certificate_key /nginx/data/server.key; | ||
15 | + #ssl_session_timeout 10m; | ||
16 | + | ||
17 | + location / { | ||
18 | + index index.php index.html; | ||
19 | + if (!-f $request_filename){ | ||
20 | + rewrite ^/(.+)$ /index.php?$1& last; | ||
21 | + } | ||
22 | + } | ||
23 | + | ||
24 | + location ~ .*\.html$ { | ||
25 | + root E:/yoho.cn/i.svn.dev.yoho.cn/yoho.cn/www.yoho.cn/cache; | ||
26 | + if (!-f $request_filename) { | ||
27 | + rewrite ^/(.+)$ /index.php?$1& last; | ||
28 | + } | ||
29 | + } | ||
30 | + | ||
31 | + location ~ .*\.php?$ { | ||
32 | + fastcgi_pass 127.0.0.1:9000; | ||
33 | + fastcgi_index index.php; | ||
34 | + #fastcgi_param PATH_INFO $fastcgi_script_name; | ||
35 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
36 | + include fastcgi_params; | ||
37 | + } | ||
38 | + | ||
39 | + location ~ .*/.svn/ { | ||
40 | + deny all; | ||
41 | + } | ||
42 | + | ||
43 | + location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { | ||
44 | + expires 1d; | ||
45 | + } | ||
46 | + | ||
47 | + #location ~ .*\.(js|css)?$ { | ||
48 | + # expires 1h; | ||
49 | + #} | ||
50 | +} | ||
51 | + | ||
52 | +server | ||
53 | +{ | ||
54 | + listen 80; | ||
55 | + server_name res.yoho.cn res.dev.yoho.cn res.test.yoho.cn; | ||
56 | + index index.php; | ||
57 | + root D:/workspace/i.svn.dev.yoho.cn/yoho4.0/static; | ||
58 | + #access_log /Data/logs/nginx/access_yohoinc.log combined; | ||
59 | + #error_log /Data/logs/nginx/error_yohoinc.log warn; | ||
60 | + | ||
61 | + location ~ .*/.svn/ { | ||
62 | + deny all; | ||
63 | + } | ||
64 | + | ||
65 | + location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { | ||
66 | + expires 30d; | ||
67 | + } | ||
68 | + | ||
69 | + #location ~ .*\.(js|css)?$ { | ||
70 | + # expires 1h; | ||
71 | + #} | ||
72 | + | ||
73 | + location /min/ { | ||
74 | + rewrite ^/min/([a-z]=.*) /minify/min/index.php?$1 last; | ||
75 | + } | ||
76 | + | ||
77 | + location /minify/min/index.php { | ||
78 | + fastcgi_pass 127.0.0.1:9000; | ||
79 | + fastcgi_index index.php; | ||
80 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
81 | + include fastcgi_params; | ||
82 | + } | ||
83 | + | ||
84 | +} |
script/nginx/conf/vhosts/yohobill.conf
0 → 100644
1 | +server | ||
2 | +{ | ||
3 | + listen 80; | ||
4 | + server_name bill.dev.yohobuy.com; | ||
5 | + | ||
6 | + #access_log /nginx/logs/access_test_yoho_cn.log combined; | ||
7 | + error_log /nginx/logs/error_test_yoho_cn.log warn; | ||
8 | + | ||
9 | + root D:/workspace/yhbbill.git.dev.yoho.cn/yohobuy/bill.m.yohobuy.com/public; | ||
10 | + | ||
11 | + # https | ||
12 | + #ssl on; | ||
13 | + #ssl_certificate //nginx/data/server.pem; | ||
14 | + #ssl_certificate_key /nginx/data/server.key; | ||
15 | + #ssl_session_timeout 10m; | ||
16 | + | ||
17 | + location / { | ||
18 | + index index-dev.php; | ||
19 | + if (!-f $request_filename){ | ||
20 | + rewrite ^/(.+)$ /index-dev.php?$1& last; | ||
21 | + } | ||
22 | + } | ||
23 | + | ||
24 | + location ~ .*\.php?$ { | ||
25 | + fastcgi_pass 127.0.0.1:9000; | ||
26 | + fastcgi_index index-dev.php; | ||
27 | + #fastcgi_param PATH_INFO $fastcgi_script_name; | ||
28 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
29 | + include fastcgi_params; | ||
30 | + } | ||
31 | + | ||
32 | +} | ||
33 | + | ||
34 | + | ||
35 | +server | ||
36 | +{ | ||
37 | + listen 80; | ||
38 | + server_name bill.hood.yohobuy.com; | ||
39 | + | ||
40 | + #access_log /nginx/logs/access_test_yoho_cn.log combined; | ||
41 | + error_log /nginx/logs/error_test_yoho_cn.log warn; | ||
42 | + | ||
43 | + root D:/workspace/yhbbill.git.dev.yoho.cn/yohobuy/hood.bill.m.yohobuy.com/public; | ||
44 | + | ||
45 | + # https | ||
46 | + #ssl on; | ||
47 | + #ssl_certificate //nginx/data/server.pem; | ||
48 | + #ssl_certificate_key /nginx/data/server.key; | ||
49 | + #ssl_session_timeout 10m; | ||
50 | + | ||
51 | + location / { | ||
52 | + index index-dev.php; | ||
53 | + if (!-f $request_filename){ | ||
54 | + rewrite ^/(.+)$ /index-dev.php?$1& last; | ||
55 | + } | ||
56 | + } | ||
57 | + | ||
58 | + location ~ .*\.php?$ { | ||
59 | + fastcgi_pass 127.0.0.1:9000; | ||
60 | + fastcgi_index index-dev.php; | ||
61 | + #fastcgi_param PATH_INFO $fastcgi_script_name; | ||
62 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
63 | + include fastcgi_params; | ||
64 | + } | ||
65 | + | ||
66 | +} |
script/nginx/conf/vhosts/yohoboys.conf
0 → 100644
1 | +server | ||
2 | +{ | ||
3 | + listen 80; | ||
4 | + server_name boys.dev.yoho.cn; | ||
5 | + | ||
6 | + #access_log /nginx/logs/access_test_yoho_cn.log combined; | ||
7 | + error_log /nginx/logs/error_test_yoho_cn.log warn; | ||
8 | + | ||
9 | + root D:/workspace/yohoboy.git.dev.yoho.cn/yohocms/www.yohoboys.com/public; | ||
10 | + | ||
11 | + # https | ||
12 | + #ssl on; | ||
13 | + #ssl_certificate //nginx/data/server.pem; | ||
14 | + #ssl_certificate_key /nginx/data/server.key; | ||
15 | + #ssl_session_timeout 10m; | ||
16 | + | ||
17 | + | ||
18 | + location / { | ||
19 | + index index.html index-dev.php; | ||
20 | + if (!-f $request_filename){ | ||
21 | + rewrite ^/(.+)$ /index-dev.php?$1& last; | ||
22 | + } | ||
23 | + } | ||
24 | + | ||
25 | + location ~ .*\.php?$ { | ||
26 | + fastcgi_pass 127.0.0.1:9000; | ||
27 | + fastcgi_index index-dev.php; | ||
28 | + #fastcgi_param PATH_INFO $fastcgi_script_name; | ||
29 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
30 | + include fastcgi_params; | ||
31 | + } | ||
32 | + | ||
33 | + location ~ .*/.svn/ { | ||
34 | + deny all; | ||
35 | + } | ||
36 | + | ||
37 | + #location ~ .*\.(html|xml)?$ { | ||
38 | + # expires 1h; | ||
39 | + #} | ||
40 | +} | ||
41 | + | ||
42 | +server | ||
43 | +{ | ||
44 | + listen 80; | ||
45 | + server_name newboys.dev.yoho.cn hkboys.dev.yoho.cn apiboys.dev.yoho.cn; | ||
46 | + | ||
47 | + #access_log /nginx/logs/access_test_yoho_cn.log combined; | ||
48 | + error_log /nginx/logs/error_test_yoho_cn.log warn; | ||
49 | + | ||
50 | + root D:/workspace/yohoboy.git.dev.yoho.cn/yohocms/new.yohoboys.com/public; | ||
51 | + | ||
52 | + location / { | ||
53 | + index index.html index-dev.php; | ||
54 | + if (!-f $request_filename){ | ||
55 | + rewrite ^/(.+)$ /index-dev.php?$1& last; | ||
56 | + } | ||
57 | + } | ||
58 | + | ||
59 | + location ~ .*\.php?$ { | ||
60 | + fastcgi_pass 127.0.0.1:9000; | ||
61 | + fastcgi_index index-dev.php; | ||
62 | + #fastcgi_param PATH_INFO $fastcgi_script_name; | ||
63 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
64 | + include fastcgi_params; | ||
65 | + } | ||
66 | + | ||
67 | + location ~ .*/.svn/ { | ||
68 | + deny all; | ||
69 | + } | ||
70 | + | ||
71 | +} | ||
72 | + | ||
73 | +server | ||
74 | +{ | ||
75 | + listen 80; | ||
76 | + server_name cmsres.dev.yoho.cn; | ||
77 | + index index.php; | ||
78 | + #root D:/workspace/yohocms.svn.dev.yoho.cn/yohocms/trunk/static; | ||
79 | + root D:/workspace/yohostore.git.dev.yoho.cn/static/boygirls; | ||
80 | + #access_log /Data/logs/nginx/access_yohoinc.log combined; | ||
81 | + #error_log /Data/logs/nginx/error_yohoinc.log warn; | ||
82 | + | ||
83 | + location ~ .*/.svn/ { | ||
84 | + deny all; | ||
85 | + } | ||
86 | + | ||
87 | + #location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { | ||
88 | + # expires 30d; | ||
89 | + #} | ||
90 | + | ||
91 | + #location ~ .*\.(js|css)?$ { | ||
92 | + # expires 1h; | ||
93 | + #} | ||
94 | + | ||
95 | +} |
script/nginx/conf/vhosts/yohobuy.conf
0 → 100644
1 | +server | ||
2 | +{ | ||
3 | + listen 80; | ||
4 | + server_name m.dev.yohobuy.com; | ||
5 | + | ||
6 | + #access_log /nginx/logs/access_test_yoho_cn.log combined; | ||
7 | + error_log /nginx/logs/error_test_yoho_cn.log warn; | ||
8 | + | ||
9 | + root D:/workspace/yohobuy.git.dev.yoho.cn/yohobuy/m.yohobuy.com/public; | ||
10 | + | ||
11 | + # https | ||
12 | + #ssl on; | ||
13 | + #ssl_certificate //nginx/data/server.pem; | ||
14 | + #ssl_certificate_key /nginx/data/server.key; | ||
15 | + #ssl_session_timeout 10m; | ||
16 | + | ||
17 | + location / { | ||
18 | + index index-dev.php; | ||
19 | + if (!-f $request_filename){ | ||
20 | + rewrite ^/(.+)$ /index-dev.php?$1& last; | ||
21 | + } | ||
22 | + } | ||
23 | + | ||
24 | + location ~ .*\.php?$ { | ||
25 | + fastcgi_pass 172.16.6.158:9000; | ||
26 | + fastcgi_index index-dev.php; | ||
27 | + #fastcgi_param PATH_INFO $fastcgi_script_name; | ||
28 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
29 | + include fastcgi_params; | ||
30 | + } | ||
31 | + | ||
32 | +} |
script/nginx/conf/vhosts/yohogirls.conf
0 → 100644
1 | +server | ||
2 | +{ | ||
3 | + listen 80; | ||
4 | + server_name girls.dev.yoho.cn hkgirls.dev.yoho.cn newgirls.dev.yoho.cn; | ||
5 | + | ||
6 | + #access_log /nginx/logs/access_test_yoho_cn.log combined; | ||
7 | + error_log /nginx/logs/error_test_yoho_cn.log warn; | ||
8 | + | ||
9 | + root D:/workspace/yohogirl.git.dev.yoho.cn/yohocms/new.yohogirls.com/public; | ||
10 | + | ||
11 | + # https | ||
12 | + #ssl on; | ||
13 | + #ssl_certificate //nginx/data/server.pem; | ||
14 | + #ssl_certificate_key /nginx/data/server.key; | ||
15 | + #ssl_session_timeout 10m; | ||
16 | + | ||
17 | + location / { | ||
18 | + index index-dev.php; | ||
19 | + if (!-f $request_filename){ | ||
20 | + rewrite ^/(.+)$ /index-dev.php?$1& last; | ||
21 | + } | ||
22 | + } | ||
23 | + | ||
24 | + location ~ .*\.php?$ { | ||
25 | + fastcgi_pass 127.0.0.1:9000; | ||
26 | + fastcgi_index index-dev.php; | ||
27 | + #fastcgi_param PATH_INFO $fastcgi_script_name; | ||
28 | + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
29 | + include fastcgi_params; | ||
30 | + } | ||
31 | + | ||
32 | + location ~ .*/.svn/ { | ||
33 | + deny all; | ||
34 | + } | ||
35 | + | ||
36 | + #location ~ .*\.(html|xml)?$ { | ||
37 | + # expires 1h; | ||
38 | + #} | ||
39 | +} | ||
40 | + |
script/nginx/conf/vhosts/yohostore.conf
0 → 100644
1 | +server | ||
2 | +{ | ||
3 | + listen 80; | ||
4 | + server_name cmsres.test.yoho.cn; | ||
5 | + index index.php; | ||
6 | + root D:/workspace/yohostore/develop/static/boygirls; | ||
7 | + #access_log /Data/logs/nginx/access_cmsres.log combined; | ||
8 | + #error_log /Data/logs/nginx/error_cmsres.log warn; | ||
9 | + | ||
10 | + location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { | ||
11 | + expires 1d; | ||
12 | + } | ||
13 | + | ||
14 | + location ~ .*\.(js|css)?$ { | ||
15 | + expires 1h; | ||
16 | + } | ||
17 | + | ||
18 | +} | ||
19 | + | ||
20 | +server | ||
21 | +{ | ||
22 | + listen 80; | ||
23 | + server_name res.previewboys.yoho.cn; | ||
24 | + index index.php; | ||
25 | + root D:/workspace/yohostore/develop/static/boygirls; | ||
26 | + #access_log /Data/logs/nginx/access_yohoinc.log combined; | ||
27 | + #error_log /Data/logs/nginx/error_yohoinc.log warn; | ||
28 | + | ||
29 | + location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { | ||
30 | + expires 1d; | ||
31 | + } | ||
32 | + | ||
33 | + location ~ .*\.(js|css)?$ { | ||
34 | + expires 1h; | ||
35 | + } | ||
36 | + | ||
37 | +} | ||
38 | + | ||
39 | +server | ||
40 | +{ | ||
41 | + listen 80; | ||
42 | + server_name res.yohoboys.com rescdn.yohoboys.com; | ||
43 | + index index.php; | ||
44 | + root D:/workspace/yohostore/master/static/boygirls; | ||
45 | + #access_log /Data/logs/nginx/access_yohoinc.log combined; | ||
46 | + #error_log /Data/logs/nginx/error_yohoinc.log warn; | ||
47 | + | ||
48 | + location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { | ||
49 | + expires 1d; | ||
50 | + } | ||
51 | + | ||
52 | + location ~ .*\.(js|css)?$ { | ||
53 | + expires 1h; | ||
54 | + } | ||
55 | + | ||
56 | +} |
script/nginx/conf/win-utf
0 → 100644
1 | + | ||
2 | +# This map is not a full windows-1251 <> utf8 map: it does not | ||
3 | +# contain Serbian and Macedonian letters. If you need a full map, | ||
4 | +# use contrib/unicode2nginx/win-utf map instead. | ||
5 | + | ||
6 | +charset_map windows-1251 utf-8 { | ||
7 | + | ||
8 | + 82 E2809A ; # single low-9 quotation mark | ||
9 | + | ||
10 | + 84 E2809E ; # double low-9 quotation mark | ||
11 | + 85 E280A6 ; # ellipsis | ||
12 | + 86 E280A0 ; # dagger | ||
13 | + 87 E280A1 ; # double dagger | ||
14 | + 88 E282AC ; # euro | ||
15 | + 89 E280B0 ; # per mille | ||
16 | + | ||
17 | + 91 E28098 ; # left single quotation mark | ||
18 | + 92 E28099 ; # right single quotation mark | ||
19 | + 93 E2809C ; # left double quotation mark | ||
20 | + 94 E2809D ; # right double quotation mark | ||
21 | + 95 E280A2 ; # bullet | ||
22 | + 96 E28093 ; # en dash | ||
23 | + 97 E28094 ; # em dash | ||
24 | + | ||
25 | + 99 E284A2 ; # trade mark sign | ||
26 | + | ||
27 | + A0 C2A0 ; # | ||
28 | + A1 D18E ; # capital Byelorussian short U | ||
29 | + A2 D19E ; # small Byelorussian short u | ||
30 | + | ||
31 | + A4 C2A4 ; # currency sign | ||
32 | + A5 D290 ; # capital Ukrainian soft G | ||
33 | + A6 C2A6 ; # borken bar | ||
34 | + A7 C2A7 ; # section sign | ||
35 | + A8 D081 ; # capital YO | ||
36 | + A9 C2A9 ; # (C) | ||
37 | + AA D084 ; # capital Ukrainian YE | ||
38 | + AB C2AB ; # left-pointing double angle quotation mark | ||
39 | + AC C2AC ; # not sign | ||
40 | + AD C2AD ; # soft hypen | ||
41 | + AE C2AE ; # (R) | ||
42 | + AF D087 ; # capital Ukrainian YI | ||
43 | + | ||
44 | + B0 C2B0 ; # ° | ||
45 | + B1 C2B1 ; # plus-minus sign | ||
46 | + B2 D086 ; # capital Ukrainian I | ||
47 | + B3 D196 ; # small Ukrainian i | ||
48 | + B4 D291 ; # small Ukrainian soft g | ||
49 | + B5 C2B5 ; # micro sign | ||
50 | + B6 C2B6 ; # pilcrow sign | ||
51 | + B7 C2B7 ; # · | ||
52 | + B8 D191 ; # small yo | ||
53 | + B9 E28496 ; # numero sign | ||
54 | + BA D194 ; # small Ukrainian ye | ||
55 | + BB C2BB ; # right-pointing double angle quotation mark | ||
56 | + | ||
57 | + BF D197 ; # small Ukrainian yi | ||
58 | + | ||
59 | + C0 D090 ; # capital A | ||
60 | + C1 D091 ; # capital B | ||
61 | + C2 D092 ; # capital V | ||
62 | + C3 D093 ; # capital G | ||
63 | + C4 D094 ; # capital D | ||
64 | + C5 D095 ; # capital YE | ||
65 | + C6 D096 ; # capital ZH | ||
66 | + C7 D097 ; # capital Z | ||
67 | + C8 D098 ; # capital I | ||
68 | + C9 D099 ; # capital J | ||
69 | + CA D09A ; # capital K | ||
70 | + CB D09B ; # capital L | ||
71 | + CC D09C ; # capital M | ||
72 | + CD D09D ; # capital N | ||
73 | + CE D09E ; # capital O | ||
74 | + CF D09F ; # capital P | ||
75 | + | ||
76 | + D0 D0A0 ; # capital R | ||
77 | + D1 D0A1 ; # capital S | ||
78 | + D2 D0A2 ; # capital T | ||
79 | + D3 D0A3 ; # capital U | ||
80 | + D4 D0A4 ; # capital F | ||
81 | + D5 D0A5 ; # capital KH | ||
82 | + D6 D0A6 ; # capital TS | ||
83 | + D7 D0A7 ; # capital CH | ||
84 | + D8 D0A8 ; # capital SH | ||
85 | + D9 D0A9 ; # capital SHCH | ||
86 | + DA D0AA ; # capital hard sign | ||
87 | + DB D0AB ; # capital Y | ||
88 | + DC D0AC ; # capital soft sign | ||
89 | + DD D0AD ; # capital E | ||
90 | + DE D0AE ; # capital YU | ||
91 | + DF D0AF ; # capital YA | ||
92 | + | ||
93 | + E0 D0B0 ; # small a | ||
94 | + E1 D0B1 ; # small b | ||
95 | + E2 D0B2 ; # small v | ||
96 | + E3 D0B3 ; # small g | ||
97 | + E4 D0B4 ; # small d | ||
98 | + E5 D0B5 ; # small ye | ||
99 | + E6 D0B6 ; # small zh | ||
100 | + E7 D0B7 ; # small z | ||
101 | + E8 D0B8 ; # small i | ||
102 | + E9 D0B9 ; # small j | ||
103 | + EA D0BA ; # small k | ||
104 | + EB D0BB ; # small l | ||
105 | + EC D0BC ; # small m | ||
106 | + ED D0BD ; # small n | ||
107 | + EE D0BE ; # small o | ||
108 | + EF D0BF ; # small p | ||
109 | + | ||
110 | + F0 D180 ; # small r | ||
111 | + F1 D181 ; # small s | ||
112 | + F2 D182 ; # small t | ||
113 | + F3 D183 ; # small u | ||
114 | + F4 D184 ; # small f | ||
115 | + F5 D185 ; # small kh | ||
116 | + F6 D186 ; # small ts | ||
117 | + F7 D187 ; # small ch | ||
118 | + F8 D188 ; # small sh | ||
119 | + F9 D189 ; # small shch | ||
120 | + FA D18A ; # small hard sign | ||
121 | + FB D18B ; # small y | ||
122 | + FC D18C ; # small soft sign | ||
123 | + FD D18D ; # small e | ||
124 | + FE D18E ; # small yu | ||
125 | + FF D18F ; # small ya | ||
126 | +} |
script/nginx/contrib/README
0 → 100644
1 | + | ||
2 | +geo2nginx.pl by Andrei Nigmatulin | ||
3 | + | ||
4 | + The perl script to convert CSV geoip database ( free download | ||
5 | + at http://www.maxmind.com/app/geoip_country ) to format, suitable | ||
6 | + for use by the ngx_http_geo_module. | ||
7 | + | ||
8 | + | ||
9 | +unicode2nginx by Maxim Dounin | ||
10 | + | ||
11 | + The perl script to convert unicode mappings ( available | ||
12 | + at http://www.unicode.org/Public/MAPPINGS/ ) to the nginx | ||
13 | + configuration file format. | ||
14 | + Two generated full maps for windows-1251 and koi8-r. | ||
15 | + |
script/nginx/contrib/geo2nginx.pl
0 → 100644
1 | +#!/usr/bin/perl -w | ||
2 | + | ||
3 | +# (c) Andrei Nigmatulin, 2005 | ||
4 | +# | ||
5 | +# this script provided "as is", without any warranties. use it at your own risk. | ||
6 | +# | ||
7 | +# special thanx to Andrew Sitnikov for perl port | ||
8 | +# | ||
9 | +# this script converts CSV geoip database (free download at http://www.maxmind.com/app/geoip_country) | ||
10 | +# to format, suitable for use with nginx_http_geo module (http://sysoev.ru/nginx) | ||
11 | +# | ||
12 | +# for example, line with ip range | ||
13 | +# | ||
14 | +# "62.16.68.0","62.16.127.255","1041253376","1041268735","RU","Russian Federation" | ||
15 | +# | ||
16 | +# will be converted to four subnetworks: | ||
17 | +# | ||
18 | +# 62.16.68.0/22 RU; | ||
19 | +# 62.16.72.0/21 RU; | ||
20 | +# 62.16.80.0/20 RU; | ||
21 | +# 62.16.96.0/19 RU; | ||
22 | + | ||
23 | + | ||
24 | +use warnings; | ||
25 | +use strict; | ||
26 | + | ||
27 | +while( <STDIN> ){ | ||
28 | + if (/"[^"]+","[^"]+","([^"]+)","([^"]+)","([^"]+)"/){ | ||
29 | + print_subnets($1, $2, $3); | ||
30 | + } | ||
31 | +} | ||
32 | + | ||
33 | +sub print_subnets { | ||
34 | + my ($a1, $a2, $c) = @_; | ||
35 | + my $l; | ||
36 | + while ($a1 <= $a2) { | ||
37 | + for ($l = 0; ($a1 & (1 << $l)) == 0 && ($a1 + ((1 << ($l + 1)) - 1)) <= $a2; $l++){}; | ||
38 | + print long2ip($a1) . "/" . (32 - $l) . " " . $c . ";\n"; | ||
39 | + $a1 += (1 << $l); | ||
40 | + } | ||
41 | +} | ||
42 | + | ||
43 | +sub long2ip { | ||
44 | + my $ip = shift; | ||
45 | + | ||
46 | + my $str = 0; | ||
47 | + | ||
48 | + $str = ($ip & 255); | ||
49 | + | ||
50 | + $ip >>= 8; | ||
51 | + $str = ($ip & 255).".$str"; | ||
52 | + | ||
53 | + $ip >>= 8; | ||
54 | + $str = ($ip & 255).".$str"; | ||
55 | + | ||
56 | + $ip >>= 8; | ||
57 | + $str = ($ip & 255).".$str"; | ||
58 | +} |
script/nginx/contrib/unicode2nginx/koi-utf
0 → 100644
1 | +charset_map koi8-r utf-8 { | ||
2 | + | ||
3 | + 80 E29480 ; # BOX DRAWINGS LIGHT HORIZONTAL | ||
4 | + 81 E29482 ; # BOX DRAWINGS LIGHT VERTICAL | ||
5 | + 82 E2948C ; # BOX DRAWINGS LIGHT DOWN AND RIGHT | ||
6 | + 83 E29490 ; # BOX DRAWINGS LIGHT DOWN AND LEFT | ||
7 | + 84 E29494 ; # BOX DRAWINGS LIGHT UP AND RIGHT | ||
8 | + 85 E29498 ; # BOX DRAWINGS LIGHT UP AND LEFT | ||
9 | + 86 E2949C ; # BOX DRAWINGS LIGHT VERTICAL AND RIGHT | ||
10 | + 87 E294A4 ; # BOX DRAWINGS LIGHT VERTICAL AND LEFT | ||
11 | + 88 E294AC ; # BOX DRAWINGS LIGHT DOWN AND HORIZONTAL | ||
12 | + 89 E294B4 ; # BOX DRAWINGS LIGHT UP AND HORIZONTAL | ||
13 | + 8A E294BC ; # BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL | ||
14 | + 8B E29680 ; # UPPER HALF BLOCK | ||
15 | + 8C E29684 ; # LOWER HALF BLOCK | ||
16 | + 8D E29688 ; # FULL BLOCK | ||
17 | + 8E E2968C ; # LEFT HALF BLOCK | ||
18 | + 8F E29690 ; # RIGHT HALF BLOCK | ||
19 | + 90 E29691 ; # LIGHT SHADE | ||
20 | + 91 E29692 ; # MEDIUM SHADE | ||
21 | + 92 E29693 ; # DARK SHADE | ||
22 | + 93 E28CA0 ; # TOP HALF INTEGRAL | ||
23 | + 94 E296A0 ; # BLACK SQUARE | ||
24 | + 95 E28899 ; # BULLET OPERATOR | ||
25 | + 96 E2889A ; # SQUARE ROOT | ||
26 | + 97 E28988 ; # ALMOST EQUAL TO | ||
27 | + 98 E289A4 ; # LESS-THAN OR EQUAL TO | ||
28 | + 99 E289A5 ; # GREATER-THAN OR EQUAL TO | ||
29 | + 9A C2A0 ; # NO-BREAK SPACE | ||
30 | + 9B E28CA1 ; # BOTTOM HALF INTEGRAL | ||
31 | + 9C C2B0 ; # DEGREE SIGN | ||
32 | + 9D C2B2 ; # SUPERSCRIPT TWO | ||
33 | + 9E C2B7 ; # MIDDLE DOT | ||
34 | + 9F C3B7 ; # DIVISION SIGN | ||
35 | + A0 E29590 ; # BOX DRAWINGS DOUBLE HORIZONTAL | ||
36 | + A1 E29591 ; # BOX DRAWINGS DOUBLE VERTICAL | ||
37 | + A2 E29592 ; # BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE | ||
38 | + A3 D191 ; # CYRILLIC SMALL LETTER IO | ||
39 | + A4 E29593 ; # BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE | ||
40 | + A5 E29594 ; # BOX DRAWINGS DOUBLE DOWN AND RIGHT | ||
41 | + A6 E29595 ; # BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE | ||
42 | + A7 E29596 ; # BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE | ||
43 | + A8 E29597 ; # BOX DRAWINGS DOUBLE DOWN AND LEFT | ||
44 | + A9 E29598 ; # BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE | ||
45 | + AA E29599 ; # BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE | ||
46 | + AB E2959A ; # BOX DRAWINGS DOUBLE UP AND RIGHT | ||
47 | + AC E2959B ; # BOX DRAWINGS UP SINGLE AND LEFT DOUBLE | ||
48 | + AD E2959C ; # BOX DRAWINGS UP DOUBLE AND LEFT SINGLE | ||
49 | + AE E2959D ; # BOX DRAWINGS DOUBLE UP AND LEFT | ||
50 | + AF E2959E ; # BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE | ||
51 | + B0 E2959F ; # BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE | ||
52 | + B1 E295A0 ; # BOX DRAWINGS DOUBLE VERTICAL AND RIGHT | ||
53 | + B2 E295A1 ; # BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE | ||
54 | + B3 D081 ; # CYRILLIC CAPITAL LETTER IO | ||
55 | + B4 E295A2 ; # BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE | ||
56 | + B5 E295A3 ; # BOX DRAWINGS DOUBLE VERTICAL AND LEFT | ||
57 | + B6 E295A4 ; # BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE | ||
58 | + B7 E295A5 ; # BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE | ||
59 | + B8 E295A6 ; # BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL | ||
60 | + B9 E295A7 ; # BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE | ||
61 | + BA E295A8 ; # BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE | ||
62 | + BB E295A9 ; # BOX DRAWINGS DOUBLE UP AND HORIZONTAL | ||
63 | + BC E295AA ; # BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE | ||
64 | + BD E295AB ; # BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE | ||
65 | + BE E295AC ; # BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL | ||
66 | + BF C2A9 ; # COPYRIGHT SIGN | ||
67 | + C0 D18E ; # CYRILLIC SMALL LETTER YU | ||
68 | + C1 D0B0 ; # CYRILLIC SMALL LETTER A | ||
69 | + C2 D0B1 ; # CYRILLIC SMALL LETTER BE | ||
70 | + C3 D186 ; # CYRILLIC SMALL LETTER TSE | ||
71 | + C4 D0B4 ; # CYRILLIC SMALL LETTER DE | ||
72 | + C5 D0B5 ; # CYRILLIC SMALL LETTER IE | ||
73 | + C6 D184 ; # CYRILLIC SMALL LETTER EF | ||
74 | + C7 D0B3 ; # CYRILLIC SMALL LETTER GHE | ||
75 | + C8 D185 ; # CYRILLIC SMALL LETTER HA | ||
76 | + C9 D0B8 ; # CYRILLIC SMALL LETTER I | ||
77 | + CA D0B9 ; # CYRILLIC SMALL LETTER SHORT I | ||
78 | + CB D0BA ; # CYRILLIC SMALL LETTER KA | ||
79 | + CC D0BB ; # CYRILLIC SMALL LETTER EL | ||
80 | + CD D0BC ; # CYRILLIC SMALL LETTER EM | ||
81 | + CE D0BD ; # CYRILLIC SMALL LETTER EN | ||
82 | + CF D0BE ; # CYRILLIC SMALL LETTER O | ||
83 | + D0 D0BF ; # CYRILLIC SMALL LETTER PE | ||
84 | + D1 D18F ; # CYRILLIC SMALL LETTER YA | ||
85 | + D2 D180 ; # CYRILLIC SMALL LETTER ER | ||
86 | + D3 D181 ; # CYRILLIC SMALL LETTER ES | ||
87 | + D4 D182 ; # CYRILLIC SMALL LETTER TE | ||
88 | + D5 D183 ; # CYRILLIC SMALL LETTER U | ||
89 | + D6 D0B6 ; # CYRILLIC SMALL LETTER ZHE | ||
90 | + D7 D0B2 ; # CYRILLIC SMALL LETTER VE | ||
91 | + D8 D18C ; # CYRILLIC SMALL LETTER SOFT SIGN | ||
92 | + D9 D18B ; # CYRILLIC SMALL LETTER YERU | ||
93 | + DA D0B7 ; # CYRILLIC SMALL LETTER ZE | ||
94 | + DB D188 ; # CYRILLIC SMALL LETTER SHA | ||
95 | + DC D18D ; # CYRILLIC SMALL LETTER E | ||
96 | + DD D189 ; # CYRILLIC SMALL LETTER SHCHA | ||
97 | + DE D187 ; # CYRILLIC SMALL LETTER CHE | ||
98 | + DF D18A ; # CYRILLIC SMALL LETTER HARD SIGN | ||
99 | + E0 D0AE ; # CYRILLIC CAPITAL LETTER YU | ||
100 | + E1 D090 ; # CYRILLIC CAPITAL LETTER A | ||
101 | + E2 D091 ; # CYRILLIC CAPITAL LETTER BE | ||
102 | + E3 D0A6 ; # CYRILLIC CAPITAL LETTER TSE | ||
103 | + E4 D094 ; # CYRILLIC CAPITAL LETTER DE | ||
104 | + E5 D095 ; # CYRILLIC CAPITAL LETTER IE | ||
105 | + E6 D0A4 ; # CYRILLIC CAPITAL LETTER EF | ||
106 | + E7 D093 ; # CYRILLIC CAPITAL LETTER GHE | ||
107 | + E8 D0A5 ; # CYRILLIC CAPITAL LETTER HA | ||
108 | + E9 D098 ; # CYRILLIC CAPITAL LETTER I | ||
109 | + EA D099 ; # CYRILLIC CAPITAL LETTER SHORT I | ||
110 | + EB D09A ; # CYRILLIC CAPITAL LETTER KA | ||
111 | + EC D09B ; # CYRILLIC CAPITAL LETTER EL | ||
112 | + ED D09C ; # CYRILLIC CAPITAL LETTER EM | ||
113 | + EE D09D ; # CYRILLIC CAPITAL LETTER EN | ||
114 | + EF D09E ; # CYRILLIC CAPITAL LETTER O | ||
115 | + F0 D09F ; # CYRILLIC CAPITAL LETTER PE | ||
116 | + F1 D0AF ; # CYRILLIC CAPITAL LETTER YA | ||
117 | + F2 D0A0 ; # CYRILLIC CAPITAL LETTER ER | ||
118 | + F3 D0A1 ; # CYRILLIC CAPITAL LETTER ES | ||
119 | + F4 D0A2 ; # CYRILLIC CAPITAL LETTER TE | ||
120 | + F5 D0A3 ; # CYRILLIC CAPITAL LETTER U | ||
121 | + F6 D096 ; # CYRILLIC CAPITAL LETTER ZHE | ||
122 | + F7 D092 ; # CYRILLIC CAPITAL LETTER VE | ||
123 | + F8 D0AC ; # CYRILLIC CAPITAL LETTER SOFT SIGN | ||
124 | + F9 D0AB ; # CYRILLIC CAPITAL LETTER YERU | ||
125 | + FA D097 ; # CYRILLIC CAPITAL LETTER ZE | ||
126 | + FB D0A8 ; # CYRILLIC CAPITAL LETTER SHA | ||
127 | + FC D0AD ; # CYRILLIC CAPITAL LETTER E | ||
128 | + FD D0A9 ; # CYRILLIC CAPITAL LETTER SHCHA | ||
129 | + FE D0A7 ; # CYRILLIC CAPITAL LETTER CHE | ||
130 | + FF D0AA ; # CYRILLIC CAPITAL LETTER HARD SIGN | ||
131 | +} |
1 | +#!/usr/bin/perl -w | ||
2 | + | ||
3 | +# Convert unicode mappings to nginx configuration file format. | ||
4 | + | ||
5 | +# You may find useful mappings in various places, including | ||
6 | +# unicode.org official site: | ||
7 | +# | ||
8 | +# http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1251.TXT | ||
9 | +# http://www.unicode.org/Public/MAPPINGS/VENDORS/MISC/KOI8-R.TXT | ||
10 | + | ||
11 | +# Needs perl 5.6 or later. | ||
12 | + | ||
13 | +# Written by Maxim Dounin, mdounin@rambler-co.ru | ||
14 | + | ||
15 | +############################################################################### | ||
16 | + | ||
17 | +require 5.006; | ||
18 | + | ||
19 | +while (<>) { | ||
20 | + # Skip comments and empty lines | ||
21 | + | ||
22 | + next if /^#/; | ||
23 | + next if /^\s*$/; | ||
24 | + chomp; | ||
25 | + | ||
26 | + # Convert mappings | ||
27 | + | ||
28 | + if (/^\s*0x(..)\s*0x(....)\s*(#.*)/) { | ||
29 | + # Mapping <from-code> <unicode-code> "#" <unicode-name> | ||
30 | + my $cs_code = $1; | ||
31 | + my $un_code = $2; | ||
32 | + my $un_name = $3; | ||
33 | + | ||
34 | + # Produce UTF-8 sequence from character code; | ||
35 | + | ||
36 | + my $un_utf8 = join('', map { sprintf("%02X", $_) } unpack("C*", pack("U", hex($un_code)))); | ||
37 | + | ||
38 | + print " $cs_code $un_utf8 ; $un_name\n"; | ||
39 | + | ||
40 | + } else { | ||
41 | + warn "Unrecognized line: '$_'"; | ||
42 | + } | ||
43 | +} | ||
44 | + | ||
45 | +############################################################################### |
script/nginx/contrib/unicode2nginx/win-utf
0 → 100644
1 | +charset_map windows-1251 utf-8 { | ||
2 | + | ||
3 | + 80 D082 ; #CYRILLIC CAPITAL LETTER DJE | ||
4 | + 81 D083 ; #CYRILLIC CAPITAL LETTER GJE | ||
5 | + 82 E2809A ; #SINGLE LOW-9 QUOTATION MARK | ||
6 | + 83 D193 ; #CYRILLIC SMALL LETTER GJE | ||
7 | + 84 E2809E ; #DOUBLE LOW-9 QUOTATION MARK | ||
8 | + 85 E280A6 ; #HORIZONTAL ELLIPSIS | ||
9 | + 86 E280A0 ; #DAGGER | ||
10 | + 87 E280A1 ; #DOUBLE DAGGER | ||
11 | + 88 E282AC ; #EURO SIGN | ||
12 | + 89 E280B0 ; #PER MILLE SIGN | ||
13 | + 8A D089 ; #CYRILLIC CAPITAL LETTER LJE | ||
14 | + 8B E280B9 ; #SINGLE LEFT-POINTING ANGLE QUOTATION MARK | ||
15 | + 8C D08A ; #CYRILLIC CAPITAL LETTER NJE | ||
16 | + 8D D08C ; #CYRILLIC CAPITAL LETTER KJE | ||
17 | + 8E D08B ; #CYRILLIC CAPITAL LETTER TSHE | ||
18 | + 8F D08F ; #CYRILLIC CAPITAL LETTER DZHE | ||
19 | + 90 D192 ; #CYRILLIC SMALL LETTER DJE | ||
20 | + 91 E28098 ; #LEFT SINGLE QUOTATION MARK | ||
21 | + 92 E28099 ; #RIGHT SINGLE QUOTATION MARK | ||
22 | + 93 E2809C ; #LEFT DOUBLE QUOTATION MARK | ||
23 | + 94 E2809D ; #RIGHT DOUBLE QUOTATION MARK | ||
24 | + 95 E280A2 ; #BULLET | ||
25 | + 96 E28093 ; #EN DASH | ||
26 | + 97 E28094 ; #EM DASH | ||
27 | + 99 E284A2 ; #TRADE MARK SIGN | ||
28 | + 9A D199 ; #CYRILLIC SMALL LETTER LJE | ||
29 | + 9B E280BA ; #SINGLE RIGHT-POINTING ANGLE QUOTATION MARK | ||
30 | + 9C D19A ; #CYRILLIC SMALL LETTER NJE | ||
31 | + 9D D19C ; #CYRILLIC SMALL LETTER KJE | ||
32 | + 9E D19B ; #CYRILLIC SMALL LETTER TSHE | ||
33 | + 9F D19F ; #CYRILLIC SMALL LETTER DZHE | ||
34 | + A0 C2A0 ; #NO-BREAK SPACE | ||
35 | + A1 D08E ; #CYRILLIC CAPITAL LETTER SHORT U | ||
36 | + A2 D19E ; #CYRILLIC SMALL LETTER SHORT U | ||
37 | + A3 D088 ; #CYRILLIC CAPITAL LETTER JE | ||
38 | + A4 C2A4 ; #CURRENCY SIGN | ||
39 | + A5 D290 ; #CYRILLIC CAPITAL LETTER GHE WITH UPTURN | ||
40 | + A6 C2A6 ; #BROKEN BAR | ||
41 | + A7 C2A7 ; #SECTION SIGN | ||
42 | + A8 D081 ; #CYRILLIC CAPITAL LETTER IO | ||
43 | + A9 C2A9 ; #COPYRIGHT SIGN | ||
44 | + AA D084 ; #CYRILLIC CAPITAL LETTER UKRAINIAN IE | ||
45 | + AB C2AB ; #LEFT-POINTING DOUBLE ANGLE QUOTATION MARK | ||
46 | + AC C2AC ; #NOT SIGN | ||
47 | + AD C2AD ; #SOFT HYPHEN | ||
48 | + AE C2AE ; #REGISTERED SIGN | ||
49 | + AF D087 ; #CYRILLIC CAPITAL LETTER YI | ||
50 | + B0 C2B0 ; #DEGREE SIGN | ||
51 | + B1 C2B1 ; #PLUS-MINUS SIGN | ||
52 | + B2 D086 ; #CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I | ||
53 | + B3 D196 ; #CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I | ||
54 | + B4 D291 ; #CYRILLIC SMALL LETTER GHE WITH UPTURN | ||
55 | + B5 C2B5 ; #MICRO SIGN | ||
56 | + B6 C2B6 ; #PILCROW SIGN | ||
57 | + B7 C2B7 ; #MIDDLE DOT | ||
58 | + B8 D191 ; #CYRILLIC SMALL LETTER IO | ||
59 | + B9 E28496 ; #NUMERO SIGN | ||
60 | + BA D194 ; #CYRILLIC SMALL LETTER UKRAINIAN IE | ||
61 | + BB C2BB ; #RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK | ||
62 | + BC D198 ; #CYRILLIC SMALL LETTER JE | ||
63 | + BD D085 ; #CYRILLIC CAPITAL LETTER DZE | ||
64 | + BE D195 ; #CYRILLIC SMALL LETTER DZE | ||
65 | + BF D197 ; #CYRILLIC SMALL LETTER YI | ||
66 | + C0 D090 ; #CYRILLIC CAPITAL LETTER A | ||
67 | + C1 D091 ; #CYRILLIC CAPITAL LETTER BE | ||
68 | + C2 D092 ; #CYRILLIC CAPITAL LETTER VE | ||
69 | + C3 D093 ; #CYRILLIC CAPITAL LETTER GHE | ||
70 | + C4 D094 ; #CYRILLIC CAPITAL LETTER DE | ||
71 | + C5 D095 ; #CYRILLIC CAPITAL LETTER IE | ||
72 | + C6 D096 ; #CYRILLIC CAPITAL LETTER ZHE | ||
73 | + C7 D097 ; #CYRILLIC CAPITAL LETTER ZE | ||
74 | + C8 D098 ; #CYRILLIC CAPITAL LETTER I | ||
75 | + C9 D099 ; #CYRILLIC CAPITAL LETTER SHORT I | ||
76 | + CA D09A ; #CYRILLIC CAPITAL LETTER KA | ||
77 | + CB D09B ; #CYRILLIC CAPITAL LETTER EL | ||
78 | + CC D09C ; #CYRILLIC CAPITAL LETTER EM | ||
79 | + CD D09D ; #CYRILLIC CAPITAL LETTER EN | ||
80 | + CE D09E ; #CYRILLIC CAPITAL LETTER O | ||
81 | + CF D09F ; #CYRILLIC CAPITAL LETTER PE | ||
82 | + D0 D0A0 ; #CYRILLIC CAPITAL LETTER ER | ||
83 | + D1 D0A1 ; #CYRILLIC CAPITAL LETTER ES | ||
84 | + D2 D0A2 ; #CYRILLIC CAPITAL LETTER TE | ||
85 | + D3 D0A3 ; #CYRILLIC CAPITAL LETTER U | ||
86 | + D4 D0A4 ; #CYRILLIC CAPITAL LETTER EF | ||
87 | + D5 D0A5 ; #CYRILLIC CAPITAL LETTER HA | ||
88 | + D6 D0A6 ; #CYRILLIC CAPITAL LETTER TSE | ||
89 | + D7 D0A7 ; #CYRILLIC CAPITAL LETTER CHE | ||
90 | + D8 D0A8 ; #CYRILLIC CAPITAL LETTER SHA | ||
91 | + D9 D0A9 ; #CYRILLIC CAPITAL LETTER SHCHA | ||
92 | + DA D0AA ; #CYRILLIC CAPITAL LETTER HARD SIGN | ||
93 | + DB D0AB ; #CYRILLIC CAPITAL LETTER YERU | ||
94 | + DC D0AC ; #CYRILLIC CAPITAL LETTER SOFT SIGN | ||
95 | + DD D0AD ; #CYRILLIC CAPITAL LETTER E | ||
96 | + DE D0AE ; #CYRILLIC CAPITAL LETTER YU | ||
97 | + DF D0AF ; #CYRILLIC CAPITAL LETTER YA | ||
98 | + E0 D0B0 ; #CYRILLIC SMALL LETTER A | ||
99 | + E1 D0B1 ; #CYRILLIC SMALL LETTER BE | ||
100 | + E2 D0B2 ; #CYRILLIC SMALL LETTER VE | ||
101 | + E3 D0B3 ; #CYRILLIC SMALL LETTER GHE | ||
102 | + E4 D0B4 ; #CYRILLIC SMALL LETTER DE | ||
103 | + E5 D0B5 ; #CYRILLIC SMALL LETTER IE | ||
104 | + E6 D0B6 ; #CYRILLIC SMALL LETTER ZHE | ||
105 | + E7 D0B7 ; #CYRILLIC SMALL LETTER ZE | ||
106 | + E8 D0B8 ; #CYRILLIC SMALL LETTER I | ||
107 | + E9 D0B9 ; #CYRILLIC SMALL LETTER SHORT I | ||
108 | + EA D0BA ; #CYRILLIC SMALL LETTER KA | ||
109 | + EB D0BB ; #CYRILLIC SMALL LETTER EL | ||
110 | + EC D0BC ; #CYRILLIC SMALL LETTER EM | ||
111 | + ED D0BD ; #CYRILLIC SMALL LETTER EN | ||
112 | + EE D0BE ; #CYRILLIC SMALL LETTER O | ||
113 | + EF D0BF ; #CYRILLIC SMALL LETTER PE | ||
114 | + F0 D180 ; #CYRILLIC SMALL LETTER ER | ||
115 | + F1 D181 ; #CYRILLIC SMALL LETTER ES | ||
116 | + F2 D182 ; #CYRILLIC SMALL LETTER TE | ||
117 | + F3 D183 ; #CYRILLIC SMALL LETTER U | ||
118 | + F4 D184 ; #CYRILLIC SMALL LETTER EF | ||
119 | + F5 D185 ; #CYRILLIC SMALL LETTER HA | ||
120 | + F6 D186 ; #CYRILLIC SMALL LETTER TSE | ||
121 | + F7 D187 ; #CYRILLIC SMALL LETTER CHE | ||
122 | + F8 D188 ; #CYRILLIC SMALL LETTER SHA | ||
123 | + F9 D189 ; #CYRILLIC SMALL LETTER SHCHA | ||
124 | + FA D18A ; #CYRILLIC SMALL LETTER HARD SIGN | ||
125 | + FB D18B ; #CYRILLIC SMALL LETTER YERU | ||
126 | + FC D18C ; #CYRILLIC SMALL LETTER SOFT SIGN | ||
127 | + FD D18D ; #CYRILLIC SMALL LETTER E | ||
128 | + FE D18E ; #CYRILLIC SMALL LETTER YU | ||
129 | + FF D18F ; #CYRILLIC SMALL LETTER YA | ||
130 | +} |
script/nginx/docs/CHANGES
0 → 100644
This diff could not be displayed because it is too large.
script/nginx/docs/CHANGES.ru
0 → 100644
This diff could not be displayed because it is too large.
script/nginx/docs/LICENSE
0 → 100644
1 | +/* | ||
2 | + * Copyright (C) 2002-2010 Igor Sysoev | ||
3 | + * | ||
4 | + * Redistribution and use in source and binary forms, with or without | ||
5 | + * modification, are permitted provided that the following conditions | ||
6 | + * are met: | ||
7 | + * 1. Redistributions of source code must retain the above copyright | ||
8 | + * notice, this list of conditions and the following disclaimer. | ||
9 | + * 2. Redistributions in binary form must reproduce the above copyright | ||
10 | + * notice, this list of conditions and the following disclaimer in the | ||
11 | + * documentation and/or other materials provided with the distribution. | ||
12 | + * | ||
13 | + * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND | ||
14 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
15 | + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
16 | + * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE | ||
17 | + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
18 | + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
19 | + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
20 | + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
21 | + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
22 | + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
23 | + * SUCH DAMAGE. | ||
24 | + */ |
script/nginx/docs/OpenSSL.LICENSE
0 → 100644
1 | + | ||
2 | + LICENSE ISSUES | ||
3 | + ============== | ||
4 | + | ||
5 | + The OpenSSL toolkit stays under a dual license, i.e. both the conditions of | ||
6 | + the OpenSSL License and the original SSLeay license apply to the toolkit. | ||
7 | + See below for the actual license texts. Actually both licenses are BSD-style | ||
8 | + Open Source licenses. In case of any license issues related to OpenSSL | ||
9 | + please contact openssl-core@openssl.org. | ||
10 | + | ||
11 | + OpenSSL License | ||
12 | + --------------- | ||
13 | + | ||
14 | +/* ==================================================================== | ||
15 | + * Copyright (c) 1998-2008 The OpenSSL Project. All rights reserved. | ||
16 | + * | ||
17 | + * Redistribution and use in source and binary forms, with or without | ||
18 | + * modification, are permitted provided that the following conditions | ||
19 | + * are met: | ||
20 | + * | ||
21 | + * 1. Redistributions of source code must retain the above copyright | ||
22 | + * notice, this list of conditions and the following disclaimer. | ||
23 | + * | ||
24 | + * 2. Redistributions in binary form must reproduce the above copyright | ||
25 | + * notice, this list of conditions and the following disclaimer in | ||
26 | + * the documentation and/or other materials provided with the | ||
27 | + * distribution. | ||
28 | + * | ||
29 | + * 3. All advertising materials mentioning features or use of this | ||
30 | + * software must display the following acknowledgment: | ||
31 | + * "This product includes software developed by the OpenSSL Project | ||
32 | + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" | ||
33 | + * | ||
34 | + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
35 | + * endorse or promote products derived from this software without | ||
36 | + * prior written permission. For written permission, please contact | ||
37 | + * openssl-core@openssl.org. | ||
38 | + * | ||
39 | + * 5. Products derived from this software may not be called "OpenSSL" | ||
40 | + * nor may "OpenSSL" appear in their names without prior written | ||
41 | + * permission of the OpenSSL Project. | ||
42 | + * | ||
43 | + * 6. Redistributions of any form whatsoever must retain the following | ||
44 | + * acknowledgment: | ||
45 | + * "This product includes software developed by the OpenSSL Project | ||
46 | + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" | ||
47 | + * | ||
48 | + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
49 | + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
50 | + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
51 | + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
52 | + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
53 | + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
54 | + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
55 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
56 | + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
57 | + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
58 | + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
59 | + * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
60 | + * ==================================================================== | ||
61 | + * | ||
62 | + * This product includes cryptographic software written by Eric Young | ||
63 | + * (eay@cryptsoft.com). This product includes software written by Tim | ||
64 | + * Hudson (tjh@cryptsoft.com). | ||
65 | + * | ||
66 | + */ | ||
67 | + | ||
68 | + Original SSLeay License | ||
69 | + ----------------------- | ||
70 | + | ||
71 | +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
72 | + * All rights reserved. | ||
73 | + * | ||
74 | + * This package is an SSL implementation written | ||
75 | + * by Eric Young (eay@cryptsoft.com). | ||
76 | + * The implementation was written so as to conform with Netscapes SSL. | ||
77 | + * | ||
78 | + * This library is free for commercial and non-commercial use as long as | ||
79 | + * the following conditions are aheared to. The following conditions | ||
80 | + * apply to all code found in this distribution, be it the RC4, RSA, | ||
81 | + * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
82 | + * included with this distribution is covered by the same copyright terms | ||
83 | + * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
84 | + * | ||
85 | + * Copyright remains Eric Young's, and as such any Copyright notices in | ||
86 | + * the code are not to be removed. | ||
87 | + * If this package is used in a product, Eric Young should be given attribution | ||
88 | + * as the author of the parts of the library used. | ||
89 | + * This can be in the form of a textual message at program startup or | ||
90 | + * in documentation (online or textual) provided with the package. | ||
91 | + * | ||
92 | + * Redistribution and use in source and binary forms, with or without | ||
93 | + * modification, are permitted provided that the following conditions | ||
94 | + * are met: | ||
95 | + * 1. Redistributions of source code must retain the copyright | ||
96 | + * notice, this list of conditions and the following disclaimer. | ||
97 | + * 2. Redistributions in binary form must reproduce the above copyright | ||
98 | + * notice, this list of conditions and the following disclaimer in the | ||
99 | + * documentation and/or other materials provided with the distribution. | ||
100 | + * 3. All advertising materials mentioning features or use of this software | ||
101 | + * must display the following acknowledgement: | ||
102 | + * "This product includes cryptographic software written by | ||
103 | + * Eric Young (eay@cryptsoft.com)" | ||
104 | + * The word 'cryptographic' can be left out if the rouines from the library | ||
105 | + * being used are not cryptographic related :-). | ||
106 | + * 4. If you include any Windows specific code (or a derivative thereof) from | ||
107 | + * the apps directory (application code) you must include an acknowledgement: | ||
108 | + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
109 | + * | ||
110 | + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
111 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
112 | + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
113 | + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
114 | + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
115 | + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
116 | + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
117 | + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
118 | + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
119 | + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
120 | + * SUCH DAMAGE. | ||
121 | + * | ||
122 | + * The licence and distribution terms for any publically available version or | ||
123 | + * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
124 | + * copied and put under another distribution licence | ||
125 | + * [including the GNU Public Licence.] | ||
126 | + */ | ||
127 | + |
script/nginx/docs/PCRE.LICENCE
0 → 100644
1 | +PCRE LICENCE | ||
2 | +------------ | ||
3 | + | ||
4 | +PCRE is a library of functions to support regular expressions whose syntax | ||
5 | +and semantics are as close as possible to those of the Perl 5 language. | ||
6 | + | ||
7 | +Release 7 of PCRE is distributed under the terms of the "BSD" licence, as | ||
8 | +specified below. The documentation for PCRE, supplied in the "doc" | ||
9 | +directory, is distributed under the same terms as the software itself. | ||
10 | + | ||
11 | +The basic library functions are written in C and are freestanding. Also | ||
12 | +included in the distribution is a set of C++ wrapper functions. | ||
13 | + | ||
14 | + | ||
15 | +THE BASIC LIBRARY FUNCTIONS | ||
16 | +--------------------------- | ||
17 | + | ||
18 | +Written by: Philip Hazel | ||
19 | +Email local part: ph10 | ||
20 | +Email domain: cam.ac.uk | ||
21 | + | ||
22 | +University of Cambridge Computing Service, | ||
23 | +Cambridge, England. | ||
24 | + | ||
25 | +Copyright (c) 1997-2009 University of Cambridge | ||
26 | +All rights reserved. | ||
27 | + | ||
28 | + | ||
29 | +THE C++ WRAPPER FUNCTIONS | ||
30 | +------------------------- | ||
31 | + | ||
32 | +Contributed by: Google Inc. | ||
33 | + | ||
34 | +Copyright (c) 2007-2008, Google Inc. | ||
35 | +All rights reserved. | ||
36 | + | ||
37 | + | ||
38 | +THE "BSD" LICENCE | ||
39 | +----------------- | ||
40 | + | ||
41 | +Redistribution and use in source and binary forms, with or without | ||
42 | +modification, are permitted provided that the following conditions are met: | ||
43 | + | ||
44 | + * Redistributions of source code must retain the above copyright notice, | ||
45 | + this list of conditions and the following disclaimer. | ||
46 | + | ||
47 | + * Redistributions in binary form must reproduce the above copyright | ||
48 | + notice, this list of conditions and the following disclaimer in the | ||
49 | + documentation and/or other materials provided with the distribution. | ||
50 | + | ||
51 | + * Neither the name of the University of Cambridge nor the name of Google | ||
52 | + Inc. nor the names of their contributors may be used to endorse or | ||
53 | + promote products derived from this software without specific prior | ||
54 | + written permission. | ||
55 | + | ||
56 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
57 | +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
58 | +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
59 | +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
60 | +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
61 | +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
62 | +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
63 | +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
64 | +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
65 | +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
66 | +POSSIBILITY OF SUCH DAMAGE. | ||
67 | + | ||
68 | +End |
script/nginx/docs/README
0 → 100644
script/nginx/docs/zlib.LICENSE
0 → 100644
1 | + (C) 1995-2004 Jean-loup Gailly and Mark Adler | ||
2 | + | ||
3 | + This software is provided 'as-is', without any express or implied | ||
4 | + warranty. In no event will the authors be held liable for any damages | ||
5 | + arising from the use of this software. | ||
6 | + | ||
7 | + Permission is granted to anyone to use this software for any purpose, | ||
8 | + including commercial applications, and to alter it and redistribute it | ||
9 | + freely, subject to the following restrictions: | ||
10 | + | ||
11 | + 1. The origin of this software must not be misrepresented; you must not | ||
12 | + claim that you wrote the original software. If you use this software | ||
13 | + in a product, an acknowledgment in the product documentation would be | ||
14 | + appreciated but is not required. | ||
15 | + 2. Altered source versions must be plainly marked as such, and must not be | ||
16 | + misrepresented as being the original software. | ||
17 | + 3. This notice may not be removed or altered from any source distribution. | ||
18 | + | ||
19 | + Jean-loup Gailly Mark Adler | ||
20 | + jloup@gzip.org madler@alumni.caltech.edu |
script/nginx/installService.bat
0 → 100644
script/nginx/instsrv.exe
0 → 100644
No preview for this file type
script/nginx/nginx.exe
0 → 100644
No preview for this file type
script/nginx/nginx.reg
0 → 100644
script/nginx/openssl/server.key
0 → 100644
1 | +-----BEGIN RSA PRIVATE KEY----- | ||
2 | +Proc-Type: 4,ENCRYPTED | ||
3 | +DEK-Info: DES-EDE3-CBC,D917BBD1E929465D | ||
4 | + | ||
5 | +AE8gdEDrtWOoAvGzIcVMFVwZKDrGhvmJ9aS+QeLGrlOP+HnhPAmryP22uOkQGQ7w | ||
6 | +fvGNc+tRq2JNEawhHzRPffiDxPSn7xO1iaZuaBvtjjdWgC7vEOPW+uYsan8NE1VT | ||
7 | +9pTZjMzz6j0UvaadK/wOY9z60pChZ+FDZTqjiUMQEOEBsJxNC9YKyovZMbFe3pU/ | ||
8 | +XC9juVhosfJh/ks8xsPZFO5s21AeTBk3sR+36/IKRAkaXHeAdhbyzaWjId+8Uth9 | ||
9 | ++rQvGsGEFUKDn2CR3E9JzeRhPh5es04iJHO5auMYzKljhhbMYK4v4sI4g6vJCPOr | ||
10 | +FDWiKopTMWL14mNPJAMsR3GUaRRE5F1dIJeSatjGzB6i1wgfh8Vu0niAkLxi7bzm | ||
11 | +9K9StSkSQoqEE9GS9PIkGuvv016Ovvf+zj8QYaY8qjaZatCtKTj/gFBi4wGALzlE | ||
12 | +45KSvKOEHsZ1lqu2lkqnKyA4iXEFOlVgeKlSofzj4qQGSSdY2ZhREpvr0RIkuhHH | ||
13 | +xUKyZxfHuWaj0mzbxBx+1aynKPuYKa25KFjPORvyTNqS0WiFseHl+sFk6GKyrzgK | ||
14 | +Xv0iPcZKzoSleiKWaFDsSSNTsEKQhF2envoSK90krIOOTlNKHL/IE1iVCnn6X4UX | ||
15 | +xJrIE1DgMeuMyO0XY8iscGPY0e8x7viAS5tOw0G8kmww8QxCOfc4sQtLBJbbvye0 | ||
16 | +WArhY9xxGhl5fmvSalYSep0xtbkkMkfCUxaEN4naKon6JWK2rfJk2LE0HJlwmJuG | ||
17 | +PWFPRFsLp5r9BzT0wb7r0HFQyivtECu+SYrvC5Sr/8AHrFuXvMyudw== | ||
18 | +-----END RSA PRIVATE KEY----- |
script/nginx/openssl/server.pem
0 → 100644
1 | +-----BEGIN CERTIFICATE----- | ||
2 | +MIIC3DCCAkWgAwIBAgIJANcREg9fxTWyMA0GCSqGSIb3DQEBBQUAMIGGMQswCQYD | ||
3 | +VQQGEwIzMzEQMA4GA1UECAwHSmlhbmdTdTEQMA4GA1UEBwwHTmFuamluZzEPMA0G | ||
4 | +A1UECgwGZmVpa2VyMQ8wDQYDVQQLDAZmZWlrZXIxDzANBgNVBAMMBmZlaWtlcjEg | ||
5 | +MB4GCSqGSIb3DQEJARYRZmtldy5jbkBnbWFpbC5jb20wHhcNMTIwNjIxMDgwMzUx | ||
6 | +WhcNMTUwNjIxMDgwMzUxWjCBhjELMAkGA1UEBhMCMzMxEDAOBgNVBAgMB0ppYW5n | ||
7 | +U3UxEDAOBgNVBAcMB05hbmppbmcxDzANBgNVBAoMBmZlaWtlcjEPMA0GA1UECwwG | ||
8 | +ZmVpa2VyMQ8wDQYDVQQDDAZmZWlrZXIxIDAeBgkqhkiG9w0BCQEWEWZrZXcuY25A | ||
9 | +Z21haWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8ML1O4TmYEDGF | ||
10 | +2rNWzFwLGx9f9Bfx59SRMdDer9LQ65HXDRNt2GzyoI1R1hg4Sx1gr6gqFTOJgrZS | ||
11 | +23S+p3yMhpr/c8nsJaqssyoLnE3Ub54k984LZeWe59d5ueY95bCHuFhybQB7mX/F | ||
12 | +ZLFbttbjJZHaeovgiieElvjjVtlW2wIDAQABo1AwTjAdBgNVHQ4EFgQUNX4ZoyWX | ||
13 | +5e4vdK6w/nc7/zlPu3kwHwYDVR0jBBgwFoAUNX4ZoyWX5e4vdK6w/nc7/zlPu3kw | ||
14 | +DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQBhDRFk8rHyM0JZPHQLuvp+ | ||
15 | +JRxgG7vqIa1Sb5N9hR5CJ5i1pByEipDDVVXZU9FpIolob7VLe7aEUbpktdnCBNM/ | ||
16 | +gL7OgJh32kBhg3pAqlV2ZwMtH7paTiXJ0nO9pymGsQ0+Nwvds/eb2JknnE5hKP4L | ||
17 | +JtfBu46pQ8OVUuFdoA0/RA== | ||
18 | +-----END CERTIFICATE----- |
script/nginx/readme.txt
0 → 100644
1 | +English: | ||
2 | +1.unzip to c:\nginx\ | ||
3 | +2.installservie.bat =>install nginx service | ||
4 | +3.start-nginx.bat=>start nginx service | ||
5 | + stop-nginx.bat=>stop nginx service | ||
6 | +4.remove nginx service => WindowsServiceView.exe | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | +中文说明: | ||
11 | +解压缩到c:\nginx\下 | ||
12 | +1.installservice.bat是安装nginx服务脚本,与些有关的文件是instsrv.exe, nginx.reg, srvany.exe | ||
13 | + | ||
14 | +2.启动, 停止, 重启脚本分别是start-nginx.bat, stop-nginx.bat, restart-nginx.bat, 与这有关的文件是process.exe | ||
15 | + | ||
16 | +3.删除nginx服务: 使用Windows服务查看工具删除, | ||
17 | +再看一下注册表里HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NGINX\Parameters下的nginx项 | ||
18 | + | ||
19 | +4.以这种服务方式运行nginx后,在0.7.52版本中(其它没试):平滑地让新配置文件生效的方式(即不用关掉nginx,再打开) | ||
20 | +nginx -s reload, 似乎没作用了error.log里报OpenEvent("ngx_reload_5756") failed (2: 系统找不到指定的文件。) | ||
21 | +那就只能重启了。 | ||
22 | + | ||
23 | +其实有许多软件可以实现这种让程序以服务方式运行的功能, 但免费的我没有找到. | ||
24 | +FireDaemon Pro | ||
25 | +AlwaysUp | ||
26 | +Application as Service |
script/nginx/restart-nginx.bat
0 → 100644
1 | +@ECHO OFF | ||
2 | +process -k nginx.exe | ||
3 | +process -k nginx.exe | ||
4 | +process -k nginx.exe | ||
5 | +process -k nginx.exe | ||
6 | +process -k nginx.exe | ||
7 | +process -k nginx.exe | ||
8 | +process -k nginx.exe | ||
9 | +process -k nginx.exe | ||
10 | +process -k nginx.exe | ||
11 | +process -k nginx.exe | ||
12 | +process -k nginx.exe | ||
13 | +process -k nginx.exe | ||
14 | +process -k nginx.exe | ||
15 | +process -k nginx.exe | ||
16 | +process -k nginx.exe | ||
17 | +process -k nginx.exe | ||
18 | +process -k nginx.exe | ||
19 | +process -k nginx.exe | ||
20 | +process -k nginx.exe | ||
21 | +process -k nginx.exe | ||
22 | +process -k nginx.exe | ||
23 | +process -k nginx.exe | ||
24 | +process -k nginx.exe | ||
25 | +process -k nginx.exe | ||
26 | +process -k nginx.exe | ||
27 | +process -k nginx.exe | ||
28 | +process -k nginx.exe | ||
29 | +process -k nginx.exe | ||
30 | +process -k nginx.exe | ||
31 | +process -k nginx.exe | ||
32 | +process -k nginx.exe | ||
33 | +process -k nginx.exe | ||
34 | +del logs\nginx.pid | ||
35 | + | ||
36 | +net stop nginx | ||
37 | +net start nginx | ||
38 | +EXIT |
script/nginx/srvany.exe
0 → 100644
No preview for this file type
script/nginx/start-nginx.bat
0 → 100644
script/nginx/start-php.bat
0 → 100644
script/nginx/start-php5.3.29.bat
0 → 100644
script/nginx/stop-nginx.bat
0 → 100644
1 | +@ECHO OFF | ||
2 | +process -k nginx.exe | ||
3 | +process -k nginx.exe | ||
4 | +process -k nginx.exe | ||
5 | +process -k nginx.exe | ||
6 | +process -k nginx.exe | ||
7 | +process -k nginx.exe | ||
8 | +process -k nginx.exe | ||
9 | +process -k nginx.exe | ||
10 | +process -k nginx.exe | ||
11 | +process -k nginx.exe | ||
12 | +process -k nginx.exe | ||
13 | +process -k nginx.exe | ||
14 | +process -k nginx.exe | ||
15 | +process -k nginx.exe | ||
16 | +process -k nginx.exe | ||
17 | +process -k nginx.exe | ||
18 | +process -k nginx.exe | ||
19 | +process -k nginx.exe | ||
20 | +process -k nginx.exe | ||
21 | +process -k nginx.exe | ||
22 | +process -k nginx.exe | ||
23 | +process -k nginx.exe | ||
24 | +process -k nginx.exe | ||
25 | +process -k nginx.exe | ||
26 | +process -k nginx.exe | ||
27 | +process -k nginx.exe | ||
28 | +process -k nginx.exe | ||
29 | +process -k nginx.exe | ||
30 | +process -k nginx.exe | ||
31 | +process -k nginx.exe | ||
32 | +process -k nginx.exe | ||
33 | +process -k nginx.exe | ||
34 | +process -k php-cgi.exe | ||
35 | +process -k php-cgi.exe | ||
36 | +process -k php-cgi.exe | ||
37 | +process -k php-cgi.exe | ||
38 | +del logs\nginx.pid | ||
39 | +EXIT |
@@ -4,7 +4,7 @@ application.directory = APPLICATION_PATH "/application" | @@ -4,7 +4,7 @@ application.directory = APPLICATION_PATH "/application" | ||
4 | ;;website library | 4 | ;;website library |
5 | application.library = ROOT_PATH "/library" | 5 | application.library = ROOT_PATH "/library" |
6 | ;;默认模块 | 6 | ;;默认模块 |
7 | -application.modules = "Default,Test" | 7 | +application.modules = "index,default" |
8 | ;;加载 | 8 | ;;加载 |
9 | application.bootstrap = APPLICATION_PATH "/application/Bootstrap.php" | 9 | application.bootstrap = APPLICATION_PATH "/application/Bootstrap.php" |
10 | ;;view文件的扩展名 | 10 | ;;view文件的扩展名 |
@@ -19,7 +19,7 @@ application.dispatcher.defaultController = "index" | @@ -19,7 +19,7 @@ application.dispatcher.defaultController = "index" | ||
19 | application.dispatcher.defaultAction = "index" | 19 | application.dispatcher.defaultAction = "index" |
20 | 20 | ||
21 | ;;初始化命名空间 | 21 | ;;初始化命名空间 |
22 | -application.namespaces = "Action,Configs,Plugin" | 22 | +application.namespaces = "Action,Plugin" |
23 | 23 | ||
24 | ;;使用composer | 24 | ;;使用composer |
25 | composer.autoload = 0 | 25 | composer.autoload = 0 |
@@ -28,6 +28,7 @@ composer.path = APPLICATION_PATH "/library/Package" | @@ -28,6 +28,7 @@ composer.path = APPLICATION_PATH "/library/Package" | ||
28 | yaf.use_namespace = 1 | 28 | yaf.use_namespace = 1 |
29 | 29 | ||
30 | ;;调试模式 | 30 | ;;调试模式 |
31 | +[developer : common] | ||
31 | application.debug = True | 32 | application.debug = True |
32 | application.servers.config = APPLICATION_PATH "/configs/core" | 33 | application.servers.config = APPLICATION_PATH "/configs/core" |
33 | 34 |
@@ -28,6 +28,7 @@ composer.path = APPLICATION_PATH "/library/Package" | @@ -28,6 +28,7 @@ composer.path = APPLICATION_PATH "/library/Package" | ||
28 | yaf.use_namespace = 1 | 28 | yaf.use_namespace = 1 |
29 | 29 | ||
30 | ;;调试模式 | 30 | ;;调试模式 |
31 | +[production : common] | ||
31 | application.debug = False | 32 | application.debug = False |
32 | application.servers.config = APPLICATION_PATH "/configs/core" | 33 | application.servers.config = APPLICATION_PATH "/configs/core" |
33 | 34 |
@@ -28,6 +28,7 @@ composer.path = APPLICATION_PATH "/library/Package" | @@ -28,6 +28,7 @@ composer.path = APPLICATION_PATH "/library/Package" | ||
28 | yaf.use_namespace = 1 | 28 | yaf.use_namespace = 1 |
29 | 29 | ||
30 | ;;调试模式 | 30 | ;;调试模式 |
31 | +[testing : common] | ||
31 | application.debug = True | 32 | application.debug = True |
32 | application.servers.config = APPLICATION_PATH "/configs/core" | 33 | application.servers.config = APPLICATION_PATH "/configs/core" |
33 | 34 |
1 | ; default | 1 | ; default |
2 | -routes.index.type = "rewrite" | ||
3 | -routes.index.match = "/(index|index.html)$" | ||
4 | -routes.index.route.module = Default | ||
5 | -routes.index.route.controller = Index | ||
6 | -routes.index.route.action = Index | 2 | +;routes.index.type = "rewrite" |
3 | +;routes.index.match = "/(index|index.html)$" | ||
4 | +;routes.index.route.module = Default | ||
5 | +;routes.index.route.controller = Index | ||
6 | +;routes.index.route.action = Index | ||
7 | 7 | ||
8 | ; error | 8 | ; error |
9 | routes.notfound.type = "rewrite" | 9 | routes.notfound.type = "rewrite" |
-
Please register or login to post a comment