1 worker_processes 1; 2 3 events { 4 worker_connections 1024; 5 } 6 7 http { 8 include mime.types; 9 default_type application/octet-stream; 10 11 server_names_hash_bucket_size 64; 12 13 sendfile on; 14 15 keepalive_timeout 65; 16 17 #Apache start 18 server { 19 listen 80; 20 server_name 域名; 21 22 location / { 23 return 301 https://$host$request_uri; 24 } 25 } 26 server { 27 listen 443 ssl; 28 29 ssl_certificate certs/**_bundle.crt; 30 ssl_certificate_key certs/**.key; 31 server_name 域名; 32 location / { 33 proxy_pass http://127.0.0.1:8088; 34 proxy_set_header Host $http_host; 35 } 36 } 58 #Apache end 59 60 61 }