| 1 |
|
|---|
| 2 | #user nobody;
|
|---|
| 3 | worker_processes 1;
|
|---|
| 4 |
|
|---|
| 5 | error_log logs/error.log debug;
|
|---|
| 6 |
|
|---|
| 7 | master_process off;
|
|---|
| 8 | daemon off;
|
|---|
| 9 |
|
|---|
| 10 | events {
|
|---|
| 11 | worker_connections 1024;
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | http {
|
|---|
| 15 | include mime.types;
|
|---|
| 16 | default_type application/octet-stream;
|
|---|
| 17 |
|
|---|
| 18 | log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|---|
| 19 | '$status $body_bytes_sent "$http_referer" '
|
|---|
| 20 | '"$http_user_agent" "$http_x_forwarded_for" "$ssl_protocol" "$ssl_client_s_dn"';
|
|---|
| 21 |
|
|---|
| 22 | access_log logs/access.log main;
|
|---|
| 23 |
|
|---|
| 24 | sendfile on;
|
|---|
| 25 | keepalive_timeout 0;
|
|---|
| 26 |
|
|---|
| 27 | server {
|
|---|
| 28 | listen 4433;
|
|---|
| 29 | server_name localhost;
|
|---|
| 30 | ssl on;
|
|---|
| 31 | ssl_certificate cert.pem;
|
|---|
| 32 | ssl_certificate_key key.pem;
|
|---|
| 33 |
|
|---|
| 34 | ssl_ticket_timeout 20s;
|
|---|
| 35 | ssl_session_cache shared:SSL:10m;
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 | ssl_client_certificate cert.pem;
|
|---|
| 39 | ssl_verify_client optional;
|
|---|
| 40 |
|
|---|
| 41 | location / {
|
|---|
| 42 | root html;
|
|---|
| 43 | index index.html index.htm;
|
|---|
| 44 | }
|
|---|
| 45 |
|
|---|
| 46 | error_page 500 502 503 504 /50x.html;
|
|---|
| 47 | location = /50x.html {
|
|---|
| 48 | root html;
|
|---|
| 49 | }
|
|---|
| 50 |
|
|---|
| 51 | }
|
|---|
| 52 |
|
|---|
| 53 | }
|
|---|