{"id":116752,"date":"2026-10-22T02:17:53","date_gmt":"2026-10-21T18:17:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/116752.html"},"modified":"2026-10-22T02:17:53","modified_gmt":"2026-10-21T18:17:53","slug":"server-18-%ef%bc%8cnginx-%e5%8f%8c%e6%9c%8d%e5%8a%a1%e5%99%a8-http%e8%bd%achttps-%e4%bb%a3%e7%90%86%e5%ae%9e%e6%88%98%ef%bc%88-http-%e5%9c%b0%e5%9d%80%e6%8d%a2-https-%e5%9f%9f%e5%90%8d-%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/116752.html","title":{"rendered":"Server 18 \uff0cNginx \u53cc\u670d\u52a1\u5668 HTTP\u8f6cHTTPS \u4ee3\u7406\u5b9e\u6218\uff08 HTTP \u5730\u5740\u6362 HTTPS \u57df\u540d \uff09"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<h3>\u524d\u8a00<\/h3>\n<p>\u672c\u6587\u8bb0\u5f55\u4e00\u4e2a\u5df2\u7ecf\u843d\u5730\u7684\u771f\u5b9e\u90e8\u7f72&#xff1a;Vue3 \u524d\u7aef\u7cfb\u7edf\u539f\u672c\u901a\u8fc7 http:\/\/119.45.157.27\/IPESAgent\/ \u5bf9\u5916\u8bbf\u95ee&#xff0c;\u9700\u6c42\u65b9\u8ba4\u4e3a HTTP \u4e0d\u5b89\u5168&#xff0c;\u5e0c\u671b\u7edf\u4e00\u6539\u6210 https:\/\/www.jintanfuture.com\/IPESAgent\/\u3002\u9879\u76ee\u4e0d\u80fd\u8fc1\u79fb\u5230\u5b98\u7f51\u670d\u52a1\u5668&#xff0c;\u57df\u540d\u548c\u8bc1\u4e66\u53c8\u7531\u9700\u6c42\u65b9\u7ba1\u7406&#xff0c;\u4e8e\u662f\u6700\u7ec8\u91c7\u7528\u4e86\u4e24\u53f0\u670d\u52a1\u5668\u3001\u4e24\u5c42 Nginx\u3001\u4e00\u4e2a HTTPS \u5165\u53e3\u7684\u65b9\u6848\u3002<\/p>\n<p>\u8fd9\u4e0d\u662f\u628a URL \u91cc\u7684 http \u66ff\u6362\u6210 https \u90a3\u4e48\u7b80\u5355\u3002\u771f\u5b9e\u94fe\u8def\u540c\u65f6\u7275\u6d89\u8bc1\u4e66\u653e\u7f6e\u4f4d\u7f6e\u3001\u4e8c\u7ea7\u8def\u5f84\u3001Vue3 \u6784\u5efa\u57fa\u7840\u8def\u5f84\u3001Nginx location \u4f18\u5148\u7ea7\u3001\u63a5\u53e3\u524d\u7f00\u3001SPA \u8def\u7531\u56de\u9000\u3001Cookie\u3001SSE\u3001iframe \u548c\u670d\u52a1\u5668\u95f4\u94fe\u8def\u5b89\u5168\u3002\u5176\u4e2d\u6700\u9690\u853d\u7684\u6545\u969c\u662f&#xff1a;\u5165\u53e3 HTML \u80fd\u6b63\u5e38\u8fd4\u56de&#xff0c;\u9875\u9762\u5374\u4e00\u76f4\u505c\u5728\u201c\u6b63\u5728\u52a0\u8f7d\u7cfb\u7edf\u8d44\u6e90&#xff0c;\u8bf7\u8010\u5fc3\u7b49\u5f85\u201d\u3002\u6700\u540e\u5b9a\u4f4d\u5230\u5b98\u7f51\u5df2\u6709\u7684 JS\/CSS \u6b63\u5219\u89c4\u5219\u622a\u83b7\u4e86\u4e1a\u52a1\u7cfb\u7edf\u9759\u6001\u8d44\u6e90\u3002<\/p>\n<p>\u8bfb\u5b8c\u672c\u6587&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u83b7\u5f97\u4e24\u7aef Nginx \u7684\u53ef\u7528\u914d\u7f6e\u6a21\u677f&#xff0c;\u4e5f\u80fd\u638c\u63e1\u4e00\u5957\u5206\u5c42\u6392\u67e5\u65b9\u6cd5\u3002\u793a\u4f8b\u91cc\u7684\u516c\u7f51 IP\u3001\u57df\u540d\u548c\u8def\u5f84\u6765\u81ea\u672c\u6b21\u9879\u76ee&#xff1b;\u76ee\u5f55\u3001\u7aef\u53e3\u4e0e\u8bc1\u4e66\u8def\u5f84\u9700\u8981\u6309\u81ea\u5df1\u7684\u670d\u52a1\u5668\u66ff\u6362\u3002<\/p>\n<p>\u5173\u952e\u8bcd&#xff1a; Vue3\u3001HTTPS\u3001Nginx\u3001\u53cd\u5411\u4ee3\u7406\u3001SSL \u8bc1\u4e66\u3001\u4e8c\u7ea7\u76ee\u5f55\u3001\u53cc\u670d\u52a1\u5668\u3001SPA\u3001iframe\u3001Mixed Content<\/p>\n<p>\u539f\u7cfb\u7edf\u5730\u5740\u4e3a&#xff1a;<\/p>\n<p>http:\/\/119.45.157.27\/IPESAgent\/login?redirect&#061;\/home<\/p>\n<p>\u6700\u7ec8\u5e0c\u671b\u7528\u6237\u8bbf\u95ee&#xff1a;<\/p>\n<p>https:\/\/www.jintanfuture.com\/IPESAgent\/<\/p>\n<p>\u4e24\u4e2a\u5730\u5740\u80cc\u540e\u4e0d\u662f\u540c\u4e00\u53f0\u670d\u52a1\u5668&#xff1a;<\/p>\n<ul>\n<li>119.45.157.27&#xff1a;\u6211\u4eec\u7684\u963f\u91cc\u4e91\u670d\u52a1\u5668&#xff0c;\u8d1f\u8d23\u8fd0\u884c IPESAgent \u524d\u7aef\u53ca\u5bf9\u5e94\u63a5\u53e3\u4ee3\u7406&#xff1b;<\/li>\n<li>www.jintanfuture.com&#xff1a;\u9700\u6c42\u65b9\u5b98\u7f51\u670d\u52a1\u5668&#xff0c;\u5df2\u7ecf\u62e5\u6709\u57df\u540d\u548c HTTPS \u8bc1\u4e66&#xff1b;<\/li>\n<li>\u9700\u6c42\u65b9\u670d\u52a1\u5668\u4e0d\u4fdd\u5b58 IPESAgent \u7684\u524d\u7aef\u6587\u4ef6&#xff0c;\u800c\u662f\u901a\u8fc7 Nginx \u6309\u8def\u5f84\u628a\u8bf7\u6c42\u8f6c\u53d1\u7ed9\u963f\u91cc\u4e91\u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<p>\u6700\u7ec8\u94fe\u8def\u5982\u4e0b&#xff1a;<\/p>\n<p>\u6d4f\u89c8\u5668<br \/>\n  \u2502<br \/>\n  \u2502 HTTPS&#xff1a;\u7528\u6237\u53ea\u770b\u5230 www.jintanfuture.com<br \/>\n  \u25bc<br \/>\n\u9700\u6c42\u65b9\u5b98\u7f51 Nginx&#xff08;443&#xff0c;\u5b89\u88c5\u57df\u540d\u8bc1\u4e66&#xff0c;TLS \u7ec8\u6b62&#xff09;<br \/>\n  \u2502<br \/>\n  \u2502 HTTP \u6216 HTTPS&#xff1a;\u670d\u52a1\u5668\u5230\u670d\u52a1\u5668\u7684\u53cd\u5411\u4ee3\u7406<br \/>\n  \u25bc<br \/>\n\u963f\u91cc\u4e91 Nginx&#xff08;119.45.157.27&#xff09;<br \/>\n  \u251c\u2500\u2500 \/IPESAgent\/      \u2192 Vue3 \u9759\u6001\u8d44\u6e90<br \/>\n  \u2514\u2500\u2500 \/IPESAgent-api\/  \u2192 \u540e\u7aef\u670d\u52a1<\/p>\n<p>\u672c\u6b21\u95ee\u9898\u6700\u7ec8\u89e3\u51b3\u540e&#xff0c;\u4ee5\u4e0b\u5730\u5740\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee&#xff1a;<\/p>\n<p>https:\/\/www.jintanfuture.com\/IPESAgent\/<\/p>\n<p>\u8fd9\u5957\u65b9\u6848\u7684\u5173\u952e\u4e0d\u662f\u7b80\u5355\u5730\u201c\u628a http \u6539\u6210 https\u201d&#xff0c;\u800c\u662f\u540c\u65f6\u5904\u7406\u597d\u4ee5\u4e0b\u516d\u4ef6\u4e8b&#xff1a;<\/p>\n<li>HTTPS \u8bc1\u4e66\u7531\u54ea\u4e00\u5c42\u670d\u52a1\u5668\u6301\u6709&#xff1b;<\/li>\n<li>\/IPESAgent\/ \u4e8c\u7ea7\u8def\u5f84\u5982\u4f55\u8f6c\u53d1\u5e76\u4fdd\u6301\u4e0d\u4e22\u5931&#xff1b;<\/li>\n<li>Vue3 \u6784\u5efa\u57fa\u7840\u8def\u5f84\u662f\u5426\u4e0e\u90e8\u7f72\u8def\u5f84\u4e00\u81f4&#xff1b;<\/li>\n<li>JS\u3001CSS \u7b49\u9759\u6001\u8d44\u6e90\u662f\u5426\u88ab\u5176\u4ed6 Nginx \u6b63\u5219\u89c4\u5219\u622a\u83b7&#xff1b;<\/li>\n<li>\/IPESAgent-api\/ \u662f\u5426\u4ecd\u7136\u901a\u8fc7\u540c\u6e90 HTTPS \u5730\u5740\u8bbf\u95ee&#xff1b;<\/li>\n<li>SPA \u8def\u7531\u3001\u91cd\u5b9a\u5411\u3001Cookie\u3001SSE\/WebSocket \u548c iframe \u662f\u5426\u517c\u5bb9\u3002<\/li>\n<p>\u6d4f\u89c8\u5668\u53ea\u548c\u9700\u6c42\u65b9\u5b98\u7f51\u5efa\u7acb HTTPS \u8fde\u63a5&#xff1b;\u9700\u6c42\u65b9 Nginx \u518d\u628a \/IPESAgent\/ \u4e0e \/IPESAgent-api\/ \u8f6c\u53d1\u7ed9\u963f\u91cc\u4e91\u6e90\u7ad9\u3002 \u8fd9\u662f\u5168\u6587\u6700\u91cd\u8981\u7684\u8fb9\u754c\u3002\u5982\u56fe1\u6240\u793a&#xff0c;\u5bf9\u5916\u57df\u540d\u3001TLS \u7ec8\u6b62\u70b9\u548c\u771f\u5b9e\u4e1a\u52a1\u6e90\u7ad9\u5c5e\u4e8e\u4e09\u5c42\u4e0d\u540c\u6982\u5ff5&#xff0c;\u4e0d\u8981\u628a\u5b83\u4eec\u6df7\u6210\u201c\u7ed9\u524d\u7aef\u52a0\u4e00\u4e2a\u8bc1\u4e66\u201d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181734-6ad901bea2bff.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p> \u56fe1 \u53cc\u670d\u52a1\u5668 Nginx \u53cd\u5411\u4ee3\u7406\u4e0e HTTPS \u57df\u540d\u63a5\u5165<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u9879\u76ee\u80cc\u666f\u4e0e\u4e4b\u524d\u7bc7\u8854\u63a5<\/h3>\n<h4>1.1 \u4e4b\u524d\u7bc7\u91c7\u7528 IIS \u4e0e Nginx \u53cc\u5c42\u67b6\u6784<\/h4>\n<p>\u4e4b\u524d\u7bc7\u300aServer 16&#xff0c;Windows Server \u73af\u5883\u4e0b Vue3 \u9879\u76ee\u90e8\u7f72\u5b9e\u6218&#xff1a;IIS &#043; Nginx \u914d\u7f6e IPAgent \u4e8c\u7ea7\u76ee\u5f55\u5b8c\u6574\u6559\u7a0b\u300b\u8ba8\u8bba\u7684\u662f\u672c\u5730\u56fe\u4e66\u9986\u670d\u52a1\u5668\u4e0a\u7684\u90e8\u7f72\u65b9\u5f0f&#xff1a;<\/p>\n<p>\u6d4f\u89c8\u5668 HTTPS<br \/>\n  \u2192 IIS&#xff08;\u76d1\u542c 443\u3001\u5b89\u88c5\u8bc1\u4e66\u3001\u5b8c\u6210 TLS \u89e3\u5bc6&#xff09;<br \/>\n  \u2192 \u672c\u673a Nginx&#xff08;\u63a5\u6536 IIS \u8f6c\u53d1\u8fc7\u6765\u7684 HTTP&#xff09;<br \/>\n  \u2192 \/IPAgent\/\u3001\/IPWeave\/ \u7b49\u4e0d\u540c\u7cfb\u7edf<\/p>\n<h4>1.2 \u672c\u6587\u6539\u4e3a\u4e24\u53f0\u670d\u52a1\u5668\u534f\u540c<\/h4>\n<p>\u672c\u6587\u573a\u666f\u4e0e\u4e4b\u524d\u7bc7\u6709\u4e24\u4e2a\u660e\u663e\u5dee\u5f02&#xff1a;<\/p>\n<li>\u4e4b\u524d\u662f\u540c\u4e00\u53f0 Windows Server \u4e0a\u7684 IIS &#043; Nginx \u53cc\u5c42\u67b6\u6784&#xff1b;<\/li>\n<li>\u672c\u6587\u662f\u4e24\u53f0 Linux\/\u4e91\u670d\u52a1\u5668\u4e4b\u95f4\u7684 Nginx \u53cd\u5411\u4ee3\u7406&#xff0c;\u5b98\u7f51\u4e0e\u4e1a\u52a1\u7cfb\u7edf\u5206\u522b\u90e8\u7f72\u3002<\/li>\n<p>\u867d\u7136\u90e8\u7f72\u73af\u5883\u4e0d\u540c&#xff0c;\u4f46\u6838\u5fc3\u601d\u60f3\u4e00\u81f4&#xff1a;**HTTPS \u8bc1\u4e66\u914d\u7f6e\u5728\u771f\u6b63\u63a5\u6536\u6d4f\u89c8\u5668 TLS \u8fde\u63a5\u7684\u6700\u5916\u5c42\u5165\u53e3&#xff0c;\u540e\u7eed\u518d\u7531\u4ee3\u7406\u670d\u52a1\u5668\u6309\u7167\u8def\u5f84\u5206\u53d1\u8bf7\u6c42\u3002**\u4e4b\u524d\u7bc7\u89e3\u51b3\u7684\u662f\u201c\u540c\u4e00\u53f0 Windows Server \u5982\u4f55\u8ba9 IIS \u4e0e Nginx \u5206\u5de5\u201d&#xff0c;\u672c\u6587\u89e3\u51b3\u7684\u662f\u201c\u5b98\u7f51\u670d\u52a1\u5668\u5982\u4f55\u4ee3\u7406\u53e6\u4e00\u53f0\u963f\u91cc\u4e91\u670d\u52a1\u5668\u4e0a\u7684 Vue3 \u7cfb\u7edf\u201d\u3002\u4e24\u7bc7\u6587\u7ae0\u653e\u5728\u4e00\u8d77\u770b&#xff0c;\u80fd\u628a TLS \u7ec8\u6b62\u3001\u8def\u5f84\u5206\u53d1\u548c\u6e90\u7ad9\u90e8\u7f72\u4e09\u4ef6\u4e8b\u62c6\u5f00\u7406\u89e3\u3002<\/p>\n<h4>1.3 \u672c\u6b21\u6539\u9020\u7684\u9a8c\u6536\u53e3\u5f84<\/h4>\n<p>\u4ec5\u4ec5\u80fd\u6253\u5f00\u767b\u5f55\u9875\u4e0d\u7b97\u5b8c\u6210\u3002\u8fd9\u4e2a\u9879\u76ee\u7684\u9a8c\u6536\u53e3\u5f84\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>https:\/\/www.jintanfuture.com\/IPESAgent\/ \u80fd\u76f4\u63a5\u6253\u5f00\u5e76\u5237\u65b0\u4efb\u610f\u524d\u7aef\u8def\u7531&#xff1b;<\/li>\n<li>\u767b\u5f55\u3001\u9000\u51fa\u3001\u91cd\u65b0\u767b\u5f55\u548c\u8d85\u65f6\u8df3\u8f6c\u90fd\u4e0d\u80fd\u79bb\u5f00 www.jintanfuture.com&#xff1b;<\/li>\n<li>JS\u3001CSS\u3001\u5b57\u4f53\u3001\u56fe\u7247\u548c\u63a5\u53e3\u8bf7\u6c42\u5168\u90e8\u901a\u8fc7 HTTPS \u53d1\u8d77&#xff1b;<\/li>\n<li>\/IPESAgent-api\/\u3001\u4e0a\u4f20\u4e0b\u8f7d\u3001SSE \u6216 WebSocket \u80fd\u6309\u4e1a\u52a1\u9700\u8981\u5de5\u4f5c&#xff1b;<\/li>\n<li>&lt;iframe src&#061;&#034;\/IPESAgent\/&#034;&gt;&lt;\/iframe&gt; \u5728\u9700\u6c42\u65b9\u5b98\u7f51\u5185\u53ef\u4ee5\u6b63\u5e38\u52a0\u8f7d&#xff1b;<\/li>\n<li>http:\/\/119.45.157.27\/IPESAgent\/ \u662f\u5426\u7ee7\u7eed\u4fdd\u7559&#xff0c;\u7531\u6e90\u7ad9\u5b89\u5168\u7b56\u7565\u51b3\u5b9a&#xff0c;\u4f46\u5b83\u4e0d\u518d\u662f\u5bf9\u7528\u6237\u516c\u5e03\u7684\u5165\u53e3\u3002<\/li>\n<\/ul>\n<p>\u201c\u9996\u9875\u51fa\u73b0\u4e86\u201d\u53ea\u80fd\u8bc1\u660e index.html \u5230\u8fbe\u6d4f\u89c8\u5668&#xff0c;\u4e0d\u80fd\u8bc1\u660e Vue \u5e94\u7528\u3001\u63a5\u53e3\u548c\u767b\u5f55\u6001\u5df2\u7ecf\u6b63\u5e38\u3002 \u540e\u6587\u7684 Loading \u6545\u969c\u6b63\u662f\u8fd9\u4e2a\u5dee\u5f02\u9020\u6210\u7684\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001HTTP\u3001HTTPS\u3001\u57df\u540d\u4e0e\u8bc1\u4e66<\/h3>\n<h4>2.1 HTTP \u7684\u7279\u70b9<\/h4>\n<p>HTTP \u662f\u6d4f\u89c8\u5668\u4e0e\u670d\u52a1\u5668\u4ea4\u6362\u8bf7\u6c42\u548c\u54cd\u5e94\u7684\u5e94\u7528\u5c42\u534f\u8bae\u3002\u4f20\u7edf HTTP \u901a\u5e38\u4f7f\u7528 80 \u7aef\u53e3&#xff0c;\u4f20\u8f93\u5185\u5bb9\u672c\u8eab\u4e0d\u7ecf\u8fc7 TLS \u52a0\u5bc6\u3002<\/p>\n<p>\u5982\u679c\u767b\u5f55\u540d\u3001Token\u3001Cookie \u6216\u4e1a\u52a1\u6570\u636e\u901a\u8fc7\u666e\u901a HTTP \u5728\u4e0d\u53ef\u4fe1\u7f51\u7edc\u4e0a\u4f20\u8f93&#xff0c;\u4e2d\u95f4\u8282\u70b9\u5b58\u5728\u7a83\u542c\u6216\u7be1\u6539\u6570\u636e\u7684\u53ef\u80fd\u3002\u56e0\u6b64&#xff0c;\u9700\u6c42\u65b9\u63d0\u51fa\u201cHTTP \u4e0d\u5b89\u5168\u201d\u662f\u5408\u7406\u7684\u3002<\/p>\n<h4>2.2 HTTPS \u4e0d\u662f\u53e6\u4e00\u5957\u4e1a\u52a1\u534f\u8bae<\/h4>\n<p>\u5982\u56fe2\u6240\u793a&#xff0c;HTTPS \u6ca1\u6709\u6539\u53d8\u4e0a\u5c42\u4e1a\u52a1\u8bf7\u6c42\u7684\u8bed\u4e49&#xff0c;\u800c\u662f\u5728 HTTP \u4e0e\u4f20\u8f93\u5c42\u4e4b\u95f4\u589e\u52a0 TLS \u4fdd\u62a4\u3002\u6d4f\u89c8\u5668\u5730\u5740\u680f\u91cc\u7684\u9501\u6807\u8bc6\u53ea\u80fd\u8bf4\u660e\u5f53\u524d\u8fde\u63a5\u901a\u8fc7\u4e86\u8bc1\u4e66\u4e0e\u52a0\u5bc6\u6821\u9a8c&#xff0c;\u4e0d\u80fd\u66ff\u4ee3\u5e94\u7528\u81ea\u8eab\u7684\u8eab\u4efd\u8ba4\u8bc1\u548c\u6743\u9650\u63a7\u5236\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181739-6ad901c3af5ab.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p> \u56fe2 HTTP \u660e\u6587\u4f20\u8f93\u4e0e HTTPS TLS \u52a0\u5bc6\u5bf9\u6bd4<\/p>\n<p>HTTPS \u53ef\u4ee5\u7406\u89e3\u4e3a&#xff1a;<\/p>\n<p>HTTPS &#061; HTTP &#043; TLS<\/p>\n<p>\u4e1a\u52a1\u5c42\u4ecd\u7136\u662f HTTP&#xff0c;\u53ea\u662f\u5728 HTTP \u62a5\u6587\u8fdb\u5165\u7f51\u7edc\u4e4b\u524d&#xff0c;\u5148\u901a\u8fc7 TLS \u5efa\u7acb\u5b89\u5168\u901a\u9053\u3002TLS \u4e3b\u8981\u89e3\u51b3\u4e09\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<table>\n<tr>\u80fd\u529b\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>\u52a0\u5bc6\u6027<\/td>\n<td>\u9632\u6b62\u4f20\u8f93\u5185\u5bb9\u88ab\u76f4\u63a5\u7a83\u542c<\/td>\n<\/tr>\n<tr>\n<td>\u5b8c\u6574\u6027<\/td>\n<td>\u9632\u6b62\u62a5\u6587\u5728\u4f20\u8f93\u9014\u4e2d\u88ab\u9759\u9ed8\u7be1\u6539<\/td>\n<\/tr>\n<tr>\n<td>\u8eab\u4efd\u8ba4\u8bc1<\/td>\n<td>\u901a\u8fc7\u8bc1\u4e66\u786e\u8ba4\u5f53\u524d\u8fde\u63a5\u7684\u670d\u52a1\u5668\u8eab\u4efd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee https:\/\/www.jintanfuture.com \u65f6&#xff0c;\u4f1a\u5148\u6821\u9a8c\u670d\u52a1\u5668\u8bc1\u4e66&#xff0c;\u518d\u534f\u5546 TLS \u7248\u672c\u3001\u52a0\u5bc6\u5957\u4ef6\u548c\u4f1a\u8bdd\u5bc6\u94a5&#xff0c;\u4e4b\u540e\u624d\u53d1\u9001 HTTP \u8bf7\u6c42\u3002<\/p>\n<h4>2.3 \u4e3a\u4ec0\u4e48 HTTPS \u9875\u9762\u4e0d\u80fd\u76f4\u63a5\u5d4c\u5957 HTTP \u7cfb\u7edf<\/h4>\n<p>\u5982\u679c\u5b98\u7f51\u4f7f\u7528 HTTPS&#xff0c;\u5374\u5728\u9875\u9762\u4e2d\u8fd9\u6837\u5d4c\u5165&#xff1a;<\/p>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>iframe<\/span> <span class=\"token attr-name\">src<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>http:\/\/119.45.157.27\/IPESAgent\/<span class=\"token punctuation\">&#034;<\/span><\/span><span class=\"token punctuation\">&gt;<\/span><\/span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>iframe<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>\u90a3\u4e48 HTTPS \u9875\u9762\u6b63\u5728\u52a0\u8f7d\u4e00\u4e2a HTTP iframe&#xff0c;\u8fd9\u5c5e\u4e8e Mixed Content&#xff08;\u6df7\u5408\u5185\u5bb9&#xff09;\u3002\u73b0\u4ee3\u6d4f\u89c8\u5668\u901a\u5e38\u4f1a\u963b\u6b62\u8fd9\u7c7b\u4e0d\u5b89\u5168\u7684\u6d3b\u52a8\u5185\u5bb9\u3002\u5373\u4f7f\u67d0\u4e2a\u6d4f\u89c8\u5668\u6682\u65f6\u5141\u8bb8&#xff0c;\u767b\u5f55\u3001Cookie\u3001\u8df3\u8f6c\u548c\u63a5\u53e3\u8bf7\u6c42\u4e5f\u53ef\u80fd\u51fa\u73b0\u5f02\u5e38\u3002<\/p>\n<p>\u56e0\u6b64\u4e0d\u80fd\u4ec5\u4ec5\u628a HTTP \u5730\u5740\u653e\u8fdb iframe&#xff0c;\u800c\u5e94\u8ba9\u6d4f\u89c8\u5668\u59cb\u7ec8\u8bbf\u95ee\u540c\u6e90 HTTPS \u5730\u5740&#xff1a;<\/p>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>iframe<\/span> <span class=\"token attr-name\">src<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>\/IPESAgent\/<span class=\"token punctuation\">&#034;<\/span><\/span><span class=\"token punctuation\">&gt;<\/span><\/span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>iframe<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>\u6d4f\u89c8\u5668\u6700\u7ec8\u8bf7\u6c42\u7684\u662f&#xff1a;<\/p>\n<p>https:\/\/www.jintanfuture.com\/IPESAgent\/<\/p>\n<p>\u81f3\u4e8e Nginx \u5728\u670d\u52a1\u5668\u5185\u90e8\u5982\u4f55\u628a\u8bf7\u6c42\u8f6c\u5230 119.45.157.27&#xff0c;\u6d4f\u89c8\u5668\u5e76\u4e0d\u77e5\u9053&#xff0c;\u4e5f\u4e0d\u9700\u8981\u77e5\u9053\u3002<\/p>\n<hr \/>\n<h4>2.4 IP \u5730\u5740\u80fd\u4e0d\u80fd\u76f4\u63a5\u6539\u6210 HTTPS<\/h4>\n<p>\u5de5\u7a0b\u4e0a\u6700\u5e38\u89c1\u3001\u6700\u7a33\u59a5\u7684\u505a\u6cd5\u662f\u51c6\u5907\u4e00\u4e2a\u53ef\u63a7\u5236\u7684\u57df\u540d&#xff1a;<\/p>\n<p>\u4f20\u7edf\u9879\u76ee\u4e2d\u6700\u7a33\u59a5\u7684\u505a\u6cd5\u662f&#xff1a;<\/p>\n<li>\u51c6\u5907\u4e00\u4e2a\u81ea\u5df1\u53ef\u63a7\u5236\u7684\u57df\u540d&#xff1b;<\/li>\n<li>\u5c06\u57df\u540d\u901a\u8fc7 DNS \u7684 A \u8bb0\u5f55\u89e3\u6790\u5230\u670d\u52a1\u5668\u516c\u7f51 IP&#xff1b;<\/li>\n<li>\u4e3a\u8be5\u57df\u540d\u7533\u8bf7 TLS \u8bc1\u4e66&#xff1b;<\/li>\n<li>\u5728 Nginx\u3001IIS\u3001\u8d1f\u8f7d\u5747\u8861\u6216 CDN \u4e0a\u914d\u7f6e\u8bc1\u4e66&#xff1b;<\/li>\n<li>\u5c06 80 \u7aef\u53e3\u8bf7\u6c42\u91cd\u5b9a\u5411\u5230 443\u3002<\/li>\n<p>\u8bc1\u4e66\u6821\u9a8c\u7684\u662f\u5ba2\u6237\u7aef\u6b63\u5728\u8bbf\u95ee\u7684\u4e3b\u673a\u8eab\u4efd\u3002\u8bc1\u4e66\u4fdd\u62a4\u7684\u662f\u57df\u540d\u6216 IP&#xff0c;\u800c\u4e0d\u662f\u670d\u52a1\u5668\u4e0a\u7684 \/IPESAgent\/ \u8def\u5f84\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u4e00\u5f20\u6709\u6548\u7684 www.jintanfuture.com \u8bc1\u4e66\u53ef\u4ee5\u540c\u65f6\u8986\u76d6&#xff1a;<\/p>\n<p>https:\/\/www.jintanfuture.com\/<br \/>\nhttps:\/\/www.jintanfuture.com\/IPESAgent\/<br \/>\nhttps:\/\/www.jintanfuture.com\/another-system\/<\/p>\n<p>\u4e0d\u9700\u8981\u4e3a\u6bcf\u4e2a\u4e8c\u7ea7\u8def\u5f84\u5206\u522b\u7533\u8bf7\u8bc1\u4e66\u3002<\/p>\n<h4>2.5 IP \u8bc1\u4e66\u4e0d\u662f\u7edd\u5bf9\u4e0d\u53ef\u80fd<\/h4>\n<p>\u8fc7\u53bb&#xff0c;\u5927\u591a\u6570\u514d\u8d39\u8bc1\u4e66\u670d\u52a1\u53ea\u7ed9\u57df\u540d\u7b7e\u53d1\u8bc1\u4e66&#xff0c;\u6240\u4ee5\u5de5\u7a0b\u5b9e\u8df5\u4e2d\u7ecf\u5e38\u7b80\u5316\u4e3a\u201c\u5fc5\u987b\u6709\u57df\u540d&#xff0c;IP \u4e0d\u80fd\u7533\u8bf7\u8bc1\u4e66\u201d\u3002<\/p>\n<p>\u622a\u81f3 2026 \u5e74&#xff0c;Let\u2019s Encrypt \u5df2\u7ecf\u5411\u516c\u4f17\u63d0\u4f9b IP \u5730\u5740\u8bc1\u4e66&#xff0c;\u4f46\u5176\u8bc1\u4e66\u5468\u671f\u8f83\u77ed&#xff0c;\u5bf9\u81ea\u52a8\u7b7e\u53d1\u3001\u81ea\u52a8\u7eed\u671f\u548c\u5ba2\u6237\u7aef\u5de5\u5177\u7248\u672c\u63d0\u51fa\u4e86\u66f4\u9ad8\u8981\u6c42\u3002\u4e00\u4e9b\u5546\u4e1a CA \u4e5f\u53ef\u80fd\u63d0\u4f9b IP \u8bc1\u4e66\u670d\u52a1\u3002<\/p>\n<p>\u56e0\u6b64\u66f4\u51c6\u786e\u7684\u8868\u8ff0\u662f&#xff1a;<\/p>\n<p>\u516c\u7f51 IP \u5e76\u975e\u6280\u672f\u4e0a\u7edd\u5bf9\u4e0d\u80fd\u7533\u8bf7\u8bc1\u4e66&#xff0c;\u4f46\u57df\u540d\u8bc1\u4e66\u5728\u517c\u5bb9\u6027\u3001\u7eed\u671f\u3001\u8fc1\u79fb\u3001\u8fd0\u7ef4\u3001\u54c1\u724c\u8bc6\u522b\u548c HSTS \u7b49\u65b9\u9762\u4ecd\u7136\u66f4\u9002\u5408\u5e38\u89c4\u751f\u4ea7\u7cfb\u7edf\u3002<\/p>\n<p>\u5bf9\u4e8e\u672c\u6587\u9879\u76ee&#xff0c;\u9700\u6c42\u65b9\u5df2\u6709 www.jintanfuture.com \u548c\u6709\u6548\u8bc1\u4e66&#xff0c;\u76f4\u63a5\u590d\u7528\u5b98\u7f51 HTTPS \u5165\u53e3\u663e\u7136\u6bd4\u5355\u72ec\u4e3a 119.45.157.27 \u7533\u8bf7\u77ed\u5468\u671f IP \u8bc1\u4e66\u66f4\u5408\u7406\u3002<\/p>\n<h4>2.6 \u57df\u540d\u89e3\u6790\u662f\u5426\u5fc5\u987b\u6307\u5411\u963f\u91cc\u4e91\u670d\u52a1\u5668<\/h4>\n<p>\u4e0d\u4e00\u5b9a\u3002<\/p>\n<p>\u5982\u679c\u91c7\u7528\u201c\u5355\u670d\u52a1\u5668\u90e8\u7f72\u201d&#xff0c;\u57df\u540d\u5e94\u89e3\u6790\u5230\u8fd0\u884c IPESAgent \u7684\u670d\u52a1\u5668\u3002<\/p>\n<p>\u5982\u679c\u91c7\u7528\u672c\u6587\u7684\u201c\u53cc\u670d\u52a1\u5668\u53cd\u5411\u4ee3\u7406\u201d&#xff0c;www.jintanfuture.com \u5e94\u7ee7\u7eed\u89e3\u6790\u5230\u9700\u6c42\u65b9\u5b98\u7f51\u670d\u52a1\u5668\u3002\u9700\u6c42\u65b9 Nginx \u6536\u5230 \/IPESAgent\/ \u540e&#xff0c;\u518d\u5728\u670d\u52a1\u7aef\u8f6c\u53d1\u5230 119.45.157.27\u3002\u57df\u540d\u4e0d\u9700\u8981\u76f4\u63a5\u89e3\u6790\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u4e8c\u7ea7\u8def\u5f84\u4e0e\u90e8\u7f72\u67b6\u6784<\/h3>\n<h4>3.1 \/IPESAgent\/ \u4e0d\u662f\u4e8c\u7ea7\u57df\u540d<\/h4>\n<p>\u4ee5\u4e0b\u4e24\u4e2a\u6982\u5ff5\u5bb9\u6613\u6df7\u6dc6&#xff1a;<\/p>\n<p>ipesagent.jintanfuture.com       # \u5b50\u57df\u540d\u6216\u4e8c\u7ea7\u57df\u540d<br \/>\nwww.jintanfuture.com\/IPESAgent\/ # \u540c\u4e00\u57df\u540d\u4e0b\u7684\u4e8c\u7ea7\u8def\u5f84<\/p>\n<p>\u672c\u6587\u4f7f\u7528\u7684\u662f\u7b2c\u4e8c\u79cd\u65b9\u6848&#xff0c;\u5373\u4e8c\u7ea7\u8def\u5f84\u90e8\u7f72\u3002\u5176\u4f18\u70b9\u662f&#xff1a;<\/p>\n<ul>\n<li>\u53ef\u4ee5\u590d\u7528\u5b98\u7f51\u57df\u540d\u548c\u8bc1\u4e66&#xff1b;<\/li>\n<li>iframe \u4f7f\u7528\u76f8\u5bf9\u5730\u5740\u540e\u53ef\u4fdd\u6301\u540c\u6e90&#xff1b;<\/li>\n<li>\u6d4f\u89c8\u5668\u4e0d\u9700\u8981\u8de8\u57df\u8bbf\u95ee\u963f\u91cc\u4e91 IP&#xff1b;<\/li>\n<li>\u5b98\u7f51\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a Nginx server \u5757\u7ba1\u7406\u591a\u4e2a\u4e1a\u52a1\u7cfb\u7edf\u3002<\/li>\n<\/ul>\n<p>\u5b83\u5bf9\u524d\u7aef\u6784\u5efa\u8def\u5f84\u548c Nginx URI \u8f6c\u53d1\u8981\u6c42\u4e5f\u66f4\u4e25\u683c&#xff1a;Vue \u9879\u76ee\u5fc5\u987b\u77e5\u9053\u81ea\u5df1\u90e8\u7f72\u5728 \/IPESAgent\/&#xff0c;\u800c\u4e0d\u662f\u7f51\u7ad9\u6839\u8def\u5f84 \/\u3002<\/p>\n<h4>3.2 \u4e00\u53f0\u670d\u52a1\u5668\u65f6<\/h4>\n<p>\u5982\u679c\u5b98\u7f51\u548c\u65b0\u7cfb\u7edf\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u7531\u4e00\u4e2a Nginx \u5b8c\u6210&#xff1a;<\/p>\n<p>www.jintanfuture.com\/              \u2192 \u5b98\u7f51\u76ee\u5f55<br \/>\nwww.jintanfuture.com\/IPESAgent\/    \u2192 IPESAgent dist \u76ee\u5f55<br \/>\nwww.jintanfuture.com\/IPESAgent-api\/ \u2192 \u672c\u673a\u540e\u7aef\u7aef\u53e3<\/p>\n<p>\u8bc1\u4e66\u53ea\u914d\u7f6e\u4e00\u6b21&#xff0c;Nginx \u901a\u8fc7\u4e0d\u540c location \u533a\u5206\u7cfb\u7edf\u3002<\/p>\n<h4>3.3 \u4e24\u53f0\u670d\u52a1\u5668\u65f6<\/h4>\n<p>\u5982\u56fe3\u6240\u793a&#xff0c;\u5355\u670d\u52a1\u5668\u65b9\u6848\u7531\u540c\u4e00\u4e2a Nginx \u8bfb\u53d6\u5b98\u7f51\u6587\u4ef6\u4e0e IPESAgent \u6587\u4ef6&#xff1b;\u53cc\u670d\u52a1\u5668\u65b9\u6848\u5219\u7531\u5b98\u7f51 Nginx \u5145\u5f53\u7edf\u4e00\u5165\u53e3&#xff0c;\u4e1a\u52a1\u6587\u4ef6\u4ecd\u7559\u5728\u963f\u91cc\u4e91\u3002\u4e24\u8005\u5bf9\u6d4f\u89c8\u5668\u66b4\u9732\u7684 URL \u53ef\u4ee5\u5b8c\u5168\u76f8\u540c&#xff0c;\u5dee\u522b\u53ea\u5b58\u5728\u4e8e\u670d\u52a1\u5668\u5185\u90e8\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181741-6ad901c544b68.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p> \u56fe3 \u5355\u670d\u52a1\u5668\u90e8\u7f72\u4e0e\u53cc\u670d\u52a1\u5668\u53cd\u5411\u4ee3\u7406\u5bf9\u6bd4<\/p>\n<p>\u672c\u6587\u5c31\u662f\u4e24\u53f0\u670d\u52a1\u5668&#xff1a;<\/p>\n<table>\n<tr>\u670d\u52a1\u5668\u804c\u8d23\u5bf9\u5916\u5730\u5740<\/tr>\n<tbody>\n<tr>\n<td>\u9700\u6c42\u65b9\u5b98\u7f51\u670d\u52a1\u5668<\/td>\n<td>\u57df\u540d\u3001\u8bc1\u4e66\u3001\u5b98\u7f51\u3001\u7edf\u4e00\u5165\u53e3\u3001\u53cd\u5411\u4ee3\u7406<\/td>\n<td>https:\/\/www.jintanfuture.com<\/td>\n<\/tr>\n<tr>\n<td>\u6211\u65b9\u963f\u91cc\u4e91\u670d\u52a1\u5668<\/td>\n<td>IPESAgent \u9759\u6001\u6587\u4ef6\u53ca\u63a5\u53e3\u5165\u53e3<\/td>\n<td>http:\/\/119.45.157.27<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6b64\u65f6\u9700\u8981\u4e24\u7aef Nginx \u914d\u5408&#xff1a;<\/p>\n<ul>\n<li>\u5b98\u7f51 Nginx&#xff1a;\u8bc6\u522b \/IPESAgent\/ \u548c \/IPESAgent-api\/&#xff0c;\u8f6c\u7ed9\u963f\u91cc\u4e91&#xff1b;<\/li>\n<li>\u963f\u91cc\u4e91 Nginx&#xff1a;\u771f\u6b63\u63d0\u4f9b\u9759\u6001\u8d44\u6e90\u3001SPA \u56de\u9000\u548c\u540e\u7aef\u63a5\u53e3\u4ee3\u7406\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>3.4 \u672c\u6b21\u5b9e\u9645\u8bbf\u95ee\u94fe\u8def<\/h4>\n<p>\u5982\u56fe4\u6240\u793a&#xff0c;\u6d4f\u89c8\u5668\u3001\u5b98\u7f51\u5165\u53e3\u548c\u963f\u91cc\u4e91\u6e90\u7ad9\u662f\u4e09\u4e2a\u89c2\u5bdf\u70b9\u3002\u6392\u969c\u65f6\u5fc5\u987b\u786e\u8ba4\u8bf7\u6c42\u5728\u54ea\u4e00\u5c42\u6d88\u5931&#xff0c;\u4e0d\u80fd\u53ea\u76ef\u7740\u6d4f\u89c8\u5668\u91cc\u7684 Loading \u6587\u6848\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181742-6ad901c6a433d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p> \u56fe4 \u9700\u6c42\u65b9\u5b98\u7f51\u4e0e\u963f\u91cc\u4e91\u6e90\u7ad9\u7684\u5b8c\u6574\u8bbf\u95ee\u94fe\u8def<\/p>\n<p>\u5047\u8bbe\u7528\u6237\u8bbf\u95ee&#xff1a;<\/p>\n<p>https:\/\/www.jintanfuture.com\/IPESAgent\/login?redirect&#061;\/home<\/p>\n<p>\u5b8c\u6574\u5904\u7406\u6d41\u7a0b\u4e3a&#xff1a;<\/p>\n<li>DNS \u5c06 www.jintanfuture.com \u89e3\u6790\u5230\u9700\u6c42\u65b9\u5b98\u7f51\u670d\u52a1\u5668&#xff1b;<\/li>\n<li>\u6d4f\u89c8\u5668\u4e0e\u9700\u6c42\u65b9 Nginx \u7684 443 \u7aef\u53e3\u5efa\u7acb TLS \u8fde\u63a5&#xff1b;<\/li>\n<li>\u9700\u6c42\u65b9 Nginx \u4f7f\u7528 www.jintanfuture.com \u8bc1\u4e66\u5b8c\u6210\u8eab\u4efd\u6821\u9a8c\u548c\u89e3\u5bc6&#xff1b;<\/li>\n<li>Nginx \u7684 location ^~ \/IPESAgent\/ \u547d\u4e2d\u8be5\u8bf7\u6c42&#xff1b;<\/li>\n<li>\u8bf7\u6c42 URI \u539f\u6837\u4ee3\u7406\u5230 http:\/\/119.45.157.27\/IPESAgent\/login?redirect&#061;\/home&#xff1b;<\/li>\n<li>\u963f\u91cc\u4e91 Nginx \u8fd4\u56de Vue \u7684 index.html&#xff1b;<\/li>\n<li>\u6d4f\u89c8\u5668\u7ee7\u7eed\u901a\u8fc7\u5b98\u7f51\u57df\u540d\u8bf7\u6c42 JS\u3001CSS\u3001\u56fe\u7247\u548c\u63a5\u53e3&#xff1b;<\/li>\n<li>\/IPESAgent-api\/ \u8bf7\u6c42\u540c\u6837\u7531\u9700\u6c42\u65b9 Nginx \u8f6c\u53d1\u5230\u963f\u91cc\u4e91&#xff1b;<\/li>\n<li>\u5bf9\u6d4f\u89c8\u5668\u800c\u8a00&#xff0c;\u6574\u4e2a\u8fc7\u7a0b\u59cb\u7ec8\u662f https:\/\/www.jintanfuture.com \u540c\u6e90\u8bbf\u95ee\u3002<\/li>\n<p>  #mermaid-svg-7DTIrgRJzmBPo3aj{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-7DTIrgRJzmBPo3aj .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-7DTIrgRJzmBPo3aj .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-7DTIrgRJzmBPo3aj .error-icon{fill:#552222;}#mermaid-svg-7DTIrgRJzmBPo3aj .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-7DTIrgRJzmBPo3aj .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-7DTIrgRJzmBPo3aj .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-7DTIrgRJzmBPo3aj .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-7DTIrgRJzmBPo3aj .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-7DTIrgRJzmBPo3aj .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-7DTIrgRJzmBPo3aj .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-7DTIrgRJzmBPo3aj .marker{fill:#333333;stroke:#333333;}#mermaid-svg-7DTIrgRJzmBPo3aj .marker.cross{stroke:#333333;}#mermaid-svg-7DTIrgRJzmBPo3aj svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-7DTIrgRJzmBPo3aj p{margin:0;}#mermaid-svg-7DTIrgRJzmBPo3aj .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-7DTIrgRJzmBPo3aj .cluster-label text{fill:#333;}#mermaid-svg-7DTIrgRJzmBPo3aj .cluster-label span{color:#333;}#mermaid-svg-7DTIrgRJzmBPo3aj .cluster-label span p{background-color:transparent;}#mermaid-svg-7DTIrgRJzmBPo3aj .label text,#mermaid-svg-7DTIrgRJzmBPo3aj span{fill:#333;color:#333;}#mermaid-svg-7DTIrgRJzmBPo3aj .node rect,#mermaid-svg-7DTIrgRJzmBPo3aj .node circle,#mermaid-svg-7DTIrgRJzmBPo3aj .node ellipse,#mermaid-svg-7DTIrgRJzmBPo3aj .node polygon,#mermaid-svg-7DTIrgRJzmBPo3aj .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-7DTIrgRJzmBPo3aj .rough-node .label text,#mermaid-svg-7DTIrgRJzmBPo3aj .node .label text,#mermaid-svg-7DTIrgRJzmBPo3aj .image-shape .label,#mermaid-svg-7DTIrgRJzmBPo3aj .icon-shape .label{text-anchor:middle;}#mermaid-svg-7DTIrgRJzmBPo3aj .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-7DTIrgRJzmBPo3aj .rough-node .label,#mermaid-svg-7DTIrgRJzmBPo3aj .node .label,#mermaid-svg-7DTIrgRJzmBPo3aj .image-shape .label,#mermaid-svg-7DTIrgRJzmBPo3aj .icon-shape .label{text-align:center;}#mermaid-svg-7DTIrgRJzmBPo3aj .node.clickable{cursor:pointer;}#mermaid-svg-7DTIrgRJzmBPo3aj .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-7DTIrgRJzmBPo3aj .arrowheadPath{fill:#333333;}#mermaid-svg-7DTIrgRJzmBPo3aj .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-7DTIrgRJzmBPo3aj .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-7DTIrgRJzmBPo3aj .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-7DTIrgRJzmBPo3aj .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-7DTIrgRJzmBPo3aj .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-7DTIrgRJzmBPo3aj .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-7DTIrgRJzmBPo3aj .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-7DTIrgRJzmBPo3aj .cluster text{fill:#333;}#mermaid-svg-7DTIrgRJzmBPo3aj .cluster span{color:#333;}#mermaid-svg-7DTIrgRJzmBPo3aj div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-7DTIrgRJzmBPo3aj .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-7DTIrgRJzmBPo3aj rect.text{fill:none;stroke-width:0;}#mermaid-svg-7DTIrgRJzmBPo3aj .icon-shape,#mermaid-svg-7DTIrgRJzmBPo3aj .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-7DTIrgRJzmBPo3aj .icon-shape p,#mermaid-svg-7DTIrgRJzmBPo3aj .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-7DTIrgRJzmBPo3aj .icon-shape .label rect,#mermaid-svg-7DTIrgRJzmBPo3aj .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-7DTIrgRJzmBPo3aj .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-7DTIrgRJzmBPo3aj .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-7DTIrgRJzmBPo3aj :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>HTTPS :443<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\/IPESAgent\/<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\/IPESAgent-api\/<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\u9759\u6001\u6587\u4ef6<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\u63a5\u53e3\u4ee3\u7406<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u6d4f\u89c8\u5668<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u9700\u6c42\u65b9\u5b98\u7f51 Nginx<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u963f\u91cc\u4e91 Nginx<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>Vue3 dist<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u540e\u7aef\u670d\u52a1<\/p>\n<p><\/span><\/p>\n<hr \/>\n<h4>3.5 \u5f00\u59cb\u914d\u7f6e\u524d\u7684\u68c0\u67e5\u6e05\u5355<\/h4>\n<p>\u4e0d\u8981\u4e00\u4e0a\u6765\u5c31\u4fee\u6539 Nginx\u3002\u5148\u786e\u8ba4\u4ee5\u4e0b\u6761\u4ef6&#xff1a;<\/p>\n<ul>\n<li>www.jintanfuture.com \u5df2\u6b63\u786e\u89e3\u6790\u5230\u9700\u6c42\u65b9\u670d\u52a1\u5668&#xff1b;<\/li>\n<li>\u5b98\u7f51\u7684 HTTPS \u8bc1\u4e66\u6709\u6548&#xff0c;\u8bc1\u4e66\u57df\u540d\u8986\u76d6 www.jintanfuture.com&#xff1b;<\/li>\n<li>\u9700\u6c42\u65b9\u670d\u52a1\u5668\u53ef\u4ee5\u8bbf\u95ee http:\/\/119.45.157.27\/IPESAgent\/&#xff1b;<\/li>\n<li>\u9700\u6c42\u65b9\u670d\u52a1\u5668\u53ef\u4ee5\u8bbf\u95ee http:\/\/119.45.157.27\/IPESAgent-api\/&#xff1b;<\/li>\n<li>\u963f\u91cc\u4e91\u5b89\u5168\u7ec4\u548c\u7cfb\u7edf\u9632\u706b\u5899\u5141\u8bb8\u9700\u6c42\u65b9\u670d\u52a1\u5668\u8bbf\u95ee&#xff1b;<\/li>\n<li>Vue3 \u7684\u751f\u4ea7\u73af\u5883\u57fa\u7840\u8def\u5f84\u4e3a \/IPESAgent\/&#xff1b;<\/li>\n<li>\u524d\u7aef\u63a5\u53e3\u5730\u5740\u4f7f\u7528 \/IPESAgent-api\/ \u7b49\u76f8\u5bf9\u8def\u5f84&#xff0c;\u4e0d\u8981\u5199\u6b7b HTTP IP&#xff1b;<\/li>\n<li>\u4e24\u53f0\u670d\u52a1\u5668\u65f6\u95f4\u6b63\u786e&#xff0c;\u4fbf\u4e8e\u5206\u6790\u65e5\u5fd7\u548c\u8bc1\u4e66\u95ee\u9898&#xff1b;<\/li>\n<li>\u4fee\u6539\u524d\u5df2\u5907\u4efd\u4e24\u7aef Nginx \u914d\u7f6e\u3002<\/li>\n<\/ul>\n<p>\u53ef\u4ee5\u5148\u5728\u9700\u6c42\u65b9\u670d\u52a1\u5668\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-I<\/span> http:\/\/119.45.157.27\/IPESAgent\/<br \/>\n<span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-I<\/span> http:\/\/119.45.157.27\/IPESAgent-api\/<\/p>\n<p>\u5982\u679c\u8fd9\u4e00\u6b65\u90fd\u8fde\u63a5\u4e0d\u4e0a&#xff0c;\u5148\u68c0\u67e5\u963f\u91cc\u4e91\u5b89\u5168\u7ec4\u3001\u7cfb\u7edf\u9632\u706b\u5899\u3001\u6e90\u7ad9 Nginx \u548c\u540e\u7aef\u7aef\u53e3\u3002\u6b64\u65f6\u4fee\u6539\u5b98\u7f51 Nginx \u6ca1\u6709\u610f\u4e49\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001Vue3 \u4e0e\u4e24\u7aef Nginx \u914d\u7f6e<\/h3>\n<h4>4.1 \u8bbe\u7f6e Vite \u57fa\u7840\u8def\u5f84<\/h4>\n<p>Vue3 &#043; Vite \u9879\u76ee\u90e8\u7f72\u5728\u4e8c\u7ea7\u8def\u5f84\u65f6&#xff0c;\u5e94\u8bbe\u7f6e&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ vite.config.js<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> defineConfig <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;vite&#039;<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token function\">defineConfig<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">base<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\/IPESAgent\/&#039;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6784\u5efa\u540e\u7684\u8d44\u6e90\u5730\u5740\u624d\u4f1a\u7c7b\u4f3c&#xff1a;<\/p>\n<p>\/IPESAgent\/assets\/index-xxxx.js<br \/>\n\/IPESAgent\/assets\/index-xxxx.css<\/p>\n<p>\u5982\u679c\u4ecd\u7136\u662f \/assets\/index-xxxx.js&#xff0c;\u6d4f\u89c8\u5668\u4f1a\u5230\u5b98\u7f51\u6839\u76ee\u5f55\u5bfb\u627e\u8d44\u6e90&#xff0c;\u9875\u9762\u901a\u5e38\u4f1a\u767d\u5c4f\u6216\u4e00\u76f4\u505c\u7559\u5728 Loading\u3002<\/p>\n<h4>4.2 Vue Router \u4f7f\u7528\u6b63\u786e\u7684 history base<\/h4>\n<p>\u63a8\u8350\u8ba9\u8def\u7531\u4f7f\u7528 Vite \u81ea\u52a8\u751f\u6210\u7684\u57fa\u7840\u8def\u5f84&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> createRouter<span class=\"token punctuation\">,<\/span> createWebHistory <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;vue-router&#039;<\/span><\/p>\n<p><span class=\"token keyword\">const<\/span> router <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">createRouter<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">history<\/span><span class=\"token operator\">:<\/span> <span class=\"token function\">createWebHistory<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">import<\/span><span class=\"token punctuation\">.<\/span>meta<span class=\"token punctuation\">.<\/span>env<span class=\"token punctuation\">.<\/span><span class=\"token constant\">BASE_URL<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  routes<br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h4>4.3 \u63a5\u53e3\u5fc5\u987b\u4f7f\u7528\u540c\u6e90\u76f8\u5bf9\u8def\u5f84<\/h4>\n<p>\u751f\u4ea7\u73af\u5883\u4e2d\u4e0d\u8981\u7ee7\u7eed\u5199&#xff1a;<\/p>\n<p>http:\/\/119.45.157.27\/IPESAgent-api\/<\/p>\n<p>\u800c\u5e94\u4f7f\u7528&#xff1a;<\/p>\n<p>\/IPESAgent-api\/<\/p>\n<p>\u8fd9\u6837\u6d4f\u89c8\u5668\u4f1a\u81ea\u52a8\u8bf7\u6c42&#xff1a;<\/p>\n<p>https:\/\/www.jintanfuture.com\/IPESAgent-api\/<\/p>\n<p>\u518d\u7531\u5b98\u7f51 Nginx \u4ee3\u7406\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668&#xff0c;\u4ece\u6839\u672c\u4e0a\u907f\u514d\u6df7\u5408\u5185\u5bb9\u548c\u6d4f\u89c8\u5668\u8de8\u57df\u95ee\u9898\u3002<\/p>\n<h4>4.4 \u91cd\u65b0\u6784\u5efa\u5e76\u90e8\u7f72<\/h4>\n<p><span class=\"token function\">npm<\/span> run build:prod<\/p>\n<p>\u5c06\u65b0\u7684 dist \u90e8\u7f72\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\u914d\u7f6e\u7684\u76ee\u5f55\u3002\u53ea\u6539 Nginx \u800c\u4e0d\u91cd\u65b0\u6784\u5efa\u524d\u7aef&#xff0c;\u65e7\u8d44\u6e90\u8def\u5f84\u4ecd\u53ef\u80fd\u5bfc\u81f4\u9875\u9762\u5931\u8d25\u3002<\/p>\n<hr \/>\n<h4>4.5 \u963f\u91cc\u4e91\u6e90\u7ad9 Nginx \u914d\u7f6e&#xff08; \u5b8c\u6574\u914d\u7f6e &#xff09;<\/h4>\n<p>\u4e0b\u9762\u7ed9\u51fa\u4e00\u4e2a\u4e0e\u672c\u6587\u8def\u5f84\u7ed3\u6784\u4e00\u81f4\u7684\u6e90\u7ad9\u6a21\u677f\u3002\u9759\u6001\u76ee\u5f55\u548c\u540e\u7aef\u7aef\u53e3\u5e94\u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u5b9e\u9645\u503c\u3002<\/p>\n<p>user www-data;<br \/>\nworker_processes auto;<\/p>\n<p>pid \/usr\/local\/nginx-1.30.0\/logs\/nginx.pid;<\/p>\n<p>events {<br \/>\n    worker_connections 2048;<br \/>\n}<\/p>\n<p>http {<br \/>\n    include       \/usr\/local\/nginx-1.30.0\/conf\/mime.types;<br \/>\n    default_type  application\/octet-stream;<\/p>\n<p>    sendfile on;<br \/>\n    tcp_nopush on;<br \/>\n    tcp_nodelay on;<\/p>\n<p>    keepalive_timeout 65;<\/p>\n<p>    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    # \u6587\u4ef6\u4e0a\u4f20\u5927\u5c0f<br \/>\n    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    client_max_body_size 100m;<\/p>\n<p>    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    # \u6240\u6709\u4ee3\u7406\u8bf7\u6c42\u7edf\u4e00 5 \u5206\u949f<br \/>\n    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    proxy_connect_timeout 300s;<br \/>\n    proxy_send_timeout    300s;<br \/>\n    proxy_read_timeout    300s;<\/p>\n<p>    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    # \u5173\u95ed\u4ee3\u7406\u7f13\u51b2<br \/>\n    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    proxy_buffering off;<\/p>\n<p>    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    # \u65e5\u5fd7<br \/>\n    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    access_log \/usr\/local\/nginx-1.30.0\/logs\/access.log;<br \/>\n    error_log  \/usr\/local\/nginx-1.30.0\/logs\/error.log warn;<\/p>\n<p>    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    # \u552f\u4e00 server \u5757&#xff1a;\u901a\u8fc7 80 \u7aef\u53e3\u63d0\u4f9b HTTP \u670d\u52a1<br \/>\n    # server_name \u540c\u65f6\u652f\u6301 IP \u548c\u57df\u540d&#xff0c;\u4ee5\u4fbf\u5b98\u7f51\u53cd\u5411\u4ee3\u7406\u8bf7\u6c42\u5339\u914d<br \/>\n    # IPWeave \u914d\u7f6e\u539f\u5c01\u4e0d\u52a8<br \/>\n    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    server {<br \/>\n        listen 80;<br \/>\n        listen [::]:80;<\/p>\n<p>        server_name 119.45.157.27 www.jintanfuture.com;<\/p>\n<p>        root \/usr\/local\/nginx-1.30.0\/html;<br \/>\n        index index.html;<\/p>\n<p>        # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n        # IPESAgent \u524d\u7aef<br \/>\n        # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n        location \/IPESAgent\/ {<br \/>\n            try_files $uri $uri\/ \/IPESAgent\/index.html;<br \/>\n        }<br \/>\n        # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n        # IPESAgent \u540e\u7aef API<br \/>\n        # \u540e\u7aef\u670d\u52a1&#xff1a;8040<br \/>\n        # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n        location \/IPESAgent-api\/ {<br \/>\n            proxy_pass http:\/\/127.0.0.1:8040\/;<\/p>\n<p>            proxy_http_version 1.1;<\/p>\n<p>            proxy_set_header Host $host;<br \/>\n            proxy_set_header X-Real-IP $remote_addr;<br \/>\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n            proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n        }<\/p>\n<p>        # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n        # IPWeave \u524d\u7aef<br \/>\n        # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n        location \/IPWeave\/ {<br \/>\n            try_files $uri $uri\/ \/IPWeave\/index.html;<br \/>\n        }<br \/>\n        # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n        # IPWeave \u540e\u7aef API&#xff0c;\u540e\u7aef\u670d\u52a1&#xff1a;8090<br \/>\n        # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n        location \/IPWeave-api\/ {<br \/>\n            proxy_pass http:\/\/127.0.0.1:8090\/;<\/p>\n<p>            proxy_http_version 1.1;<br \/>\n            proxy_set_header Host $host;<br \/>\n            proxy_set_header X-Real-IP $remote_addr;<br \/>\n            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n            proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\u4e0a\u9762\u4f7f\u7528\u4e86 $connection_upgrade&#xff0c;\u9700\u8981\u5728 Nginx \u7684 http {} \u5c42\u5b9a\u4e49&#xff1a;<\/p>\n<p>map $http_upgrade $connection_upgrade {<br \/>\n    default upgrade;<br \/>\n    &#039;&#039;      close;<br \/>\n}<\/p>\n<p>\u5982\u679c\u6e90\u7ad9\u65e2\u53ef\u80fd\u88ab\u5916\u5c42 HTTPS \u4ee3\u7406\u8bbf\u95ee&#xff0c;\u4e5f\u9700\u8981\u4fdd\u7559\u76f4\u63a5 HTTP \u8c03\u8bd5\u80fd\u529b&#xff0c;\u518d\u5728\u540c\u4e00\u4e2a http {} \u4e2d\u52a0\u5165&#xff1a;<\/p>\n<p>map $http_x_forwarded_proto $forwarded_proto {<br \/>\n    default $http_x_forwarded_proto;<br \/>\n    &#039;&#039;      $scheme;<br \/>\n}<\/p>\n<p>\u5982\u679c\u540e\u7aef\u672c\u8eab\u5c31\u8981\u6c42\u4fdd\u7559 \/IPESAgent-api\/ \u524d\u7f00&#xff0c;\u5219\u4e0d\u8981\u5728 proxy_pass \u540e\u5199 \/&#xff1a;<\/p>\n<p>location ^~ \/IPESAgent-api\/ {<br \/>\n    proxy_pass http:\/\/127.0.0.1:8080;<br \/>\n}<\/p>\n<p>proxy_pass \u662f\u5426\u5e26 URI \u4f1a\u5f71\u54cd\u8def\u5f84\u66ff\u6362&#xff0c;\u8fd9\u662f\u4e8c\u7ea7\u8def\u5f84\u4ee3\u7406\u4e2d\u6700\u5bb9\u6613\u5199\u9519\u7684\u5730\u65b9\u4e4b\u4e00\u3002<\/p>\n<hr \/>\n<h4>4.6 \u9700\u6c42\u65b9\u5b98\u7f51 Nginx \u914d\u7f6e&#xff08; server \u5757 &#xff09;<\/h4>\n<h5>4.6.1 \u63a8\u8350\u7684\u5b8c\u6574\u6838\u5fc3\u6a21\u677f<\/h5>\n<p>\u4e0b\u9762\u914d\u7f6e\u91cd\u70b9\u5c55\u793a HTTPS\u3001\u5b98\u7f51\u539f\u6709\u4e1a\u52a1\u4ee5\u53ca\u4e24\u4e2a\u4ee3\u7406\u8def\u5f84\u5982\u4f55\u5171\u5b58\u3002\u8bc1\u4e66\u8def\u5f84\u3001\u7f51\u7ad9\u6839\u76ee\u5f55\u3001PHP \u914d\u7f6e\u548c\u65e5\u5fd7\u8def\u5f84\u5e94\u4ee5\u9700\u6c42\u65b9\u670d\u52a1\u5668\u5b9e\u9645\u73af\u5883\u4e3a\u51c6\u3002<\/p>\n<p>server<br \/>\n{<br \/>\n    listen 80;<br \/>\n    listen 443 ssl;<br \/>\n    listen 443 quic;<br \/>\n    http2 on;<br \/>\n    http3 on;<\/p>\n<p>    server_name www.jintanfuture.com jintanfuture.com;<\/p>\n<p>    index index.php index.html index.htm default.php default.htm default.html;<br \/>\n    root \/www\/wwwroot\/www.jintanfuture.com;<\/p>\n<p>    #CERT-APPLY-CHECK&#8211;START<br \/>\n    # \u7528\u4e8e SSL \u8bc1\u4e66\u7533\u8bf7\u65f6\u7684\u6587\u4ef6\u9a8c\u8bc1\u76f8\u5173\u914d\u7f6e&#xff0c;\u8bf7\u52ff\u5220\u9664<br \/>\n    include \/www\/server\/panel\/vhost\/nginx\/well-known\/www.jintanfuture.com.conf;<br \/>\n    #CERT-APPLY-CHECK&#8211;END<\/p>\n<p>    include \/www\/server\/panel\/vhost\/nginx\/extension\/www.jintanfuture.com\/*.conf;<\/p>\n<p>    #SSL-START<br \/>\n    #error_page 404\/404.html;<br \/>\n    ssl_certificate     \/www\/server\/panel\/vhost\/cert\/www.jintanfuture.com\/fullchain.pem;<br \/>\n    ssl_certificate_key \/www\/server\/panel\/vhost\/cert\/www.jintanfuture.com\/privkey.pem;<\/p>\n<p>    ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;<br \/>\n    ssl_ciphers EECDH&#043;CHACHA20:EECDH&#043;CHACHA20-draft:EECDH&#043;AES128:RSA&#043;AES128:EECDH&#043;AES256:RSA&#043;AES256:EECDH&#043;3DES:RSA&#043;3DES:!MD5;<br \/>\n    ssl_prefer_server_ciphers on;<br \/>\n    ssl_session_tickets on;<br \/>\n    ssl_session_cache shared:SSL:10m;<br \/>\n    ssl_session_timeout 10m;<\/p>\n<p>    add_header Strict-Transport-Security &#034;max-age&#061;31536000&#034;;<br \/>\n    add_header Alt-Svc &#039;quic&#061;&#034;:443&#034;; h3&#061;&#034;:443&#034;; h3-29&#061;&#034;:443&#034;; h3-27&#061;&#034;:443&#034;; h3-25&#061;&#034;:443&#034;; h3-T050&#061;&#034;:443&#034;; h3-Q050&#061;&#034;:443&#034;; h3-Q049&#061;&#034;:443&#034;; h3-Q048&#061;&#034;:443&#034;; h3-Q046&#061;&#034;:443&#034;; h3-Q043&#061;&#034;:443&#034;&#039;;<\/p>\n<p>    quic_retry on;<br \/>\n    quic_gso on;<br \/>\n    ssl_early_data on;<\/p>\n<p>    error_page 497 https:\/\/$host$request_uri;<br \/>\n    #SSL-END<\/p>\n<p>    #ERROR-PAGE-START<br \/>\n    error_page 404 \/404.html;<br \/>\n    #error_page 502 \/502.html;<br \/>\n    #ERROR-PAGE-END<\/p>\n<p>    #PHP-INFO-START<br \/>\n    include enable-php-82.conf;<br \/>\n    #PHP-INFO-END<\/p>\n<p>    #REWRITE-START<br \/>\n    include \/www\/server\/panel\/vhost\/rewrite\/www.jintanfuture.com.conf;<br \/>\n    #REWRITE-END<\/p>\n<p>    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    # IPESAgent \u524d\u7aef\u7cfb\u7edf\u53cd\u5411\u4ee3\u7406<br \/>\n    # \u7cbe\u786e\u5730\u5740\u7f3a\u5c11\u5c3e\u659c\u6760\u65f6&#xff0c;\u7edf\u4e00\u8df3\u8f6c\u5230\u5e26\u5c3e\u659c\u6760\u7684\u5730\u5740<br \/>\n    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    location &#061; \/IPESAgent {<br \/>\n        return 301 https:\/\/www.jintanfuture.com\/IPESAgent\/;<br \/>\n    }<\/p>\n<p>    # \u5fc5\u987b\u4f7f\u7528 ^~&#xff0c;\u9632\u6b62 JS\/CSS\/\u56fe\u7247\u8bf7\u6c42\u88ab\u540e\u9762\u7684\u6b63\u5219 location \u62a2\u8d70<br \/>\n    location ^~ \/IPESAgent\/ {<br \/>\n        proxy_pass http:\/\/119.45.157.27\/IPESAgent\/;<br \/>\n        proxy_http_version 1.1;<\/p>\n<p>        # \u8ba9\u6e90\u670d\u52a1\u5668\u6b63\u786e\u547d\u4e2d 119.45.157.27 \u5bf9\u5e94\u7684\u865a\u62df\u4e3b\u673a<br \/>\n        proxy_set_header Host $proxy_host;<\/p>\n<p>        # \u4fdd\u7559\u771f\u5b9e\u8bbf\u95ee\u57df\u540d\u3001\u534f\u8bae\u548c\u5ba2\u6237\u7aef IP<br \/>\n        proxy_set_header X-Forwarded-Host $host;<br \/>\n        proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n        proxy_set_header X-Forwarded-Port $server_port;<br \/>\n        proxy_set_header X-Real-IP $remote_addr;<br \/>\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<\/p>\n<p>        proxy_connect_timeout 60s;<br \/>\n        proxy_send_timeout 300s;<br \/>\n        proxy_read_timeout 300s;<\/p>\n<p>        # \u5c06\u6e90\u670d\u52a1\u5668\u8fd4\u56de\u7684 HTTP\/IP \u8df3\u8f6c\u6539\u5199\u6210\u9700\u6c42\u65b9 HTTPS \u57df\u540d<br \/>\n        proxy_redirect http:\/\/119.45.157.27\/ https:\/\/www.jintanfuture.com\/;<\/p>\n<p>        # \u5982\u679c\u6e90\u670d\u52a1\u5668 Cookie \u663e\u5f0f\u7ed1\u5b9a\u4e86 IP&#xff0c;\u5219\u6539\u5199\u4e3a\u9700\u6c42\u65b9\u57df\u540d<br \/>\n        proxy_cookie_domain 119.45.157.27 www.jintanfuture.com;<br \/>\n    }<\/p>\n<p>    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    # IPESAgent \u540e\u7aef\u63a5\u53e3\u53cd\u5411\u4ee3\u7406<br \/>\n    # &#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n    location &#061; \/IPESAgent-api {<br \/>\n        return 301 https:\/\/www.jintanfuture.com\/IPESAgent-api\/;<br \/>\n    }<\/p>\n<p>    location ^~ \/IPESAgent-api\/ {<br \/>\n        proxy_pass http:\/\/119.45.157.27\/IPESAgent-api\/;<br \/>\n        proxy_http_version 1.1;<\/p>\n<p>        proxy_set_header Host $proxy_host;<\/p>\n<p>        proxy_set_header X-Forwarded-Host $host;<br \/>\n        proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n        proxy_set_header X-Forwarded-Port $server_port;<br \/>\n        proxy_set_header X-Real-IP $remote_addr;<br \/>\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<\/p>\n<p>        # \u652f\u6301\u6587\u4ef6\u4e0a\u4f20<br \/>\n        client_max_body_size 200m;<\/p>\n<p>        # \u652f\u6301\u667a\u80fd\u4f53\u6d41\u5f0f\u63a5\u53e3\/SSE<br \/>\n        proxy_buffering off;<br \/>\n        proxy_cache off;<br \/>\n        proxy_connect_timeout 60s;<br \/>\n        proxy_send_timeout 600s;<br \/>\n        proxy_read_timeout 600s;<\/p>\n<p>        proxy_redirect http:\/\/119.45.157.27\/ https:\/\/www.jintanfuture.com\/;<br \/>\n        proxy_cookie_domain 119.45.157.27 www.jintanfuture.com;<br \/>\n    }<\/p>\n<p>    # \u7981\u6b62\u8bbf\u95ee\u654f\u611f\u6587\u4ef6<br \/>\n    location ~* (\\\\.user.ini|\\\\.htaccess|\\\\.htpasswd|\\\\.env.*|\\\\.project|\\\\.bashrc|\\\\.bash_profile|\\\\.bash_logout|\\\\.DS_Store|\\\\.gitignore|\\\\.gitattributes|LICENSE|README\\\\.md|CLAUDE\\\\.md|CHANGELOG\\\\.md|CHANGELOG|CONTRIBUTING\\\\.md|TODO\\\\.md|FAQ\\\\.md|composer\\\\.json|composer\\\\.lock|package(-lock)?\\\\.json|yarn\\\\.lock|pnpm-lock\\\\.yaml|\\\\.\\\\w&#043;~|\\\\.swp|\\\\.swo|\\\\.bak(up)?|\\\\.old|\\\\.tmp|\\\\.temp|\\\\.log|\\\\.sql(\\\\.gz)?|docker-compose\\\\.yml|docker\\\\.env|Dockerfile|\\\\.csproj|\\\\.sln|Cargo\\\\.toml|Cargo\\\\.lock|go\\\\.mod|go\\\\.sum|phpunit\\\\.xml|phpunit\\\\.xml|pom\\\\.xml|build\\\\.gradl|pyproject\\\\.toml|requirements\\\\.txt|application(-\\\\w&#043;)?\\\\.(ya?ml|properties))$<br \/>\n    {<br \/>\n        return 404;<br \/>\n    }<\/p>\n<p>    # \u7981\u6b62\u8bbf\u95ee\u654f\u611f\u76ee\u5f55<br \/>\n    location ~* \/(\\\\.git|\\\\.svn|\\\\.bzr|\\\\.vscode|\\\\.claude|\\\\.idea|\\\\.ssh|\\\\.github|\\\\.npm|\\\\.yarn|\\\\.pnpm|\\\\.cache|\\\\.husky|\\\\.turbo|\\\\.next|\\\\.nuxt|node_modules|runtime)\/ {<br \/>\n        return 404;<br \/>\n    }<\/p>\n<p>    # SSL \u8bc1\u4e66\u9a8c\u8bc1\u76ee\u5f55<br \/>\n    location ~ \\\\.well-known {<br \/>\n        allow all;<br \/>\n    }<\/p>\n<p>    # \u7981\u6b62\u5728\u8bc1\u4e66\u9a8c\u8bc1\u76ee\u5f55\u653e\u5165\u654f\u611f\u6587\u4ef6<br \/>\n    if ($uri ~ &#034;^\/\\\\.well-known\/.*\\\\.(php|jsp|py|js|css|lua|ts|go|zip|tar\\\\.gz|rar|7z|sql|bak)$&#034;) {<br \/>\n        return 403;<br \/>\n    }<\/p>\n<p>    # \u5b98\u7f51\u81ea\u8eab\u56fe\u7247\u7f13\u5b58\u89c4\u5219<br \/>\n    # \u56e0\u4e3a \/IPESAgent\/ \u4f7f\u7528\u4e86 ^~&#xff0c;\u4e0d\u4f1a\u518d\u88ab\u6b64\u89c4\u5219\u62a2\u8d70<br \/>\n    location ~ .*\\\\.(gif|jpg|jpeg|png|bmp|swf)$ {<br \/>\n        expires 30d;<br \/>\n        error_log \/dev\/null;<br \/>\n        access_log \/dev\/null;<br \/>\n    }<\/p>\n<p>    # \u5b98\u7f51\u81ea\u8eab JS\/CSS \u7f13\u5b58\u89c4\u5219<br \/>\n    # \u56e0\u4e3a \/IPESAgent\/ \u4f7f\u7528\u4e86 ^~&#xff0c;\u4e0d\u4f1a\u518d\u88ab\u6b64\u89c4\u5219\u62a2\u8d70<br \/>\n    location ~ .*\\\\.(js|css)?$ {<br \/>\n        expires 12h;<br \/>\n        error_log \/dev\/null;<br \/>\n        access_log \/dev\/null;<br \/>\n    }<\/p>\n<p>    access_log \/www\/wwwlogs\/www.jintanfuture.com.log;<br \/>\n    error_log  \/www\/wwwlogs\/www.jintanfuture.com.error.log;<br \/>\n}<\/p>\n<h5>4.6.2 \u4e3a\u4ec0\u4e48 proxy_pass \u4e0d\u5e26\u8def\u5f84<\/h5>\n<p>\u5f53\u524d\u9700\u6c42\u662f\u628a URI \u539f\u6837\u8f6c\u53d1&#xff1a;<\/p>\n<p>\/IPESAgent\/assets\/app.js<br \/>\n    \u2193<br \/>\nhttp:\/\/119.45.157.27\/IPESAgent\/assets\/app.js<\/p>\n<p>\u6240\u4ee5\u4f7f\u7528&#xff1a;<\/p>\n<p>location ^~ \/IPESAgent\/ {<br \/>\n    proxy_pass http:\/\/119.45.157.27;<br \/>\n}<\/p>\n<p>\u6700\u76f4\u89c2&#xff0c;\u4e0d\u5bb9\u6613\u8bef\u5220\u524d\u7f00\u3002<\/p>\n<p>\u4e0b\u9762\u8fd9\u79cd\u5199\u6cd5\u5728 location \u4e0e\u4e0a\u6e38 URI \u5b8c\u5168\u76f8\u540c\u65f6\u901a\u5e38\u4e5f\u80fd\u5f97\u5230\u76f8\u540c\u7ed3\u679c&#xff1a;<\/p>\n<p>location ^~ \/IPESAgent\/ {<br \/>\n    proxy_pass http:\/\/119.45.157.27\/IPESAgent\/;<br \/>\n}<\/p>\n<p>\u4f46\u4e0d\u8981\u8bef\u5199\u6210&#xff1a;<\/p>\n<p>location ^~ \/IPESAgent\/ {<br \/>\n    proxy_pass http:\/\/119.45.157.27\/;<br \/>\n}<\/p>\n<p>\u6700\u540e\u4e00\u79cd\u914d\u7f6e\u4f1a\u628a\u5339\u914d\u5230\u7684 \/IPESAgent\/ \u66ff\u6362\u6210 \/&#xff0c;\u8bf7\u6c42\u8def\u5f84\u53ef\u80fd\u53d8\u6210&#xff1a;<\/p>\n<p>http:\/\/119.45.157.27\/assets\/app.js<\/p>\n<p>\u5982\u679c\u6e90\u7ad9\u8d44\u6e90\u5b9e\u9645\u4f4d\u4e8e \/IPESAgent\/assets\/&#xff0c;\u9875\u9762\u5c31\u4f1a\u52a0\u8f7d\u5931\u8d25\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001Loading\u3001502 \u4e0e\u5c3e\u659c\u6760\u6392\u969c<\/h3>\n<h4>5.1 Loading \u9875\u9762\u4e3a\u4f55\u4e00\u76f4\u4e0d\u6d88\u5931<\/h4>\n<p>\u5982\u56fe5\u6240\u793a&#xff0c;\u6545\u969c\u524d\u540e\u53ea\u5dee\u4e00\u4e2a ^~&#xff0c;\u8bf7\u6c42\u5f52\u5c5e\u5374\u5b8c\u5168\u4e0d\u540c\u3002\u8fd9\u4e2a\u95ee\u9898\u5bb9\u6613\u8bef\u5224\u6210 Vue \u6743\u9650\u5b88\u536b\u3001permission.js \u767d\u540d\u5355\u6216\u767b\u5f55\u8df3\u8f6c\u5931\u8d25&#xff1b;\u5b9e\u9645\u4e0a&#xff0c;\u5165\u53e3\u811a\u672c\u6839\u672c\u6ca1\u6709\u88ab\u6b63\u786e\u52a0\u8f7d&#xff0c;\u6743\u9650\u4ee3\u7801\u8fd8\u6ca1\u6709\u6267\u884c\u673a\u4f1a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181743-6ad901c7df468.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p> \u56fe5 JS\/CSS \u88ab\u6b63\u5219 location \u622a\u83b7\u5bfc\u81f4 Loading \u7684\u6839\u56e0<\/p>\n<p>\u539f\u5b98\u7f51\u914d\u7f6e\u4e2d\u867d\u7136\u5df2\u7ecf\u5b58\u5728&#xff1a;<\/p>\n<p>location \/IPESAgent\/ {<br \/>\n    proxy_pass http:\/\/119.45.157.27\/IPESAgent\/;<br \/>\n}<\/p>\n<p>\u4f46\u5b98\u7f51\u8fd8\u5b58\u5728\u7c7b\u4f3c\u7684\u6b63\u5219\u89c4\u5219&#xff1a;<\/p>\n<p>location ~ .*\\\\.(js|css)?$ {<br \/>\n    expires 12h;<br \/>\n}<\/p>\n<p>\u5f53\u6d4f\u89c8\u5668\u8bf7\u6c42&#xff1a;<\/p>\n<p>\/IPESAgent\/assets\/index-xxxx.js<\/p>\n<p>\u666e\u901a\u524d\u7f00 location \/IPESAgent\/ \u4f1a\u5148\u88ab\u8bb0\u4f4f&#xff0c;\u968f\u540e Nginx \u4ecd\u7136\u7ee7\u7eed\u68c0\u67e5\u6b63\u5219 location\u3002\u7531\u4e8e URL \u4ee5 .js \u7ed3\u5c3e&#xff0c;\u6700\u7ec8\u53ef\u80fd\u7531\u5b98\u7f51\u672c\u5730\u7684 JS\/CSS \u89c4\u5219\u5904\u7406&#xff0c;\u800c\u4e0d\u662f\u53cd\u5411\u4ee3\u7406\u5230\u963f\u91cc\u4e91\u3002<\/p>\n<p>\u7ed3\u679c\u5c31\u662f&#xff1a;<\/p>\n<ul>\n<li>index.html \u80fd\u8fd4\u56de&#xff0c;\u6240\u4ee5\u6d4f\u89c8\u5668\u770b\u5230\u4e86 Loading \u9875\u9762&#xff1b;<\/li>\n<li>\u771f\u6b63\u542f\u52a8 Vue \u5e94\u7528\u7684 JS\u3001CSS \u8fd4\u56de 404\u3001\u9519\u8bef\u5185\u5bb9\u6216\u65e7\u7f13\u5b58&#xff1b;<\/li>\n<li>JavaScript \u6ca1\u6709\u6267\u884c&#xff0c;Loading \u81ea\u7136\u4e0d\u4f1a\u6d88\u5931\u3002<\/li>\n<\/ul>\n<p>\u89e3\u51b3\u529e\u6cd5\u662f\u4f7f\u7528&#xff1a;<\/p>\n<p>location ^~ \/IPESAgent\/ {<br \/>\n    proxy_pass http:\/\/119.45.157.27;<br \/>\n}<\/p>\n<p>^~ \u7684\u542b\u4e49\u662f&#xff1a;\u5f53\u524d\u524d\u7f00\u4e00\u65e6\u547d\u4e2d&#xff0c;\u5c31\u4e0d\u518d\u7ee7\u7eed\u5339\u914d\u540e\u9762\u7684\u6b63\u5219 location\u3002\u8fd9\u6837 \/IPESAgent\/ \u4e0b\u7684 HTML\u3001JS\u3001CSS\u3001\u56fe\u7247\u548c\u5b57\u4f53\u90fd\u4f1a\u7a33\u5b9a\u5730\u8d70\u5230\u963f\u91cc\u4e91\u6e90\u7ad9\u3002<\/p>\n<p>\u9664\u6b64\u4e4b\u5916&#xff0c;\u8fd8\u8981\u540c\u65f6\u6392\u67e5\u4ee5\u4e0b\u95ee\u9898&#xff1a;<\/p>\n<li>Vue \u7684 base \u662f\u5426\u8fd8\u662f \/&#xff1b;<\/li>\n<li>\u524d\u7aef\u662f\u5426\u628a\u63a5\u53e3\u5730\u5740\u5199\u6b7b\u6210 http:\/\/119.45.157.27&#xff1b;<\/li>\n<li>\/IPESAgent-api\/ \u662f\u5426\u9057\u6f0f\u4ee3\u7406&#xff1b;<\/li>\n<li>Host $host \u662f\u5426\u5bfc\u81f4\u6e90\u7ad9\u547d\u4e2d\u9519\u8bef\u7684\u865a\u62df\u4e3b\u673a&#xff1b;<\/li>\n<li>\u6e90\u7ad9\u662f\u5426\u8fd4\u56de\u4e86\u6307\u5411 HTTP IP \u7684\u7edd\u5bf9\u91cd\u5b9a\u5411&#xff1b;<\/li>\n<li>\u6d4f\u89c8\u5668\u662f\u5426\u7f13\u5b58\u4e86\u65e7 index.html&#xff1b;<\/li>\n<li>\u63a5\u53e3\u662f\u5426\u4f7f\u7528 SSE&#xff0c;\u4f46\u4ee3\u7406\u7f13\u51b2\u6ca1\u6709\u5173\u95ed\u3002<\/li>\n<hr \/>\n<h4>5.2 Host $host \u600e\u6837\u4e0e\u6e90\u7ad9\u914d\u5408<\/h4>\n<p>\u9700\u6c42\u65b9 Nginx \u4e2d\u7684 $host \u662f&#xff1a;<\/p>\n<p>www.jintanfuture.com<\/p>\n<p>\u5982\u679c\u9700\u6c42\u65b9\u8fd9\u6837\u914d\u7f6e&#xff1a;<\/p>\n<p>proxy_set_header Host $host;<\/p>\n<p>\u963f\u91cc\u4e91 Nginx \u6536\u5230\u7684 Host \u4e5f\u662f www.jintanfuture.com\u3002\u63a8\u8350\u8ba9\u6e90\u7ad9\u660e\u786e\u63a5\u53d7\u8fd9\u4e2a\u4e3b\u673a\u540d&#xff1a;<\/p>\n<p>server_name 119.45.157.27 www.jintanfuture.com;<\/p>\n<p>\u8fd9\u6837\u65e2\u80fd\u8ba9\u6e90\u7ad9\u547d\u4e2d\u6b63\u786e\u7684\u865a\u62df\u4e3b\u673a&#xff0c;\u4e5f\u6709\u5229\u4e8e\u5e94\u7528\u6309\u7167\u7528\u6237\u771f\u5b9e\u8bbf\u95ee\u7684\u57df\u540d\u751f\u6210\u7edd\u5bf9\u5730\u5740\u3002<\/p>\n<p>\u5982\u679c\u6682\u65f6\u4e0d\u80fd\u4fee\u6539\u6e90\u7ad9\u7684 server_name&#xff0c;\u9700\u6c42\u65b9\u4ee3\u7406\u53ef\u4ee5\u9000\u800c\u4f7f\u7528&#xff1a;<\/p>\n<p>proxy_set_header Host $proxy_host;<br \/>\nproxy_set_header X-Forwarded-Host $host;<\/p>\n<p>\u6b64\u65f6 $proxy_host \u4e3a 119.45.157.27&#xff0c;\u53ef\u4ee5\u547d\u4e2d\u6e90\u7ad9 IP \u865a\u62df\u4e3b\u673a&#xff1b;X-Forwarded-Host \u4ecd\u628a\u7528\u6237\u771f\u5b9e\u8bbf\u95ee\u57df\u540d\u4ea4\u7ed9\u540e\u7aef\u3002\u91c7\u7528\u8be5\u65b9\u5f0f\u540e&#xff0c;\u9700\u8981\u91cd\u70b9\u68c0\u67e5\u7edd\u5bf9\u91cd\u5b9a\u5411\u548c Cookie Domain&#xff0c;\u907f\u514d\u54cd\u5e94\u518d\u6b21\u66b4\u9732 HTTP IP \u5730\u5740\u3002<\/p>\n<hr \/>\n<h4>5.3 \u5c3e\u659c\u6760\u4e3a\u4ec0\u4e48\u6709\u65f6\u5fc5\u987b\u5199<\/h4>\n<p>\u5148\u533a\u5206\u672c\u8282\u7684\u4e24\u4e2a\u9879\u76ee&#xff1a;IPESAgent \u662f\u4eca\u6a80\u9879\u76ee&#xff0c;IPAgent \u662f\u77e5\u4ea7\u9879\u76ee\u3002\u4e0b\u6587\u7528\u4eca\u6a80\u9879\u76ee\u8bf4\u660e\u4e00\u6b21\u771f\u5b9e\u7684\u8df3\u8f6c\u6545\u969c&#xff0c;\u5e76\u7528\u77e5\u4ea7\u9879\u76ee\u7684\u6d4b\u8bd5\u7ed3\u679c\u8fdb\u884c\u5bf9\u7167\u3002<\/p>\n<p>\u4eca\u6a80\u9879\u76ee\u90e8\u7f72\u5728 \/IPESAgent\/ \u5b50\u8def\u5f84\u4e0b&#xff0c;\u5efa\u8bae\u7edf\u4e00\u4f7f\u7528\u5e26\u5c3e\u659c\u6760\u7684\u89c4\u8303\u5730\u5740&#xff1a;<\/p>\n<p>https:\/\/www.jintanfuture.com\/IPESAgent\/<\/p>\n<p>\/IPESAgent \u4e0e \/IPESAgent\/ \u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u8bf7\u6c42\u8def\u5f84\u3002\u5982\u679c\u9875\u9762\u4f7f\u7528 .\/assets\/app.js \u4e4b\u7c7b\u7684\u76f8\u5bf9\u8d44\u6e90\u5730\u5740&#xff0c;\u6d4f\u89c8\u5668\u4f1a\u6839\u636e\u5f53\u524d URL \u662f\u5426\u4ee5 \/ \u7ed3\u5c3e&#xff0c;\u8ba1\u7b97\u51fa\u4e0d\u540c\u7684\u8d44\u6e90\u8def\u5f84\u3002\u56e0\u6b64&#xff0c;\u9700\u6c42\u65b9\u670d\u52a1\u5668\u4e3a\u4e0d\u5e26\u659c\u6760\u7684\u5165\u53e3\u914d\u7f6e\u4e86\u660e\u786e\u8df3\u8f6c&#xff08;\u914d\u7f6e\u91cd\u70b9&#xff09;&#xff1a;<\/p>\n<p>location &#061; \/IPESAgent {<br \/>\n    return 301 https:\/\/www.jintanfuture.com\/IPESAgent\/$is_args$args;<br \/>\n}<\/p>\n<p>\u5176\u4e2d&#xff0c;location &#061; \/IPESAgent \u53ea\u7cbe\u786e\u5339\u914d\u4e0d\u5e26\u5c3e\u659c\u6760\u7684\u5730\u5740&#xff1b;301 \u8868\u793a\u6c38\u4e45\u91cd\u5b9a\u5411&#xff1b;$is_args$args \u7528\u4e8e\u4fdd\u7559\u539f URL \u7684\u67e5\u8be2\u53c2\u6570\u3002\u8df3\u8f6c\u540e\u7684 \/IPESAgent\/ \u518d\u7531\u539f\u6709\u7684\u9879\u76ee\u4ee3\u7406\u89c4\u5219\u5904\u7406\u3002<\/p>\n<h5>5.3.1 \u4e00\u6b21\u5b9e\u9645\u6392\u67e5&#xff1a;\u4e3a\u4ec0\u4e48\u8865\u4e86\u659c\u6760\u4ecd\u51fa\u73b0 502&#xff1f;<\/h5>\n<p>\u672c\u5730 24 \u670d\u52a1\u5668\u4e5f\u90e8\u7f72\u4e86\u4eca\u6a80\u9879\u76ee\u3002\u7528\u6237\u901a\u8fc7\u516c\u7f51 HTTPS \u8bbf\u95ee&#xff0c;\u4f46\u8be5\u670d\u52a1\u5668\u7684 Nginx \u5b9e\u9645\u76d1\u542c\u5185\u90e8 HTTP 8082\u3002\u6b64\u524d\u4f7f\u7528\u7684\u914d\u7f6e\u662f&#xff1a;<\/p>\n<p>location &#061; \/IPESAgent {<br \/>\n    return 301 \/IPESAgent\/;<br \/>\n}<\/p>\n<p>\u4e3a\u4e86\u67e5\u770b\u6d4f\u89c8\u5668\u5b9e\u9645\u6536\u5230\u7684\u8df3\u8f6c\u5730\u5740&#xff0c;\u5728 Windows \u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u6267\u884c&#xff1a;<\/p>\n<p>curl<span class=\"token punctuation\">.<\/span>exe <span class=\"token operator\">&#8211;<\/span>k <span class=\"token operator\">&#8211;<\/span>sS <span class=\"token operator\">&#8211;<\/span>D <span class=\"token operator\">&#8211;<\/span> <span class=\"token operator\">&#8211;<\/span>o NUL <span class=\"token string\">&#034;https:\/\/itsgpt.njust.edu.cn\/IPESAgent&#034;<\/span><\/p>\n<p>\u7ed3\u679c\u867d\u7136\u8fd4\u56de 301 Moved Permanently&#xff0c;\u4f46\u5173\u952e\u7684 Location \u54cd\u5e94\u5934\u662f&#xff1a;<\/p>\n<p>Location: http:\/\/itsgpt.njust.edu.cn:8082\/IPESAgent\/<\/p>\n<p>\u95ee\u9898\u4e0d\u5728\u4e8e Nginx \u6ca1\u6709\u8865\u659c\u6760&#xff0c;\u800c\u5728\u4e8e\u5b83\u628a\u6d4f\u89c8\u5668\u8df3\u8f6c\u5230\u4e86\u5185\u90e8 HTTP 8082 \u5730\u5740\u3002\u6d4f\u89c8\u5668\u7ee7\u7eed\u8bbf\u95ee\u8fd9\u4e2a\u9519\u8bef\u5730\u5740\u540e&#xff0c;\u8fdb\u5165\u4e86\u6821\u56ed\u7f51\u7684 502 \u9519\u8bef\u9875\u3002<\/p>\n<p>\u4e3a\u4e86\u5bf9\u7167&#xff0c;\u518d\u68c0\u67e5\u77e5\u4ea7\u9879\u76ee\u4e0d\u5e26\u659c\u6760\u65f6\u7684\u54cd\u5e94&#xff0c;\u5e76\u901a\u8fc7 -L \u9a8c\u8bc1\u8df3\u8f6c\u540e\u7684\u9875\u9762&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u77e5\u4ea7\u9879\u76ee&#xff1a;\u67e5\u770b\u7b2c\u4e00\u6b21\u54cd\u5e94\u7684 Location<\/span><br \/>\ncurl<span class=\"token punctuation\">.<\/span>exe <span class=\"token operator\">&#8211;<\/span>k <span class=\"token operator\">&#8211;<\/span>sS <span class=\"token operator\">&#8211;<\/span>D <span class=\"token operator\">&#8211;<\/span> <span class=\"token operator\">&#8211;<\/span>o NUL <span class=\"token string\">&#034;https:\/\/itsgpt.njust.edu.cn\/IPAgent&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u77e5\u4ea7\u9879\u76ee&#xff1a;-L \u8868\u793a\u8ddf\u968f\u8df3\u8f6c&#xff0c;\u67e5\u770b\u6700\u7ec8\u54cd\u5e94<\/span><br \/>\ncurl<span class=\"token punctuation\">.<\/span>exe <span class=\"token operator\">&#8211;<\/span>k <span class=\"token operator\">&#8211;<\/span>L <span class=\"token operator\">&#8211;<\/span>sS <span class=\"token operator\">&#8211;<\/span>D <span class=\"token operator\">&#8211;<\/span> <span class=\"token operator\">&#8211;<\/span>o NUL <span class=\"token string\">&#034;https:\/\/itsgpt.njust.edu.cn\/IPAgent&#034;<\/span><\/p>\n<p>\u77e5\u4ea7\u9879\u76ee\u8fd4\u56de\u7684\u8df3\u8f6c\u5730\u5740\u662f\u6b63\u786e\u7684\u516c\u7f51 HTTPS \u5730\u5740&#xff1a;<\/p>\n<p>Location: https:\/\/itsgpt.njust.edu.cn\/IPAgent\/<\/p>\n<p>\u8ddf\u968f\u8df3\u8f6c\u540e&#xff0c;\u5b8c\u6574\u547d\u4ee4\u8f93\u51fa\u6700\u7ec8\u5f97\u5230 200 OK\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181747-6ad901cb56606.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe\u4e2d\u4e09\u4e2a\u547d\u4ee4\u7684\u6392\u67e5\u7ed3\u679c\u3002\u4e0a\u65b9\u662f\u4eca\u6a80\u9879\u76ee IPESAgent&#xff0c;\u5176 Location \u9519\u8bef\u5730\u6307\u5411\u5185\u90e8 HTTP :8082&#xff1b;\u4e2d\u95f4\u662f\u77e5\u4ea7\u9879\u76ee IPAgent&#xff0c;\u5176 Location \u6b63\u786e\u6307\u5411\u516c\u7f51 HTTPS \u5730\u5740&#xff1b;\u4e0b\u65b9\u4f7f\u7528 -L \u8ddf\u968f\u77e5\u4ea7\u9879\u76ee\u7684\u8df3\u8f6c\u3002\u622a\u56fe\u53ea\u663e\u793a\u4e86\u4e0b\u65b9\u547d\u4ee4\u7684\u524d\u4e00\u6bb5\u54cd\u5e94&#xff0c;\u5b8c\u6574\u8f93\u51fa\u7684\u6700\u7ec8\u7ed3\u679c\u4e3a 200 OK\u3002<\/p>\n<p>\u56e0\u6b64&#xff0c;\u672c\u5730 24 \u670d\u52a1\u5668\u4e0a\u7684\u4eca\u6a80\u9879\u76ee\u5e94\u660e\u786e\u5199\u51fa\u5b83\u81ea\u5df1\u7684\u516c\u7f51 HTTPS \u8df3\u8f6c\u5730\u5740&#xff1a;<\/p>\n<p>location &#061; \/IPESAgent {<br \/>\n    return 301 https:\/\/itsgpt.njust.edu.cn\/IPESAgent\/$is_args$args;<br \/>\n}<\/p>\n<h5>5.3.2 \u670d\u52a1\u7aef\u5df2\u7ecf\u4fee\u597d&#xff0c;\u666e\u901a\u6d4f\u89c8\u5668\u4ecd\u6253\u4e0d\u5f00\u600e\u4e48\u529e&#xff1f;<\/h5>\n<p>\u672c\u6b21\u4fee\u6539\u540e&#xff0c;\u77e5\u4ea7\u9879\u76ee\u7684 Location \u5df2\u6b63\u786e&#xff0c;curl -L \u6700\u7ec8\u8fd4\u56de 200 OK&#xff0c;\u65e0\u75d5\u6a21\u5f0f\u4e5f\u80fd\u8bbf\u95ee&#xff0c;\u4f46 Chrome \u666e\u901a\u6a21\u5f0f\u4ecd\u4e00\u5ea6\u5931\u8d25\u3002\u57fa\u672c\u53ef\u4ee5\u786e\u5b9a\u666e\u901a\u6a21\u5f0f\u4fdd\u7559\u4e86\u6b64\u524d\u9519\u8bef\u7684 301 \u8df3\u8f6c\u7f13\u5b58&#xff1b;\u65e0\u75d5\u7a97\u53e3\u4f7f\u7528\u72ec\u7acb\u7684\u6d4f\u89c8\u6570\u636e\u3002<\/p>\n<p>\u53ef\u4ee5\u5728 Chrome \u666e\u901a\u6a21\u5f0f\u4e2d\u6309\u4ee5\u4e0b\u6b65\u9aa4\u5904\u7406&#xff1a;<\/p>\n<li>\u6309 Ctrl &#043; Shift &#043; Delete&#xff0c;\u65f6\u95f4\u8303\u56f4\u9009 \u201c\u6240\u6709\u65f6\u95f4\u201d\u3002<\/li>\n<li>\u52fe\u9009 **\u201c\u7f13\u5b58\u7684\u56fe\u7247\u548c\u6587\u4ef6\u201d**\u5e76\u6e05\u9664\u3002\u53ef\u4ee5\u5148\u4e0d\u52fe\u9009 Cookie&#xff0c;\u907f\u514d\u9000\u51fa\u5176\u4ed6\u7f51\u7ad9\u7684\u767b\u5f55\u3002<\/li>\n<li>\u91cd\u65b0\u6253\u5f00\u6807\u7b7e\u9875&#xff0c;\u8f93\u5165\u5b8c\u6574\u5730\u5740 https:\/\/itsgpt.njust.edu.cn\/IPAgent&#xff0c;\u4e0d\u8981\u9009\u62e9\u5730\u5740\u680f\u4e2d\u53ef\u80fd\u4fdd\u7559\u7684\u65e7\u5730\u5740\u3002\u5177\u4f53\u5165\u53e3\u53ef\u53c2\u8003 Chrome \u6e05\u9664\u6d4f\u89c8\u6570\u636e\u8bf4\u660e\u3002<\/li>\n<p>\u5982\u679c\u4ecd\u6709\u95ee\u9898&#xff0c;\u6309 F12 \u2192 Network&#xff08;\u7f51\u7edc&#xff09;\u2192 \u52fe\u9009 Disable cache&#xff08;\u505c\u7528\u7f13\u5b58&#xff09;&#xff0c;\u4fdd\u6301\u5f00\u53d1\u8005\u5de5\u5177\u6253\u5f00\u540e\u91cd\u65b0\u8bbf\u95ee&#xff0c;\u68c0\u67e5\u7b2c\u4e00\u6761\u8bf7\u6c42\u7684 Location\u3002\u8be5\u9009\u9879\u53ea\u5728\u5f00\u53d1\u8005\u5de5\u5177\u6253\u5f00\u671f\u95f4\u751f\u6548&#xff0c;\u53c2\u89c1 Chrome DevTools \u7f51\u7edc\u9762\u677f\u8bf4\u660e\u3002<\/p>\n<p>\u6392\u67e5\u65f6\u4e0d\u80fd\u53ea\u770b\u662f\u5426\u8fd4\u56de 301&#xff0c;\u8fd8\u8981\u6838\u5bf9 Location \u4e2d\u7684\u534f\u8bae\u3001\u57df\u540d\u3001\u7aef\u53e3\u548c\u9879\u76ee\u8def\u5f84\u3002\u4ee5\u540e\u8c03\u8bd5\u5176\u4ed6\u9879\u76ee\u7684\u8df3\u8f6c\u89c4\u5219&#xff0c;\u53ef\u4ee5\u5148\u7528 302 \u4e34\u65f6\u8df3\u8f6c\u9a8c\u8bc1&#xff0c;\u786e\u8ba4\u6b63\u786e\u540e\u518d\u6539\u4e3a 301 \u6c38\u4e45\u8df3\u8f6c&#xff0c;\u51cf\u5c11\u6d4f\u89c8\u5668\u4fdd\u5b58\u9519\u8bef\u8df3\u8f6c\u5730\u5740\u7684\u53ef\u80fd\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001TLS \u7ec8\u6b62\u3001iframe \u4e0e\u4e0a\u7ebf\u9a8c\u8bc1<\/h3>\n<h4>6.1 \u80fd\u5426\u4e0d\u914d\u7f6e\u8bc1\u4e66\u76f4\u63a5\u8bbf\u95ee\u591a\u4e2a\u7cfb\u7edf<\/h4>\n<h5>6.1.1 \u5185\u5c42 Nginx \u53ef\u4ee5\u4e0d\u914d\u8bc1\u4e66&#xff0c;\u6700\u5916\u5c42\u4e0d\u80fd\u6ca1\u6709<\/h5>\n<p>\u5982\u56fe6\u6240\u793a&#xff0c;\u8bc1\u4e66\u4e0d\u4e00\u5b9a\u51fa\u73b0\u5728\u4e1a\u52a1 Nginx \u914d\u7f6e\u91cc\u3002\u53ea\u8981\u66f4\u5916\u5c42\u7684 IIS\u3001\u8d1f\u8f7d\u5747\u8861\u3001CDN \u6216\u7f51\u5173\u5df2\u7ecf\u5b8c\u6210 TLS \u7ec8\u6b62&#xff0c;\u5185\u5c42\u5c31\u53ef\u4ee5\u63a5\u6536\u8f6c\u53d1\u540e\u7684 HTTP&#xff1b;\u4f46\u7528\u6237\u8bbf\u95ee\u7684 HTTPS \u5165\u53e3\u5fc5\u7136\u9700\u8981\u4e00\u4e2a\u53ef\u4fe1\u8bc1\u4e66\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181749-6ad901cd19e66.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p> \u56fe6 IIS \u5b8c\u6210 TLS \u7ec8\u6b62\u540e\u7531 Nginx \u6309\u8def\u5f84\u5206\u53d1<\/p>\n<p>\u4e4b\u524d\u672c\u5730\u56fe\u4e66\u9986 IP \u540e\u7f00\u4e3a 24 \u7684\u670d\u52a1\u5668\u91c7\u7528 IIS &#043; Nginx \u53cc\u5c42\u67b6\u6784&#xff1a;<\/p>\n<p>\u6d4f\u89c8\u5668<br \/>\n  \u2192 https:\/\/itsgpt.njust.edu.cn<br \/>\n  \u2192 IIS \u76d1\u542c 443&#xff0c;\u5b89\u88c5 itsgpt.njust.edu.cn \u8bc1\u4e66<br \/>\n  \u2192 IIS \u628a\u89e3\u5bc6\u540e\u7684 HTTP \u8f6c\u7ed9\u672c\u673a Nginx<br \/>\n  \u2192 Nginx \u6309 \/IPAgent\/\u3001\/IPWeave\/ \u5206\u53d1<\/p>\n<p>\u6240\u4ee5\u5728\u90a3\u4efd Nginx \u914d\u7f6e\u4e2d\u770b\u4e0d\u5230&#xff1a;<\/p>\n<p>ssl_certificate &#8230;;<br \/>\nssl_certificate_key &#8230;;<\/p>\n<p>\u5e76\u4e0d\u4ee3\u8868\u6574\u4e2a\u7cfb\u7edf\u6ca1\u6709\u8bc1\u4e66&#xff0c;\u800c\u662f\u8bc1\u4e66\u5b89\u88c5\u5728 IIS \u4e0a\u3002IIS \u5b8c\u6210 SSL Termination&#xff08;TLS \u7ec8\u6b62&#xff09; \u540e&#xff0c;Nginx \u63a5\u6536\u5230\u7684\u5df2\u7ecf\u662f\u672c\u673a HTTP \u8bf7\u6c42\u3002<\/p>\n<p>\u540c\u4e00\u4e2a\u57df\u540d\u4e0b\u7684\u4ee5\u4e0b\u8def\u5f84\u90fd\u7531\u540c\u4e00\u5f20\u57df\u540d\u8bc1\u4e66\u4fdd\u62a4&#xff1a;<\/p>\n<p>https:\/\/itsgpt.njust.edu.cn\/<br \/>\nhttps:\/\/itsgpt.njust.edu.cn\/IPAgent\/<br \/>\nhttps:\/\/itsgpt.njust.edu.cn\/IPWeave\/<\/p>\n<p>\u8bc1\u4e66\u53ea\u5173\u5fc3 itsgpt.njust.edu.cn&#xff0c;\u4e0d\u5173\u5fc3\u540e\u9762\u7684\u8def\u5f84\u3002<\/p>\n<h5>6.1.2 \u5220\u9664 IIS \u8bc1\u4e66\u4f1a\u53d1\u751f\u4ec0\u4e48<\/h5>\n<p>\u5982\u679c\u4ecd\u7136\u8981\u6c42\u7528\u6237\u901a\u8fc7 https:\/\/itsgpt.njust.edu.cn \u8bbf\u95ee&#xff0c;\u5c31\u4e0d\u80fd\u5220\u6389\u6700\u5916\u5c42\u8bc1\u4e66\u3002\u5220\u9664\u540e&#xff0c;443 \u65e0\u6cd5\u63d0\u4f9b\u53ef\u4fe1\u7684 HTTPS \u670d\u52a1&#xff0c;\u6d4f\u89c8\u5668\u4f1a\u8fde\u63a5\u5931\u8d25\u6216\u63d0\u793a\u8bc1\u4e66\u9519\u8bef\u3002<\/p>\n<p>\u5982\u679c\u6539\u6210\u7eaf HTTP&#xff0c;\u6280\u672f\u4e0a\u53ef\u4ee5\u4e0d\u4f7f\u7528\u8bc1\u4e66&#xff0c;\u4f46\u4f1a\u5931\u53bb\u52a0\u5bc6\u3001\u8eab\u4efd\u8ba4\u8bc1\u548c\u5b8c\u6574\u6027\u4fdd\u62a4&#xff0c;\u4e5f\u4f1a\u91cd\u65b0\u9047\u5230 iframe \u6df7\u5408\u5185\u5bb9\u3001Secure Cookie \u548c\u5b89\u5168\u4e0a\u4e0b\u6587\u9650\u5236&#xff0c;\u56e0\u6b64\u4e0d\u9002\u5408\u751f\u4ea7\u767b\u5f55\u7cfb\u7edf\u3002<\/p>\n<h5>6.1.3 \u672c\u6587\u53cc\u670d\u52a1\u5668\u65b9\u6848\u4e2d\u7684\u8bc1\u4e66\u4f4d\u7f6e<\/h5>\n<p>\u5f53\u524d\u65b9\u6848\u4e2d\u7684\u8bc1\u4e66\u4f4d\u4e8e\u9700\u6c42\u65b9\u5b98\u7f51 Nginx&#xff1a;<\/p>\n<p>\u6d4f\u89c8\u5668 HTTPS<br \/>\n  \u2192 www.jintanfuture.com \u7684 Nginx \u548c\u8bc1\u4e66<br \/>\n  \u2192 HTTP \u53cd\u4ee3\u5230 119.45.157.27<\/p>\n<p>\u56e0\u6b64&#xff0c;\u963f\u91cc\u4e91 Nginx \u53ef\u4ee5\u6682\u65f6\u53ea\u76d1\u542c HTTP&#xff0c;\u4f46\u8fd9\u53ea\u4fdd\u8bc1\u201c\u6d4f\u89c8\u5668\u5230\u9700\u6c42\u65b9\u670d\u52a1\u5668\u201d\u8fd9\u4e00\u6bb5\u52a0\u5bc6\u3002<\/p>\n<hr \/>\n<h4>6.2 \u5f53\u524d\u65b9\u6848\u662f\u5426\u5c5e\u4e8e\u7aef\u5230\u7aef\u52a0\u5bc6<\/h4>\n<p>\u9700\u8981\u5982\u5b9e\u533a\u5206\u4e24\u6bb5\u94fe\u8def&#xff1a;<\/p>\n<p>\u6d4f\u89c8\u5668 \u2500\u2500HTTPS\u2500\u2500&gt; \u9700\u6c42\u65b9\u670d\u52a1\u5668 \u2500\u2500HTTP\u2500\u2500&gt; \u963f\u91cc\u4e91\u670d\u52a1\u5668<\/p>\n<p>\u7b2c\u4e00\u6bb5\u6709 TLS&#xff0c;\u7b2c\u4e8c\u6bb5\u5982\u679c\u7ecf\u8fc7\u516c\u7f51 HTTP&#xff0c;\u4ecd\u7136\u662f\u660e\u6587\u4f20\u8f93\u3002\u56e0\u6b64&#xff1a;<\/p>\n<ul>\n<li>\u5bf9\u6d4f\u89c8\u5668\u800c\u8a00&#xff0c;\u5730\u5740\u5b89\u5168\u3001\u4e0d\u4f1a\u51fa\u73b0\u6df7\u5408\u5185\u5bb9&#xff1b;<\/li>\n<li>\u5bf9\u670d\u52a1\u5668\u95f4\u94fe\u8def\u800c\u8a00&#xff0c;\u8fd8\u4e0d\u662f\u4e25\u683c\u610f\u4e49\u4e0a\u7684\u7aef\u5230\u7aef\u52a0\u5bc6\u3002<\/li>\n<\/ul>\n<p>\u751f\u4ea7\u73af\u5883\u53ef\u6309\u5b89\u5168\u8981\u6c42\u9009\u62e9\u4ee5\u4e0b\u65b9\u6848&#xff1a;<\/p>\n<li>\u63a8\u8350&#xff1a; \u4e3a\u963f\u91cc\u4e91\u6e90\u7ad9\u518d\u51c6\u5907\u6e90\u7ad9\u57df\u540d\u548c HTTPS \u8bc1\u4e66&#xff0c;\u5b98\u7f51\u4f7f\u7528 proxy_pass https:\/\/\u6e90\u7ad9\u57df\u540d&#xff1b;<\/li>\n<li>\u4e24\u53f0\u670d\u52a1\u5668\u901a\u8fc7 VPN\u3001\u4e13\u7ebf\u3001\u4e91\u4f01\u4e1a\u7f51\u6216 WireGuard \u8fde\u63a5&#xff0c;\u4ee3\u7406\u8d70\u79c1\u7f51\u5730\u5740&#xff1b;<\/li>\n<li>\u81f3\u5c11\u5728\u963f\u91cc\u4e91\u5b89\u5168\u7ec4\u4e2d\u4ec5\u5141\u8bb8\u9700\u6c42\u65b9\u670d\u52a1\u5668\u516c\u7f51 IP \u8bbf\u95ee\u6e90\u7ad9 80 \u7aef\u53e3&#xff1b;<\/li>\n<li>\u4f7f\u7528\u53cc\u5411 TLS&#xff0c;\u5bf9\u4e24\u7aef\u670d\u52a1\u5668\u90fd\u505a\u8eab\u4efd\u9a8c\u8bc1&#xff1b;<\/li>\n<li>\u5bf9\u767b\u5f55 Token\u3001\u654f\u611f\u6570\u636e\u548c\u7ba1\u7406\u63a5\u53e3\u8fdb\u884c\u989d\u5916\u5ba1\u8ba1\u3002<\/li>\n<p>\u5982\u679c\u6e90\u7ad9\u5347\u7ea7\u4e3a HTTPS&#xff0c;\u53ef\u53c2\u8003&#xff1a;<\/p>\n<p>location ^~ \/IPESAgent\/ {<br \/>\n    proxy_pass https:\/\/origin.example.com;<br \/>\n    proxy_ssl_server_name on;<br \/>\n    proxy_ssl_name origin.example.com;<br \/>\n    proxy_ssl_verify on;<br \/>\n    proxy_ssl_trusted_certificate \/etc\/nginx\/ca-bundle.crt;<br \/>\n}<\/p>\n<p>\u4e0d\u8981\u4e3a\u4e86\u201c\u770b\u8d77\u6765\u662f HTTPS\u201d\u800c\u5173\u95ed\u8bc1\u4e66\u9a8c\u8bc1&#xff0c;\u5426\u5219\u670d\u52a1\u5668\u95f4\u94fe\u8def\u4ecd\u53ef\u80fd\u53d7\u5230\u4e2d\u95f4\u4eba\u653b\u51fb\u3002<\/p>\n<hr \/>\n<h4>6.3 iframe \u5d4c\u5165\u65f6\u8fd8\u9700\u68c0\u67e5\u4ec0\u4e48<\/h4>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u9700\u6c42\u65b9\u5b98\u7f51\u53ef\u4ee5\u4f7f\u7528&#xff1a;<\/p>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>iframe<\/span><br \/>\n  <span class=\"token attr-name\">src<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>\/IPESAgent\/<span class=\"token punctuation\">&#034;<\/span><\/span><br \/>\n  <span class=\"token special-attr\"><span class=\"token attr-name\">style<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span><span class=\"token value css language-css\"><span class=\"token property\">width<\/span><span class=\"token punctuation\">:<\/span> 100%<span class=\"token punctuation\">;<\/span> <span class=\"token property\">height<\/span><span class=\"token punctuation\">:<\/span> 100vh<span class=\"token punctuation\">;<\/span> <span class=\"token property\">border<\/span><span class=\"token punctuation\">:<\/span> 0<\/span><span class=\"token punctuation\">&#034;<\/span><\/span><\/span><br \/>\n<span class=\"token punctuation\">&gt;<\/span><\/span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>iframe<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>\u5b83\u4e0e\u5b98\u7f51\u540c\u6e90&#xff0c;\u56e0\u6b64\u901a\u5e38\u5177\u6709\u4ee5\u4e0b\u4f18\u52bf&#xff1a;<\/p>\n<ul>\n<li>\u4e0d\u5c5e\u4e8e HTTPS \u9875\u9762\u5d4c\u5957 HTTP&#xff1b;<\/li>\n<li>\u4e0d\u9700\u8981\u6d4f\u89c8\u5668\u76f4\u63a5\u8de8\u57df\u8bbf\u95ee\u963f\u91cc\u4e91 IP&#xff1b;<\/li>\n<li>X-Frame-Options: SAMEORIGIN \u4ecd\u5141\u8bb8\u540c\u6e90 iframe&#xff1b;<\/li>\n<li>Cookie \u4e0d\u4f1a\u56e0\u4e3a\u7b2c\u4e09\u65b9 iframe \u7b56\u7565\u88ab\u76f4\u63a5\u9650\u5236&#xff1b;<\/li>\n<li>\u63a5\u53e3\u53ef\u4ee5\u4f7f\u7528\u540c\u6e90\u76f8\u5bf9\u8def\u5f84\u3002<\/li>\n<\/ul>\n<p>\u4f46\u4ecd\u9700\u68c0\u67e5&#xff1a;<\/p>\n<li>\u54cd\u5e94\u5934\u662f\u5426\u8bbe\u7f6e\u4e86 X-Frame-Options: DENY&#xff1b;<\/li>\n<li>CSP \u662f\u5426\u5305\u542b\u4e0d\u5141\u8bb8\u5f53\u524d\u9875\u9762\u7684 frame-ancestors&#xff1b;<\/li>\n<li>\u767b\u5f55\u540e\u662f\u5426\u8df3\u8f6c\u5230\u4e86\u5199\u6b7b\u7684 IP\u3001HTTP \u5730\u5740\u6216\u5176\u4ed6\u57df\u540d&#xff1b;<\/li>\n<li>Cookie \u7684 Domain\u3001Path\u3001Secure \u662f\u5426\u6b63\u786e&#xff1b;<\/li>\n<li>\u9875\u9762\u662f\u5426\u4f7f\u7528 window.top \u5f3a\u5236\u8df3\u51fa iframe&#xff1b;<\/li>\n<li>\u7a7a\u95f2\u8d85\u65f6\u91cd\u65b0\u767b\u5f55\u662f\u5426\u8df3\u5230\u4e86\u9519\u8bef\u7684 SSO \u5730\u5740\u3002<\/li>\n<p>\u5982\u679c iframe \u6807\u7b7e\u914d\u7f6e\u4e86 sandbox&#xff0c;\u8fd8\u8981\u6309\u5b9e\u9645\u529f\u80fd\u6388\u4e88\u6700\u5c0f\u5fc5\u8981\u6743\u9650&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>iframe<\/span><br \/>\n  <span class=\"token attr-name\">src<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>\/IPESAgent\/<span class=\"token punctuation\">&#034;<\/span><\/span><br \/>\n  <span class=\"token attr-name\">sandbox<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>allow-same-origin allow-scripts allow-forms allow-downloads allow-popups<span class=\"token punctuation\">&#034;<\/span><\/span><br \/>\n<span class=\"token punctuation\">&gt;<\/span><\/span><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>iframe<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>\u7f3a\u5c11 allow-scripts\u3001allow-forms \u6216 allow-same-origin \u65f6&#xff0c;\u5373\u4f7f Nginx \u5b8c\u5168\u6b63\u786e&#xff0c;\u4e5f\u53ef\u80fd\u51fa\u73b0\u65e0\u6cd5\u767b\u5f55\u3001\u811a\u672c\u4e0d\u6267\u884c\u6216\u5b58\u50a8\u4e0d\u53ef\u7528\u3002<\/p>\n<p>\u5982\u679c\u672a\u6765\u6539\u6210\u8de8\u57df iframe&#xff0c;\u5e94\u4f18\u5148\u4f7f\u7528 CSP \u7cbe\u786e\u6388\u6743&#xff1a;<\/p>\n<p>Content-Security-Policy: frame-ancestors https:\/\/www.jintanfuture.com;<\/p>\n<p>\u4e0d\u8981\u4f7f\u7528\u5141\u8bb8\u4efb\u610f\u6765\u6e90\u5d4c\u5165\u7684\u5bbd\u677e\u914d\u7f6e\u3002<\/p>\n<hr \/>\n<h4>6.4 \u4fee\u6539\u914d\u7f6e\u540e\u7684\u4e0a\u7ebf\u987a\u5e8f<\/h4>\n<h5>6.4.1 \u68c0\u67e5\u8bed\u6cd5<\/h5>\n<p>\u4e24\u53f0\u670d\u52a1\u5668\u5206\u522b\u6267\u884c&#xff1a;<\/p>\n<p>nginx <span class=\"token parameter variable\">-t<\/span><\/p>\n<p>\u770b\u5230\u4ee5\u4e0b\u4fe1\u606f\u624d\u8bf4\u660e\u8bed\u6cd5\u901a\u8fc7&#xff1a;<\/p>\n<p>syntax is ok<br \/>\ntest is successful<\/p>\n<h5>6.4.2 \u5e73\u6ed1\u91cd\u8f7d<\/h5>\n<p>nginx <span class=\"token parameter variable\">-s<\/span> reload<\/p>\n<p>\u6216&#xff1a;<\/p>\n<p>systemctl reload nginx<\/p>\n<p>\u4e0d\u8981\u5728\u6ca1\u6709\u9a8c\u8bc1\u914d\u7f6e\u7684\u60c5\u51b5\u4e0b\u76f4\u63a5\u505c\u6b62\u751f\u4ea7 Nginx\u3002<\/p>\n<h5>6.4.3 \u5206\u5c42\u9a8c\u8bc1<\/h5>\n<p>\u7b2c\u4e00\u5c42&#xff0c;\u9a8c\u8bc1\u963f\u91cc\u4e91\u6e90\u7ad9&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-I<\/span> http:\/\/119.45.157.27\/IPESAgent\/<\/p>\n<p>\u7b2c\u4e8c\u5c42&#xff0c;\u9a8c\u8bc1\u5b98\u7f51\u4ee3\u7406&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-I<\/span> https:\/\/www.jintanfuture.com\/IPESAgent\/<\/p>\n<p>\u7b2c\u4e09\u5c42&#xff0c;\u9a8c\u8bc1\u65e0\u5c3e\u659c\u6760\u8df3\u8f6c&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-I<\/span> https:\/\/www.jintanfuture.com\/IPESAgent<\/p>\n<p>\u9884\u671f\u8fd4\u56de 301&#xff0c;\u5e76\u5e26\u6709&#xff1a;<\/p>\n<p>Location: \/IPESAgent\/<\/p>\n<p>\u7b2c\u56db\u5c42&#xff0c;\u4ece\u6d4f\u89c8\u5668\u5f00\u53d1\u8005\u5de5\u5177\u68c0\u67e5&#xff1a;<\/p>\n<ul>\n<li>index.html \u662f\u5426\u4e3a 200&#xff1b;<\/li>\n<li>JS\/CSS \u662f\u5426\u4e3a 200&#xff0c;\u4e14\u54cd\u5e94\u7c7b\u578b\u6b63\u786e&#xff1b;<\/li>\n<li>\u8bf7\u6c42\u5730\u5740\u662f\u5426\u5168\u90e8\u4e3a HTTPS&#xff1b;<\/li>\n<li>\u63a5\u53e3\u662f\u5426\u8d70 \/IPESAgent-api\/&#xff1b;<\/li>\n<li>\u662f\u5426\u5b58\u5728 CORS\u3001Mixed Content\u3001CSP \u6216 Cookie \u62a5\u9519&#xff1b;<\/li>\n<li>\u767b\u5f55\u540e\u6700\u7ec8\u8def\u7531\u662f\u5426\u4e3a \/IPESAgent\/home \u6216\u9879\u76ee\u5b9e\u9645\u8def\u5f84\u3002<\/li>\n<\/ul>\n<h5>6.4.4 \u67e5\u770b\u4e24\u7aef\u65e5\u5fd7<\/h5>\n<p>\u9700\u6c42\u65b9\u670d\u52a1\u5668&#xff1a;<\/p>\n<p><span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/www\/wwwlogs\/www.jintanfuture.com.log<br \/>\n<span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/www\/wwwlogs\/www.jintanfuture.com.error.log<\/p>\n<p>\u963f\u91cc\u4e91\u670d\u52a1\u5668&#xff1a;<\/p>\n<p><span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/var\/log\/nginx\/ipesagent_access.log<br \/>\n<span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/var\/log\/nginx\/ipesagent_error.log<\/p>\n<p>\u5982\u679c\u5b98\u7f51\u65e5\u5fd7\u51fa\u73b0\u8bf7\u6c42&#xff0c;\u800c\u963f\u91cc\u4e91\u65e5\u5fd7\u6ca1\u6709&#xff0c;\u95ee\u9898\u5728\u5b98\u7f51\u4ee3\u7406\u6216\u7f51\u7edc\u5c42&#xff1b;\u5982\u679c\u963f\u91cc\u4e91\u5df2\u6536\u5230\u8bf7\u6c42\u4f46\u8fd4\u56de 404&#xff0c;\u5219\u91cd\u70b9\u68c0\u67e5\u6e90\u7ad9\u8def\u5f84\u548c try_files\u3002<\/p>\n<hr \/>\n<h4>6.5 \u5e38\u89c1\u72b6\u6001\u7801\u4e0e\u6392\u67e5\u65b9\u5411<\/h4>\n<table>\n<tr>\u73b0\u8c61\u5e38\u89c1\u539f\u56e0\u6392\u67e5\u91cd\u70b9<\/tr>\n<tbody>\n<tr>\n<td>301\/302 \u5faa\u73af<\/td>\n<td>\u4e24\u7aef\u91cd\u590d\u5f3a\u5236 HTTPS&#xff0c;\u6216\u9519\u8bef\u8bc6\u522b X-Forwarded-Proto<\/td>\n<td>\u68c0\u67e5\u8df3\u8f6c\u76ee\u6807\u548c\u4ee3\u7406\u5934<\/td>\n<\/tr>\n<tr>\n<td>403<\/td>\n<td>\u6587\u4ef6\u6743\u9650\u3001\u76ee\u5f55\u6743\u9650\u3001Nginx \u5b89\u5168\u89c4\u5219<\/td>\n<td>error.log\u3001\u8fd0\u884c\u7528\u6237\u3001\u654f\u611f\u76ee\u5f55\u89c4\u5219<\/td>\n<\/tr>\n<tr>\n<td>404<\/td>\n<td>\u9759\u6001\u6587\u4ef6\u8def\u5f84\u9519\u8bef\u3001\u524d\u7f00\u88ab\u5265\u79bb\u3001SPA \u672a\u56de\u9000<\/td>\n<td>base\u3001proxy_pass\u3001try_files<\/td>\n<\/tr>\n<tr>\n<td>502<\/td>\n<td>\u4e0a\u6e38\u65e0\u6cd5\u8fde\u63a5\u3001Host \u547d\u4e2d\u9519\u8bef\u865a\u62df\u4e3b\u673a\u3001\u540e\u7aef\u672a\u542f\u52a8<\/td>\n<td>\u7aef\u53e3\u3001\u9632\u706b\u5899\u3001\u6e90\u7ad9\u65e5\u5fd7\u3001Host<\/td>\n<\/tr>\n<tr>\n<td>504<\/td>\n<td>\u4e0a\u6e38\u5904\u7406\u8d85\u65f6<\/td>\n<td>proxy_read_timeout\u3001\u540e\u7aef\u8017\u65f6<\/td>\n<\/tr>\n<tr>\n<td>\u9875\u9762\u4e00\u76f4 Loading<\/td>\n<td>JS\/CSS \u5931\u8d25\u3001\u8d44\u6e90\u88ab\u6b63\u5219 location \u622a\u83b7\u3001\u65e7\u7f13\u5b58<\/td>\n<td>Network \u9762\u677f\u3001^~\u3001\u8d44\u6e90\u54cd\u5e94\u7c7b\u578b<\/td>\n<\/tr>\n<tr>\n<td>\u767b\u5f55\u6210\u529f\u4f46\u4e0d\u8df3\u8f6c<\/td>\n<td>Token\/Cookie \u672a\u4fdd\u5b58\u3001\u63a5\u53e3\u5730\u5740\u9519\u8bef\u3001\u8def\u7531 base \u9519\u8bef<\/td>\n<td>Application\u3001Network\u3001Console<\/td>\n<\/tr>\n<tr>\n<td>SSE \u4e00\u6b21\u6027\u8fd4\u56de<\/td>\n<td>Nginx \u7f13\u51b2\u4e86\u6d41\u5f0f\u54cd\u5e94<\/td>\n<td>proxy_buffering off\u3001X-Accel-Buffering<\/td>\n<\/tr>\n<tr>\n<td>iframe \u7a7a\u767d\u6216\u88ab\u62d2\u7edd<\/td>\n<td>Mixed Content\u3001X-Frame-Options\u3001CSP<\/td>\n<td>Console \u548c\u54cd\u5e94\u5934<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7279\u522b\u6ce8\u610f&#xff1a;\u6d4f\u89c8\u5668\u663e\u793a\u7684 Loading \u6587\u6848\u53ea\u662f\u9759\u6001 HTML \u5df2\u7ecf\u52a0\u8f7d\u7684\u8bc1\u660e&#xff0c;\u4e0d\u4ee3\u8868 Vue \u5e94\u7528\u5df2\u7ecf\u6b63\u5e38\u542f\u52a8\u3002<\/p>\n<hr \/>\n<h4>6.6 \u7f13\u5b58\u3001Cookie \u4e0e\u7edd\u5bf9\u91cd\u5b9a\u5411<\/h4>\n<h5>6.6.1 \u907f\u514d\u7f13\u5b58\u65e7\u7684 index.html<\/h5>\n<p>Vue \u6784\u5efa\u540e\u7684 JS\/CSS \u901a\u5e38\u5e26 hash&#xff0c;\u53ef\u4ee5\u957f\u671f\u7f13\u5b58&#xff1b;index.html \u5219\u4e0d\u5e94\u957f\u671f\u7f13\u5b58\u3002\u5426\u5219\u53d1\u5e03\u65b0\u7248\u672c\u540e&#xff0c;\u6d4f\u89c8\u5668\u53ef\u80fd\u7ee7\u7eed\u8bfb\u53d6\u65e7 HTML&#xff0c;\u800c\u65e7 HTML \u5f15\u7528\u7684\u8d44\u6e90\u5df2\u7ecf\u88ab\u5220\u9664\u3002<\/p>\n<p>\u63a8\u8350\u7b56\u7565&#xff1a;<\/p>\n<p>index.html&#xff1a;no-cache<br \/>\n\u5e26 hash \u7684 JS\/CSS&#xff1a;\u957f\u7f13\u5b58<\/p>\n<h5>6.6.2 Cookie \u57df\u540d\u4e0e\u8def\u5f84<\/h5>\n<p>\u5982\u679c\u4e0a\u6e38\u63a5\u53e3\u8fd4\u56de&#xff1a;<\/p>\n<p>Set-Cookie: token&#061;&#8230;; Domain&#061;119.45.157.27<\/p>\n<p>\u6d4f\u89c8\u5668\u901a\u8fc7 www.jintanfuture.com \u8bbf\u95ee\u65f6\u4e0d\u4f1a\u628a\u5b83\u5f53\u4f5c\u5f53\u524d\u57df\u540d Cookie\u3002\u66f4\u63a8\u8350\u540e\u7aef\u4f7f\u7528\u4e0d\u5199\u6b7b Domain \u7684 host-only Cookie\u3002<\/p>\n<p>\u53cd\u5411\u4ee3\u7406\u540e&#xff0c;\u5b98\u7f51\u4e0e IPESAgent \u5171\u4eab\u540c\u4e00\u4e2a\u57df\u540d\u3002\u8fd8\u5e94\u68c0\u67e5\u53cc\u65b9\u662f\u5426\u4f7f\u7528\u4e86\u76f8\u540c\u540d\u79f0\u7684 Token Cookie&#xff0c;\u4f8b\u5982\u90fd\u53eb Admin-Token\u3002\u540c\u540d Cookie \u53ef\u80fd\u4e92\u76f8\u8986\u76d6&#xff0c;\u6700\u597d\u4e3a\u4e0d\u540c\u7cfb\u7edf\u8bbe\u7f6e\u4e13\u7528\u540d\u79f0\u548c\u5408\u9002\u7684 Path\u3002<\/p>\n<p>\u786e\u5b9e\u65e0\u6cd5\u4fee\u6539\u540e\u7aef\u65f6&#xff0c;\u53ef\u8c28\u614e\u4f7f\u7528&#xff1a;<\/p>\n<p>proxy_cookie_domain 119.45.157.27 www.jintanfuture.com;<\/p>\n<p>\u53ea\u6709\u786e\u8ba4\u4e0a\u6e38\u771f\u7684\u5199\u6b7b\u4e86 Domain \u624d\u9700\u8981\u589e\u52a0&#xff0c;\u4e0d\u8981\u76f2\u76ee\u914d\u7f6e\u3002<\/p>\n<h5>6.6.3 \u7edd\u5bf9\u8df3\u8f6c\u5730\u5740<\/h5>\n<p>\u5982\u679c\u6e90\u7ad9\u54cd\u5e94&#xff1a;<\/p>\n<p>Location: http:\/\/119.45.157.27\/IPESAgent\/login<\/p>\n<p>\u6d4f\u89c8\u5668\u4f1a\u79bb\u5f00\u5b98\u7f51\u57df\u540d\u3002\u4f18\u5148\u4fee\u6539\u5e94\u7528&#xff0c;\u8ba9\u5b83\u6839\u636e X-Forwarded-Host \u548c X-Forwarded-Proto \u751f\u6210\u6b63\u786e\u5730\u5740&#xff1b;\u4e34\u65f6\u4e5f\u53ef\u4f7f\u7528 proxy_redirect \u505a\u5b9a\u5411\u66ff\u6362\u3002<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<h4>7.1 \u4e0a\u7ebf\u540e\u5fc5\u987b\u8865\u9f50\u7684\u5b89\u5168\u8fb9\u754c<\/h4>\n<p>\u5b8c\u6210\u201c\u80fd\u8bbf\u95ee\u201d\u53ea\u662f\u7b2c\u4e00\u6b65&#xff0c;\u751f\u4ea7\u73af\u5883\u8fd8\u8981\u8865\u9f50\u4ee5\u4e0b\u8fb9\u754c&#xff1a;<\/p>\n<li>\u963f\u91cc\u4e91\u5b89\u5168\u7ec4\u53ea\u5141\u8bb8\u9700\u6c42\u65b9\u670d\u52a1\u5668\u8bbf\u95ee\u6e90\u7ad9 HTTP \u7aef\u53e3&#xff1b;<\/li>\n<li>\u6700\u7ec8\u5c06\u9700\u6c42\u65b9\u5230\u963f\u91cc\u4e91\u7684\u516c\u7f51\u94fe\u8def\u5347\u7ea7\u4e3a HTTPS \u6216\u79c1\u7f51\u96a7\u9053&#xff1b;<\/li>\n<li>\u4ec5\u542f\u7528 TLS 1.2 \u548c TLS 1.3&#xff0c;\u4e0d\u518d\u542f\u7528 TLS 1.0\/1.1&#xff1b;<\/li>\n<li>HTTPS \u5168\u9762\u9a8c\u8bc1\u540e\u518d\u914d\u7f6e HSTS&#xff0c;\u8c28\u614e\u4f7f\u7528 includeSubDomains&#xff1b;<\/li>\n<li>\u8bc1\u4e66\u548c\u79c1\u94a5\u6587\u4ef6\u4ec5\u5141\u8bb8 Nginx \u4e3b\u8fdb\u7a0b\u8bfb\u53d6&#xff1b;<\/li>\n<li>\u4e0a\u4f20\u63a5\u53e3\u8bbe\u7f6e\u5408\u7406\u7684 client_max_body_size&#xff0c;\u4e0d\u8981\u65e0\u9650\u653e\u5927&#xff1b;<\/li>\n<li>\u767b\u5f55\u63a5\u53e3\u589e\u52a0\u9650\u6d41\u3001\u5931\u8d25\u5ba1\u8ba1\u548c\u5f02\u5e38\u544a\u8b66&#xff1b;<\/li>\n<li>\u65e5\u5fd7\u4e2d\u907f\u514d\u8bb0\u5f55 Token\u3001\u5bc6\u7801\u548c\u654f\u611f\u8bf7\u6c42\u4f53&#xff1b;<\/li>\n<li>\u5b9a\u671f\u68c0\u67e5\u8bc1\u4e66\u5230\u671f\u65f6\u95f4\u548c\u81ea\u52a8\u7eed\u671f\u4efb\u52a1&#xff1b;<\/li>\n<li>\u901a\u8fc7 CSP \u7684 frame-ancestors \u7cbe\u786e\u63a7\u5236\u8c01\u53ef\u4ee5\u5d4c\u5165\u7cfb\u7edf&#xff1b;<\/li>\n<li>\u4e0d\u5bf9\u5916\u66b4\u9732\u4e0d\u9700\u8981\u7684\u7ba1\u7406\u7aef\u53e3\u548c\u540e\u7aef\u7aef\u53e3&#xff1b;<\/li>\n<li>\u6e90\u7ad9\u8bbe\u7f6e\u5065\u5eb7\u68c0\u67e5\u548c\u76d1\u63a7&#xff0c;\u53ca\u65f6\u53d1\u73b0 502\/504\u3002<\/li>\n<hr \/>\n<h4>7.2 \u51e0\u4e2a\u5bb9\u6613\u6df7\u6dc6\u7684\u95ee\u9898<\/h4>\n<h5>7.2.1 \u57df\u540d\u8def\u5f84\u662f\u5426\u610f\u5473\u7740\u9879\u76ee\u90e8\u7f72\u5728\u5b98\u7f51\u670d\u52a1\u5668<\/h5>\n<p>\u4e0d\u4e00\u5b9a\u3002\u6d4f\u89c8\u5668\u770b\u5230\u7684\u662f\u5165\u53e3\u5730\u5740&#xff0c;\u771f\u5b9e\u9759\u6001\u6587\u4ef6\u5b8c\u5168\u53ef\u4ee5\u5728\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u3002\u53cd\u5411\u4ee3\u7406\u5c4f\u853d\u4e86\u5185\u90e8\u90e8\u7f72\u7ec6\u8282\u3002<\/p>\n<h5>7.2.2 \u5b98\u7f51\u5df2\u6709\u8bc1\u4e66&#xff0c;\u963f\u91cc\u4e91\u662f\u5426\u8fd8\u5fc5\u987b\u5b89\u88c5<\/h5>\n<p>\u5982\u679c\u53ea\u8981\u6c42\u6d4f\u89c8\u5668\u5230\u5b98\u7f51\u5165\u53e3\u4f7f\u7528 HTTPS&#xff0c;\u963f\u91cc\u4e91\u53ef\u4ee5\u6682\u65f6\u4e0d\u5b89\u88c5&#xff1b;\u5982\u679c\u8981\u6c42\u4e24\u53f0\u670d\u52a1\u5668\u4e4b\u95f4\u4e5f\u52a0\u5bc6&#xff0c;\u5219\u963f\u91cc\u4e91\u6e90\u7ad9\u4e5f\u9700\u8981 HTTPS&#xff0c;\u6216\u901a\u8fc7\u53ef\u4fe1\u79c1\u7f51\/VPN \u901a\u4fe1\u3002<\/p>\n<h5>7.2.3 \u540c\u4e00\u4e2a\u57df\u540d\u80fd\u5426\u8bbf\u95ee\u591a\u4e2a\u7cfb\u7edf<\/h5>\n<p>\u53ef\u4ee5\u3002\u8bc1\u4e66\u8986\u76d6\u4e3b\u673a\u540d&#xff0c;Nginx \u6839\u636e\u8def\u5f84\u5206\u53d1&#xff1a;<\/p>\n<p>\/IPESAgent\/ \u2192 \u7cfb\u7edf A<br \/>\n\/IPAgent\/   \u2192 \u7cfb\u7edf B<br \/>\n\/IPWeave\/   \u2192 \u7cfb\u7edf C<\/p>\n<p>\u6bcf\u4e2a\u7cfb\u7edf\u90fd\u5fc5\u987b\u914d\u7f6e\u72ec\u7acb\u3001\u660e\u786e\u7684\u8def\u5f84\u524d\u7f00\u548c SPA \u56de\u9000\u3002<\/p>\n<h5>7.2.4 \u662f\u5426\u9700\u8981\u914d\u7f6e CORS<\/h5>\n<p>\u5982\u679c\u9875\u9762\u548c\u63a5\u53e3\u90fd\u901a\u8fc7 https:\/\/www.jintanfuture.com \u7684\u76f8\u5bf9\u8def\u5f84\u8bbf\u95ee&#xff0c;\u6d4f\u89c8\u5668\u89c6\u89d2\u662f\u540c\u6e90&#xff0c;\u901a\u5e38\u4e0d\u9700\u8981\u989d\u5916 CORS\u3002\u53cd\u5411\u4ee3\u7406\u53d1\u751f\u5728\u670d\u52a1\u5668\u5185\u90e8&#xff0c;\u4e0d\u5c5e\u4e8e\u6d4f\u89c8\u5668\u8de8\u57df\u3002<\/p>\n<h5>7.2.5 \u4e3a\u4f55\u76f4\u63a5\u8bbf\u95ee IP \u6b63\u5e38&#xff0c;\u57df\u540d\u4ee3\u7406\u5374\u5f02\u5e38<\/h5>\n<p>\u76f4\u63a5\u8bbf\u95ee\u53ea\u7ecf\u8fc7\u963f\u91cc\u4e91 Nginx&#xff1b;\u57df\u540d\u8bbf\u95ee\u591a\u7ecf\u8fc7\u4e00\u5c42\u5b98\u7f51 Nginx\u3002\u65b0\u589e\u7684\u4e00\u5c42\u53ef\u80fd\u6539\u53d8 URI\u3001Host\u3001\u534f\u8bae\u5934\u3001Cookie\u3001\u54cd\u5e94\u7f13\u51b2\u548c\u7f13\u5b58\u89c4\u5219&#xff0c;\u56e0\u6b64\u5fc5\u987b\u9010\u5c42\u9a8c\u8bc1\u3002<\/p>\n<h5>7.2.6 \u4e3a\u4f55\u65e0\u659c\u6760\u5730\u5740\u6709\u65f6\u4e5f\u80fd\u8bbf\u95ee<\/h5>\n<p>\u56e0\u4e3a\u914d\u7f6e\u589e\u52a0\u4e86\u7cbe\u786e\u91cd\u5b9a\u5411&#xff0c;\u6216 Nginx \u5bf9\u7279\u5b9a\u7ed3\u5c3e\u4e3a \/ \u7684\u4ee3\u7406 location \u81ea\u52a8\u8fd4\u56de 301 \u8865\u659c\u6760\u3002\u5efa\u8bae\u4ecd\u663e\u5f0f\u4fdd\u7559&#xff1a;<\/p>\n<p>location &#061; \/IPESAgent {<br \/>\n    return 301 \/IPESAgent\/;<br \/>\n}<\/p>\n<hr \/>\n<h4>7.3 \u914d\u7f6e\u53d8\u66f4\u4e2d\u7684\u9ad8\u9891\u8bef\u533a<\/h4>\n<p>\u4e0d\u8981\u5728\u6ca1\u6709\u5907\u4efd\u7684\u60c5\u51b5\u4e0b\u76f4\u63a5\u8986\u76d6\u5b9d\u5854\u9762\u677f\u751f\u6210\u7684\u5b8c\u6574 server \u5757\u3002 \u9762\u677f\u53ef\u80fd\u901a\u8fc7 include \u7ba1\u7406\u8bc1\u4e66\u9a8c\u8bc1\u3001PHP\u3001\u4f2a\u9759\u6001\u548c\u5b89\u5168\u89c4\u5219\u3002\u7a33\u59a5\u505a\u6cd5\u662f\u5728\u786e\u8ba4\u5305\u542b\u5173\u7cfb\u540e&#xff0c;\u53ea\u6539\u4e1a\u52a1\u76f8\u5173 location&#xff0c;\u6267\u884c nginx -t&#xff0c;\u518d\u5e73\u6ed1\u91cd\u8f7d\u3002\u9762\u677f\u540e\u7eed\u4fdd\u5b58\u914d\u7f6e\u65f6\u4e5f\u8981\u590d\u67e5&#xff0c;\u907f\u514d\u81ea\u5b9a\u4e49\u6bb5\u843d\u88ab\u8986\u76d6\u3002<\/p>\n<p>\u4e0d\u8981\u7528\u6269\u5927\u6743\u9650\u63a9\u76d6 403\u3002 \u9759\u6001\u76ee\u5f55\u53ea\u9700\u8ba9 Nginx \u8fd0\u884c\u7528\u6237\u5177\u5907\u9010\u7ea7\u8bfb\u53d6\u6743\u9650&#xff1b;\u628a\u76ee\u5f55\u6539\u6210 777 \u4f1a\u5236\u9020\u989d\u5916\u98ce\u9669\u3002403 \u8981\u7ed3\u5408 error_log \u5224\u65ad\u662f\u6587\u4ef6\u6743\u9650\u3001\u76ee\u5f55\u6267\u884c\u6743\u9650\u3001SELinux\u3001\u9762\u677f\u5b89\u5168\u89c4\u5219&#xff0c;\u8fd8\u662f\u8bf7\u6c42\u843d\u5230\u4e86\u9519\u8bef\u865a\u62df\u4e3b\u673a\u3002<\/p>\n<p>\u4e0d\u8981\u5bf9\u6240\u6709\u54cd\u5e94\u7edf\u4e00\u957f\u7f13\u5b58\u3002 \u5e26 hash \u7684 JS\/CSS \u53ef\u4ee5\u957f\u7f13\u5b58&#xff0c;index.html \u5e94\u4fdd\u6301 no-cache\u3002\u5982\u679c\u5165\u53e3 HTML \u88ab\u7f13\u5b58&#xff0c;\u53d1\u5e03\u540e\u5b83\u4ecd\u53ef\u80fd\u5f15\u7528\u5df2\u7ecf\u5220\u9664\u7684\u65e7\u6587\u4ef6&#xff0c;\u770b\u8d77\u6765\u5c31\u50cf\u201c\u670d\u52a1\u5668\u660e\u660e\u90e8\u7f72\u6210\u529f&#xff0c;\u90e8\u5206\u7528\u6237\u5374\u4e00\u76f4 Loading\u201d\u3002<\/p>\n<p>\u4e0d\u8981\u770b\u5230 502 \u5c31\u6539\u524d\u7aef\u3002 502 \u8868\u793a\u5f53\u524d\u4ee3\u7406\u6ca1\u6709\u4ece\u4e0a\u6e38\u83b7\u5f97\u6709\u6548\u54cd\u5e94&#xff0c;\u6392\u67e5\u7aef\u53e3\u76d1\u542c\u3001\u9632\u706b\u5899\u3001\u5b89\u5168\u7ec4\u3001\u8def\u7531\u3001DNS\u3001Host \u548c\u4e0a\u6e38\u65e5\u5fd7&#xff1b;\u524d\u7aef\u4ee3\u7801\u8fd8\u6ca1\u6709\u673a\u4f1a\u5904\u7406\u8fd9\u4e2a\u72b6\u6001\u3002\u82e5\u53ea\u6709 \/IPAgent \u62a5 502\u3001\/IPAgent\/ \u6b63\u5e38&#xff0c;\u4f18\u5148\u68c0\u67e5\u7cbe\u786e\u8df3\u8f6c\u4e0e location \u547d\u4e2d&#xff0c;\u800c\u4e0d\u662f\u4fee\u6539 Vue Router\u3002<\/p>\n<p>\u4e0d\u8981\u8fc7\u65e9\u5f00\u542f\u957f\u671f HSTS\u3002 \u7b49 HTTPS\u3001\u5b50\u57df\u540d\u548c\u56de\u6eda\u65b9\u6848\u5168\u90e8\u9a8c\u8bc1\u540e\u518d\u9010\u6b65\u52a0\u957f max-age\u3002\u5e26 includeSubDomains \u7684\u957f\u671f\u7b56\u7565\u4f1a\u5f71\u54cd\u6240\u6709\u5b50\u57df&#xff0c;\u914d\u7f6e\u5931\u8bef\u540e\u6d4f\u89c8\u5668\u4ecd\u4f1a\u5f3a\u5236 HTTPS&#xff0c;\u56de\u6eda\u5e76\u4e0d\u5373\u65f6\u3002<\/p>\n<h4>7.4 \u7248\u672c\u4e0e\u534f\u8bae\u517c\u5bb9\u68c0\u67e5<\/h4>\n<p>\u672c\u6587\u5b98\u7f51\u793a\u4f8b\u53ea\u542f\u7528 TLS 1.2 \u548c TLS 1.3\u3002\u65e7\u914d\u7f6e\u4e2d\u7684 TLS 1.1 \u5df2\u4e0d\u9002\u5408\u65b0\u751f\u4ea7\u5165\u53e3\u3002http2 on; \u7684\u5199\u6cd5\u4e0e Nginx \u7248\u672c\u6709\u5173&#xff1b;\u82e5\u8fd0\u884c\u7248\u672c\u4e0d\u652f\u6301&#xff0c;\u5e94\u6309\u8be5\u7248\u672c\u6587\u6863\u4f7f\u7528 listen 443 ssl http2;\u3002\u5728\u590d\u5236\u914d\u7f6e\u4e4b\u524d\u5148\u6267\u884c nginx -V&#xff0c;\u786e\u8ba4\u7f16\u8bd1\u6a21\u5757\u4e0e\u5b9e\u9645\u7248\u672c&#xff0c;\u4e0d\u8981\u5047\u8bbe\u6240\u6709\u670d\u52a1\u5668\u8bed\u6cd5\u76f8\u540c\u3002<\/p>\n<p>SSE \u4e0e WebSocket \u4e5f\u4e0d\u662f\u540c\u4e00\u79cd\u534f\u8bae\u3002SSE \u9700\u8981\u5173\u95ed\u4ee3\u7406\u7f13\u51b2\u5e76\u5ef6\u957f\u8bfb\u53d6\u8d85\u65f6&#xff1b;WebSocket \u9700\u8981 HTTP\/1.1 \u4ee5\u53ca\u6b63\u786e\u7684 Upgrade\u3001Connection \u5934\u3002\u9879\u76ee\u6ca1\u6709\u5bf9\u5e94\u529f\u80fd\u65f6\u65e0\u9700\u5806\u6ee1\u914d\u7f6e&#xff0c;\u6709\u5bf9\u5e94\u529f\u80fd\u65f6\u5219\u8981\u5355\u72ec\u505a\u6301\u7eed\u8fde\u63a5\u6d4b\u8bd5\u3002<\/p>\n<p>\u622a\u81f3 2026 \u5e74&#xff0c;Let\u2019s Encrypt \u5df2\u516c\u5f00\u63d0\u4f9b\u77ed\u5468\u671f IP \u5730\u5740\u8bc1\u4e66&#xff0c;\u4f46\u8fd9\u4e0d\u7b49\u4e8e\u6240\u6709\u65e7\u7248 Certbot\u3001\u9762\u677f\u548c\u81ea\u52a8\u7eed\u671f\u811a\u672c\u90fd\u5df2\u517c\u5bb9\u3002\u5e38\u89c4\u4e1a\u52a1\u7cfb\u7edf\u4ecd\u4f18\u5148\u4f7f\u7528\u57df\u540d\u8bc1\u4e66\u3002\u80fd\u7b7e\u53d1 IP \u8bc1\u4e66&#xff0c;\u4e0e\u8be5\u65b9\u6848\u662f\u5426\u9002\u5408\u751f\u4ea7\u8fd0\u7ef4&#xff0c;\u662f\u4e24\u4e2a\u4e0d\u540c\u95ee\u9898\u3002<\/p>\n<h3>\u516b\u3001\u672c\u6587\u603b\u7ed3<\/h3>\n<h4>8.1 \u672c\u6b21\u6539\u9020\u5f97\u5230\u7684\u7ed3\u679c<\/h4>\n<p>\u672c\u6b21\u6539\u9020\u628a&#xff1a;<\/p>\n<p>http:\/\/119.45.157.27\/IPESAgent\/<\/p>\n<p>\u8f6c\u6362\u6210\u4e86\u9762\u5411\u7528\u6237\u7684\u7edf\u4e00\u5b89\u5168\u5165\u53e3&#xff1a;<\/p>\n<p>https:\/\/www.jintanfuture.com\/IPESAgent\/<\/p>\n<p>\u6700\u7ec8\u5e76\u6ca1\u6709\u8fc1\u79fb IPESAgent&#xff0c;\u4e5f\u6ca1\u6709\u7ed9\u6bcf\u4e2a\u8def\u5f84\u5355\u72ec\u7533\u8bf7\u8bc1\u4e66&#xff0c;\u800c\u662f\u5229\u7528\u9700\u6c42\u65b9\u73b0\u6709\u57df\u540d\u548c\u8bc1\u4e66&#xff0c;\u5728\u5b98\u7f51 Nginx \u4e2d\u589e\u52a0\u8def\u5f84\u53cd\u5411\u4ee3\u7406\u3002<\/p>\n<h4>8.2 \u53ef\u4ee5\u8fc1\u79fb\u5230\u5176\u4ed6\u9879\u76ee\u7684\u5224\u65ad\u65b9\u6cd5<\/h4>\n<p>\u6574\u4e2a\u95ee\u9898\u6700\u503c\u5f97\u8bb0\u4f4f\u7684\u4e0d\u662f\u67d0\u4e00\u884c\u914d\u7f6e&#xff0c;\u800c\u662f\u4ee5\u4e0b\u601d\u8def&#xff1a;<\/p>\n<li>\u5148\u753b\u6e05\u6d4f\u89c8\u5668\u3001\u5165\u53e3\u670d\u52a1\u5668\u3001\u6e90\u7ad9\u548c\u540e\u7aef\u4e4b\u95f4\u7684\u94fe\u8def&#xff1b;<\/li>\n<li>\u660e\u786e\u54ea\u4e00\u5c42\u8d1f\u8d23 TLS \u7ec8\u6b62&#xff0c;\u8bc1\u4e66\u5c31\u914d\u7f6e\u5728\u54ea\u4e00\u5c42&#xff1b;<\/li>\n<li>\u4e8c\u7ea7\u8def\u5f84\u90e8\u7f72\u5fc5\u987b\u8ba9 Vue base\u3001Nginx location \u548c\u63a5\u53e3\u524d\u7f00\u4fdd\u6301\u4e00\u81f4&#xff1b;<\/li>\n<li>\u4ee3\u7406\u4e8c\u7ea7\u8def\u5f84\u65f6\u5fc5\u987b\u7406\u89e3 proxy_pass \u662f\u5426\u643a\u5e26 URI&#xff1b;<\/li>\n<li>\u5b98\u7f51\u5df2\u6709\u6b63\u5219\u9759\u6001\u8d44\u6e90\u89c4\u5219\u65f6&#xff0c;\u4e1a\u52a1\u524d\u7f00\u4f7f\u7528 ^~ \u9632\u6b62\u88ab\u622a\u83b7&#xff1b;<\/li>\n<li>\u6d4f\u89c8\u5668\u53ea\u8bbf\u95ee HTTPS \u540c\u6e90\u8def\u5f84&#xff0c;\u907f\u514d HTTP iframe \u548c\u63a5\u53e3\u6df7\u5408\u5185\u5bb9&#xff1b;<\/li>\n<li>\u201c\u6d4f\u89c8\u5668\u5230\u5165\u53e3 HTTPS\u201d\u4e0d\u7b49\u4e8e\u201c\u5165\u53e3\u5230\u6e90\u7ad9\u4e5f\u52a0\u5bc6\u201d&#xff1b;<\/li>\n<li>IIS \u6216 Nginx \u914d\u7f6e\u91cc\u770b\u4e0d\u5230\u8bc1\u4e66&#xff0c;\u4e0d\u4ee3\u8868\u7cfb\u7edf\u6ca1\u6709\u8bc1\u4e66&#xff0c;\u8bc1\u4e66\u53ef\u80fd\u4f4d\u4e8e\u66f4\u5916\u5c42\u4ee3\u7406&#xff1b;<\/li>\n<li>\u6392\u969c\u5fc5\u987b\u9010\u5c42\u67e5\u770b\u8bf7\u6c42\u3001\u54cd\u5e94\u3001\u65e5\u5fd7\u548c\u72b6\u6001\u7801&#xff0c;\u4e0d\u80fd\u53ea\u770b\u9875\u9762\u6587\u6848\u3002<\/li>\n<p>\u901a\u8fc7\u8fd9\u5957\u65b9\u5f0f&#xff0c;\u5b98\u7f51\u3001\u5d4c\u5165\u9875\u9762\u548c\u4e1a\u52a1\u7cfb\u7edf\u53ef\u4ee5\u7edf\u4e00\u4f7f\u7528 HTTPS \u57df\u540d&#xff0c;\u540c\u65f6\u4fdd\u7559\u4e24\u53f0\u670d\u52a1\u5668\u72ec\u7acb\u90e8\u7f72\u3001\u72ec\u7acb\u7ef4\u62a4\u7684\u80fd\u529b\u3002\u5355\u670d\u52a1\u5668\u9002\u5408\u7cfb\u7edf\u90fd\u7531\u540c\u4e00\u56e2\u961f\u7ba1\u7406\u3001\u6587\u4ef6\u53ef\u653e\u5728\u540c\u4e00\u4e3b\u673a\u7684\u60c5\u51b5&#xff1b;\u53cc\u670d\u52a1\u5668\u53cd\u5411\u4ee3\u7406\u9002\u5408\u57df\u540d\u5165\u53e3\u4e0e\u4e1a\u52a1\u6e90\u7ad9\u5206\u5c5e\u4e0d\u540c\u56e2\u961f\u3001\u4e0d\u80fd\u8fc1\u79fb\u90e8\u7f72\u7684\u60c5\u51b5\u3002\u5982\u679c\u670d\u52a1\u5668\u95f4\u4f20\u8f93\u654f\u611f\u6570\u636e&#xff0c;\u5e94\u7ee7\u7eed\u628a\u516c\u7f51 HTTP \u6e90\u7ad9\u5347\u7ea7\u6210 HTTPS\u3001VPN \u6216\u53ef\u4fe1\u79c1\u7f51\u3002<\/p>\n<h3>\u4e5d\u3001\u66f4\u591a\u64cd\u4f5c<\/h3>\n<h4>9.1 \u4e0e\u4e4b\u524d\u7bc7\u8fde\u8d77\u6765\u9605\u8bfb<\/h4>\n<p>\u672c\u6587\u627f\u63a5\u4e4b\u524d\u7bc7\u300aServer 16&#xff0c;Windows Server \u73af\u5883\u4e0b Vue3 \u9879\u76ee\u90e8\u7f72\u5b9e\u6218&#xff1a;IIS &#043; Nginx \u914d\u7f6e IPAgent \u4e8c\u7ea7\u76ee\u5f55\u5b8c\u6574\u6559\u7a0b\u300b\u3002\u4e4b\u524d\u7bc7\u91cd\u70b9\u662f Windows Server \u4e0a IIS \u8d1f\u8d23 443 \u548c\u8bc1\u4e66\u3001Nginx \u8d1f\u8d23 \/IPAgent\/ \u4e0e \/IPWeave\/ \u8def\u5f84\u5206\u53d1&#xff1b;\u672c\u6587\u628a\u540c\u4e00\u79cd\u5206\u5c42\u601d\u8def\u6269\u5c55\u5230\u4e86\u9700\u6c42\u65b9\u5b98\u7f51\u670d\u52a1\u5668\u4e0e\u963f\u91cc\u4e91\u670d\u52a1\u5668\u4e4b\u95f4\u3002<\/p>\n<p>\u5982\u679c\u9879\u76ee\u8fd8\u8981\u7ee7\u7eed\u589e\u52a0 \/IPAgent\/\u3001\/IPWeave\/\u3001\/IPESAgent\/ \u7b49\u7cfb\u7edf&#xff0c;\u5efa\u8bae\u5efa\u7acb\u7edf\u4e00\u7684\u8def\u5f84\u767b\u8bb0\u8868&#xff0c;\u81f3\u5c11\u8bb0\u5f55\u5f52\u5c5e\u7cfb\u7edf\u3001\u9759\u6001\u8d44\u6e90\u8def\u5f84\u3001\u63a5\u53e3\u524d\u7f00\u3001\u6e90\u7ad9\u5730\u5740\u3001\u8d85\u65f6\u8981\u6c42\u3001\u662f\u5426\u9700\u8981 SSE\/WebSocket\u3001Cookie \u540d\u79f0\u3001\u8d1f\u8d23\u4eba\u548c\u4e0a\u7ebf\u65f6\u95f4\u3002\u8fd9\u5f20\u8868\u6bd4\u5230\u6545\u969c\u65f6\u7ffb\u591a\u4e2a Nginx \u6587\u4ef6\u53ef\u9760\u5f97\u591a\u3002<\/p>\n<p>\u66f4\u591a\u670d\u52a1\u5668\u90e8\u7f72\u4e0e\u6392\u969c\u5b9e\u6218&#xff0c;\u53ef\u67e5\u770b\u6211\u7684 CSDN Server \u4e13\u680f&#xff1a;<\/p>\n<p>&#x1f449; Server \u5b9e\u6218\u4e13\u680f<\/p>\n<p>\u8be5\u4e13\u680f\u6301\u7eed\u6574\u7406 Windows Server\u3001IIS\u3001Nginx\u3001Vue \u4e8c\u7ea7\u76ee\u5f55\u90e8\u7f72\u3001\u53cd\u5411\u4ee3\u7406\u3001HTTPS \u4e0e\u751f\u4ea7\u73af\u5883\u6392\u969c\u3002\u672c\u6587\u91cc\u7684\u53cc\u670d\u52a1\u5668\u65b9\u6848\u4e5f\u53ef\u4ee5\u7ee7\u7eed\u6269\u5c55\u5230\u8d1f\u8f7d\u5747\u8861\u3001\u6e90\u7ad9 HTTPS\u3001\u5065\u5eb7\u68c0\u67e5\u3001\u7070\u5ea6\u53d1\u5e03\u548c\u7edf\u4e00\u9274\u6743\u3002<\/p>\n<h4>9.2 \u63a8\u8350\u7684\u4e0b\u4e00\u6b65\u64cd\u4f5c<\/h4>\n<ul>\n<li>\u7ed9\u963f\u91cc\u4e91\u6e90\u7ad9\u914d\u7f6e\u72ec\u7acb\u57df\u540d\u4e0e HTTPS&#xff0c;\u628a\u516c\u7f51\u7b2c\u4e8c\u6bb5\u94fe\u8def\u4e5f\u52a0\u5bc6&#xff1b;<\/li>\n<li>\u5c06\u6e90\u7ad9\u7aef\u53e3\u9650\u5236\u4e3a\u53ea\u5141\u8bb8\u9700\u6c42\u65b9\u670d\u52a1\u5668 IP \u8bbf\u95ee&#xff1b;<\/li>\n<li>\u4e3a\u5165\u53e3 Nginx \u589e\u52a0\u8bc1\u4e66\u5230\u671f\u30015xx \u6bd4\u4f8b\u548c\u4e0a\u6e38\u54cd\u5e94\u65f6\u95f4\u76d1\u63a7&#xff1b;<\/li>\n<li>\u7528\u81ea\u52a8\u5316\u811a\u672c\u68c0\u67e5 index.html \u5f15\u7528\u7684\u6bcf\u4e2a hash \u8d44\u6e90\u662f\u5426\u8fd4\u56de 200&#xff1b;<\/li>\n<li>\u5bf9 iframe \u573a\u666f\u8865\u505a Cookie\u3001CSP frame-ancestors \u548c\u8d85\u65f6\u91cd\u65b0\u767b\u5f55\u6d4b\u8bd5&#xff1b;<\/li>\n<li>\u4e3a SSE\u3001WebSocket\u3001\u6587\u4ef6\u4e0a\u4f20\u548c\u957f\u4efb\u52a1\u63a5\u53e3\u5206\u522b\u8bbe\u7f6e\u5408\u9002\u7684\u8d85\u65f6\u4e0e\u7f13\u51b2\u7b56\u7565\u3002<\/li>\n<\/ul>\n<h4>9.3 \u5b98\u65b9\u8d44\u6599<\/h4>\n<li>MDN&#xff1a;HTTP<\/li>\n<li>MDN&#xff1a;HTTPS<\/li>\n<li>MDN&#xff1a;Transport Layer Security<\/li>\n<li>MDN&#xff1a;Mixed Content<\/li>\n<li>NGINX&#xff1a;Reverse Proxy<\/li>\n<li>NGINX&#xff1a;proxy_pass<\/li>\n<li>NGINX&#xff1a;location \u5339\u914d\u89c4\u5219<\/li>\n<li>NGINX&#xff1a;Configuring HTTPS Servers<\/li>\n<li>Let\u2019s Encrypt&#xff1a;IP Address Certificates<\/li>\n<li>Let\u2019s Encrypt&#xff1a;Six-Day and IP Address Certificates Available in Certbot<\/li>\n<p>\u6587\u4e2d\u7684\u516c\u7f51 IP\u3001\u57df\u540d\u3001\u76ee\u5f55\u548c\u7aef\u53e3\u6765\u81ea\u5b9e\u9645\u6848\u4f8b\u3002\u590d\u5236\u914d\u7f6e\u65f6\u5e94\u66ff\u6362\u6210\u81ea\u5df1\u7684\u73af\u5883&#xff0c;\u5e76\u5728\u6267\u884c nginx -s reload \u6216 systemctl reload nginx \u524d\u8fd0\u884c nginx -t\u3002\u5982\u679c\u672c\u6587\u89e3\u51b3\u4e86\u4f60\u7684\u95ee\u9898&#xff0c;\u6b22\u8fce\u6536\u85cf\u5e76\u5728\u8bc4\u8bba\u533a\u7559\u4e0b\u81ea\u5df1\u7684\u90e8\u7f72\u7ed3\u6784\u4e0e\u62a5\u9519\u73b0\u8c61&#xff1b;\u5177\u4f53\u65e5\u5fd7\u5f80\u5f80\u6bd4\u4e00\u53e5\u201c\u9875\u9762\u6253\u4e0d\u5f00\u201d\u66f4\u5bb9\u6613\u5b9a\u4f4d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181752-6ad901d08b60b.gif\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/p>\n","protected":false},"author":2,"featured_media":116744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11820,151,622,117,87,43],"topic":[],"class_list":["post-116752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-atomgit","tag-http","tag-https","tag-nginx","tag-87","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Server 18 \uff0cNginx \u53cc\u670d\u52a1\u5668 HTTP\u8f6cHTTPS \u4ee3\u7406\u5b9e\u6218\uff08 HTTP \u5730\u5740\u6362 HTTPS \u57df\u540d \uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/116752.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Server 18 \uff0cNginx \u53cc\u670d\u52a1\u5668 HTTP\u8f6cHTTPS \u4ee3\u7406\u5b9e\u6218\uff08 HTTP \u5730\u5740\u6362 HTTPS \u57df\u540d \uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/116752.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-21T18:17:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181734-6ad901bea2bff.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"19 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116752.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/116752.html\",\"name\":\"Server 18 \uff0cNginx \u53cc\u670d\u52a1\u5668 HTTP\u8f6cHTTPS \u4ee3\u7406\u5b9e\u6218\uff08 HTTP \u5730\u5740\u6362 HTTPS \u57df\u540d \uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-21T18:17:53+00:00\",\"dateModified\":\"2026-10-21T18:17:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/116752.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/116752.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116752.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Server 18 \uff0cNginx \u53cc\u670d\u52a1\u5668 HTTP\u8f6cHTTPS \u4ee3\u7406\u5b9e\u6218\uff08 HTTP \u5730\u5740\u6362 HTTPS \u57df\u540d \uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Server 18 \uff0cNginx \u53cc\u670d\u52a1\u5668 HTTP\u8f6cHTTPS \u4ee3\u7406\u5b9e\u6218\uff08 HTTP \u5730\u5740\u6362 HTTPS \u57df\u540d \uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/116752.html","og_locale":"zh_CN","og_type":"article","og_title":"Server 18 \uff0cNginx \u53cc\u670d\u52a1\u5668 HTTP\u8f6cHTTPS \u4ee3\u7406\u5b9e\u6218\uff08 HTTP \u5730\u5740\u6362 HTTPS \u57df\u540d \uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/116752.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-21T18:17:53+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021181734-6ad901bea2bff.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"19 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/116752.html","url":"https:\/\/www.wsisp.com\/helps\/116752.html","name":"Server 18 \uff0cNginx \u53cc\u670d\u52a1\u5668 HTTP\u8f6cHTTPS \u4ee3\u7406\u5b9e\u6218\uff08 HTTP \u5730\u5740\u6362 HTTPS \u57df\u540d \uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-21T18:17:53+00:00","dateModified":"2026-10-21T18:17:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/116752.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/116752.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/116752.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Server 18 \uff0cNginx \u53cc\u670d\u52a1\u5668 HTTP\u8f6cHTTPS \u4ee3\u7406\u5b9e\u6218\uff08 HTTP \u5730\u5740\u6362 HTTPS \u57df\u540d \uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/116752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=116752"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/116752\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/116744"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=116752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=116752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=116752"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=116752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}