| 1 |
|
|---|
| 2 | #user nobody;
|
|---|
| 3 | worker_processes 1;
|
|---|
| 4 |
|
|---|
| 5 | events {
|
|---|
| 6 | worker_connections 1024;
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | http {
|
|---|
| 10 | include mime.types;
|
|---|
| 11 | default_type application/octet-stream;
|
|---|
| 12 |
|
|---|
| 13 | log_format main '[$time_local] $status "$request"';
|
|---|
| 14 | access_log logs/access.log main;
|
|---|
| 15 |
|
|---|
| 16 | sendfile on;
|
|---|
| 17 | #tcp_nopush on;
|
|---|
| 18 |
|
|---|
| 19 | upstream bwserver {
|
|---|
| 20 | server 127.0.0.1:2000 max_fails=50 fail_timeout=30s;
|
|---|
| 21 | keepalive 1000;
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | upstream bwstore {
|
|---|
| 25 | server 127.0.0.1:2001 max_fails=50 fail_timeout=30s;
|
|---|
| 26 | keepalive 1000;
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | server {
|
|---|
| 31 | listen 80;
|
|---|
| 32 | listen 443 ssl;
|
|---|
| 33 |
|
|---|
| 34 | server_name bitwordy.com;
|
|---|
| 35 |
|
|---|
| 36 | keepalive_disable none;
|
|---|
| 37 | keepalive_requests 1000;
|
|---|
| 38 | keepalive_timeout 45;
|
|---|
| 39 |
|
|---|
| 40 | #ssl on;
|
|---|
| 41 | ssl_certificate C:/nginx/.............;
|
|---|
| 42 | ssl_certificate_key C:/nginx/.............;
|
|---|
| 43 |
|
|---|
| 44 | ssl_protocols SSLv2 SSLv3 TLSv1;
|
|---|
| 45 | #ssl_ciphers HIGH:!aNULL:!MD5:!kEDH;
|
|---|
| 46 | ssl_ciphers ALL:!aNULL:!ADH:!kEDH:!eNULL:!MEDIUM:!LOW:!EXP;
|
|---|
| 47 | ssl_prefer_server_ciphers on;
|
|---|
| 48 |
|
|---|
| 49 | ssl_session_cache builtin:1000;
|
|---|
| 50 | #ssl_session_cache shared:SSL:10m;
|
|---|
| 51 | ssl_session_timeout 10m;
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | location / {
|
|---|
| 55 | root c:/webroot;
|
|---|
| 56 | }
|
|---|
| 57 |
|
|---|
| 58 | location /bw/ {
|
|---|
| 59 | root c:/webroot;
|
|---|
| 60 | index bwserver.exe;
|
|---|
| 61 |
|
|---|
| 62 | fastcgi_pass bwserver;
|
|---|
| 63 | fastcgi_keep_conn on;
|
|---|
| 64 |
|
|---|
| 65 | fastcgi_param QUERY_STRING $query_string;
|
|---|
| 66 | fastcgi_param SCHEME $scheme;
|
|---|
| 67 | }
|
|---|
| 68 |
|
|---|
| 69 | location /bwstore/ {
|
|---|
| 70 | root c:/webroot;
|
|---|
| 71 | index bwstore.exe;
|
|---|
| 72 |
|
|---|
| 73 | fastcgi_pass bwstore;
|
|---|
| 74 | fastcgi_keep_conn on;
|
|---|
| 75 |
|
|---|
| 76 | fastcgi_param QUERY_STRING $query_string;
|
|---|
| 77 | fastcgi_param SCHEME $scheme;
|
|---|
| 78 | }
|
|---|
| 79 | }
|
|---|
| 80 | }
|
|---|