{"id":6286,"date":"2026-01-06T14:23:31","date_gmt":"2026-01-06T06:23:31","guid":{"rendered":"https:\/\/blog.coolcoding.cn\/?p=6286"},"modified":"2026-02-05T14:33:26","modified_gmt":"2026-02-05T06:33:26","slug":"nginx%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86%e9%85%8d%e7%bd%aehttps","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=6286","title":{"rendered":"nginx\u53cd\u5411\u4ee3\u7406\u914d\u7f6ehttps"},"content":{"rendered":"\n<p>\u9700\u6c42\u662f\u5c06\u5916\u7f51\u76848083\u8f6c\u53d1\u5230\u672c\u5730\u670d\u52a1\u5668\u76848084<\/p>\n\n\n\n<p>\u8bb0\u5f97\u628acrt\u548ckey\u8bc1\u4e66\u653e\u5230conf\/cert\u76ee\u5f55\u4e2d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>worker_processes  1;\nevents {\n  worker_connections  1024;\n}\nhttp {\n  include  mime.types;\n  default_type  application\/octet-stream;\n  sendfile  on;\n  keepalive_timeout  65;\n  server {\n    listen   8083 ssl;\n    server_name  clientlog.coolcoding.com;\n    ssl_certificate cert\/coolcoding.crt;\n    ssl_certificate_key cert\/coolcoding.key;\n    ssl_session_cache    shared:SSL:1m;\n    ssl_session_timeout  5m;\n    ssl_protocols TLSv1.2 TLSv1.3;\n    ssl_ciphers  ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;\n    ssl_prefer_server_ciphers  on;\n    location \/ {\n        proxy_pass http:\/\/127.0.0.1:8084;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n      }\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u5728Windows\u4e2d\u64cd\u4f5c\uff0c\u5982\u679c\u542f\u52a8\u4e86nginx\uff0c\u9700\u8981\u5728\u4efb\u52a1\u7ba1\u7406\u5668\u4e2d\uff0c\u627e\u5230nginx\u6740\u6b7b\uff0c\u518d\u91cd\u65b0\u542f\u52a8\u65b0\u7684nginx<\/p>\n\n\n\n<p>\u5426\u5219\u4f1a\u51fa\u73b0\u65b0\u542f\u52a8\u7684nginx\u80fd\u591f\u6b63\u5e38\u542f\u52a8\uff0c\u4f46\u662f\u4e0d\u751f\u6548\u7684\u6076\u5fc3bug<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5982\u679c\u662f\u5185\u90e8\u7b80\u5355\u7684http\u4ee3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        location \/ComfyUI\/ {\r\n\t\t\tproxy_pass http:\/\/127.0.0.1:8188\/;\r\n\t\t\tproxy_set_header Host $host;\r\n\t\t\tproxy_set_header X-Real-IP $remote_addr;\r\n\t\t\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n\t\t\tproxy_set_header X-Forwarded-Proto $scheme;\r\n        }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9700\u6c42\u662f\u5c06\u5916\u7f51\u76848083\u8f6c\u53d1\u5230\u672c\u5730\u670d\u52a1\u5668\u76848084 \u8bb0\u5f97\u628acrt\u548ckey\u8bc1\u4e66\u653e\u5230conf\/cert\u76ee\u5f55\u4e2d \u5728Wi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/6286"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6286"}],"version-history":[{"count":3,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/6286\/revisions"}],"predecessor-version":[{"id":6319,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/6286\/revisions\/6319"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}