{"id":173,"date":"2026-11-11T16:11:25","date_gmt":"2026-11-11T08:11:25","guid":{"rendered":"https:\/\/getdevioapp.xyz\/?p=173"},"modified":"2026-11-11T16:33:37","modified_gmt":"2026-11-11T08:33:37","slug":"devio-reverse-proxy-local-app","status":"publish","type":"post","link":"https:\/\/getdevioapp.xyz\/index.php\/2026\/11\/11\/devio-reverse-proxy-local-app\/","title":{"rendered":"\u672c\u673a\u5e94\u7528\u5df2\u7ecf\u8dd1\u8d77\u6765\u4e86\uff0c\u600e\u6837\u7528 Devio \u914d\u4e00\u4e2a\u8bbf\u95ee\u57df\u540d"},"content":{"rendered":"<p>\u4f60\u5df2\u7ecf\u5728\u7ec8\u7aef\u542f\u52a8\u4e86\u4e00\u4e2a\u5e94\u7528\uff0c\u8bbf\u95ee\u672c\u673a\u7aef\u53e3\u4e5f\u6b63\u5e38\uff0c\u53ea\u662f\u60f3\u7528\u4e00\u4e2a\u597d\u8bb0\u7684\u57df\u540d\u6253\u5f00\u5b83\u3002\u8fd9\u6837\u7684\u573a\u666f\u53ef\u4ee5\u4ece Devio \u7684\u53cd\u5411\u4ee3\u7406\u6a21\u5f0f\u5165\u624b\uff0c\u4e0d\u5fc5\u4e3a\u4e86\u6362\u4e00\u4e2a\u8bbf\u95ee\u5730\u5740\u91cd\u65b0\u5efa\u7acb\u8fd0\u884c\u73af\u5883\u3002<\/p>\n<h2>\u5148\u628a\u76ee\u6807\u5730\u5740\u9a8c\u6e05\u695a<\/h2>\n<p>\u8bb0\u4e0b\u5e94\u7528\u771f\u6b63\u76d1\u542c\u7684\u5730\u5740\u548c\u7aef\u53e3\u3002\u6bd4\u5982\u9879\u76ee\u8bf4\u660e\u8ba9\u4f60\u8bbf\u95ee http:\/\/127.0.0.1:3000\uff0c\u5c31\u5148\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u8fd9\u4e2a\u5730\u5740\u3002\u8fd9\u91cc\u7684 3000 \u53ea\u662f\u4f8b\u5b50\uff0c\u5e94\u8be5\u4f7f\u7528\u5e94\u7528\u5b9e\u9645\u8f93\u51fa\u7684\u7aef\u53e3\u3002<\/p>\n<p>\u770b\u5230\u9875\u9762\u540e\uff0c\u4e5f\u786e\u8ba4\u5b83\u786e\u5b9e\u5c5e\u4e8e\u5f53\u524d\u9879\u76ee\u3002\u65e7\u9879\u76ee\u4ecd\u5728\u5360\u7528\u7aef\u53e3\u65f6\uff0c\u6d4f\u89c8\u5668\u53ef\u80fd\u6253\u5f00\u7684\u662f\u53e6\u4e00\u5957\u5e94\u7528\u3002\u4e0d\u8981\u53ea\u51ed\u201c\u6709\u9875\u9762\u201d\u5c31\u7ee7\u7eed\u914d\u7f6e\u3002<\/p>\n<h2>\u518d\u521b\u5efa\u53cd\u5411\u4ee3\u7406\u7ad9\u70b9<\/h2>\n<ol>\n<li>\u5728 Devio \u7684\u201c\u7f51\u7ad9\u201d\u4e2d\u521b\u5efa\u7ad9\u70b9\uff0c\u9009\u62e9\u53cd\u5411\u4ee3\u7406\u6a21\u5f0f\u3002<\/li>\n<li>\u586b\u5199\u51c6\u5907\u4f7f\u7528\u7684\u672c\u5730\u57df\u540d\u548c\u5df2\u7ecf\u6838\u5b9e\u7684\u4ee3\u7406\u76ee\u6807\uff0c\u9075\u5faa\u754c\u9762\u7684\u57df\u540d\u3001\u7aef\u53e3\u6821\u9a8c\u63d0\u793a\u3002<\/li>\n<li>\u4fdd\u5b58\u540e\uff0c\u5728\u9996\u9875\u786e\u8ba4 Nginx \u5df2\u542f\u52a8\uff0c\u540c\u65f6\u8ba9\u539f\u6765\u7684\u5e94\u7528\u8fdb\u7a0b\u4fdd\u6301\u8fd0\u884c\u3002<\/li>\n<li>\u8bbf\u95ee\u914d\u7f6e\u7684\u57df\u540d\uff0c\u68c0\u67e5\u9996\u9875\u548c\u4e00\u4e2a\u5b9e\u9645\u63a5\u53e3\u662f\u5426\u90fd\u8fd4\u56de\u9884\u671f\u5185\u5bb9\u3002<\/li>\n<\/ol>\n<p>\u542f\u7528\u57df\u540d\u540c\u6b65\u4f1a\u4fee\u6539\u7cfb\u7edf hosts \u6587\u4ef6\u4e2d Devio \u7ba1\u7406\u7684\u533a\u5757\u3002\u4ec5\u5728\u4f60\u9700\u8981\u8fd9\u9879\u672c\u673a\u89e3\u6790\u8bbe\u7f6e\u65f6\u542f\u7528\uff1b\u5df2\u6709\u540c\u540d\u57df\u540d\u6216\u5176\u4ed6\u5de5\u5177\u7ba1\u7406\u89e3\u6790\u65f6\uff0c\u5148\u68c0\u67e5\u662f\u5426\u51b2\u7a81\u3002<\/p>\n<h2>\u6253\u4e0d\u5f00\u65f6\uff0c\u628a\u4e24\u6761\u8bbf\u95ee\u8def\u5f84\u5206\u5f00<\/h2>\n<p><strong>\u76f4\u63a5\u7aef\u53e3\u4e5f\u6253\u4e0d\u5f00\uff1a<\/strong>\u5148\u56de\u5230\u5e94\u7528\u65e5\u5fd7\uff0c\u68c0\u67e5\u8fdb\u7a0b\u662f\u5426\u9000\u51fa\u3001\u7aef\u53e3\u662f\u5426\u53d8\u5316\u3002\u6b64\u65f6\u53cd\u590d\u4fee\u6539\u57df\u540d\u901a\u5e38\u6ca1\u6709\u5e2e\u52a9\u3002<\/p>\n<p><strong>\u76f4\u63a5\u7aef\u53e3\u6b63\u5e38\uff0c\u57df\u540d\u6253\u4e0d\u5f00\uff1a<\/strong>\u68c0\u67e5 Nginx\u3001\u4ee3\u7406\u76ee\u6807\u4e0e\u57df\u540d\u89e3\u6790\u3002Devio \u7684\u7f51\u7ad9\u8bbf\u95ee\u8bca\u65ad\u53ef\u4ee5\u68c0\u67e5 hosts\u3001DNS\u3001\u7cfb\u7edf\u4ee3\u7406\u548c\u672c\u673a\u76f4\u8fde\u7ed3\u679c\uff0c\u6309\u7ed3\u679c\u5b9a\u4f4d\uff0c\u4e0d\u8981\u5148\u628a\u4ee3\u7406\u8f6f\u4ef6\u6216\u5b89\u5168\u8bbe\u7f6e\u5168\u90e8\u5173\u6389\u3002<\/p>\n<p><strong>\u57df\u540d\u80fd\u6253\u5f00\uff0c\u4f46\u8df3\u8f6c\u5230\u522b\u5904\uff1a<\/strong>\u6838\u5bf9\u5e94\u7528\u81ea\u5df1\u7684\u7ad9\u70b9\u5730\u5740\u548c\u56de\u8c03\u914d\u7f6e\u3002\u6709\u4e9b\u5e94\u7528\u4f1a\u751f\u6210\u7edd\u5bf9\u5730\u5740\uff0c\u4ee3\u7406\u4e0d\u4f1a\u81ea\u52a8\u66ff\u4f60\u4fee\u6539\u9879\u76ee\u91cc\u7684\u5168\u90e8 URL\u3002<\/p>\n<h2>\u7528\u5230 WebSocket \u65f6\uff0c\u518d\u6d4b\u4e00\u6b21\u5b9e\u9645\u529f\u80fd<\/h2>\n<p>Devio \u7684\u53cd\u5411\u4ee3\u7406\u652f\u6301 WebSocket\uff0c\u4f46\u5e94\u7528\u7aef\u4e5f\u8981\u6b63\u5e38\u63d0\u4f9b\u76f8\u5e94\u8fde\u63a5\u3002\u9875\u9762\u52a0\u8f7d\u6210\u529f\u4e4b\u540e\uff0c\u518d\u5b9e\u9645\u89e6\u53d1\u4e00\u6b21\u4f9d\u8d56 WebSocket \u7684\u529f\u80fd\uff1b\u666e\u901a\u9875\u9762\u6210\u529f\u5e76\u4e0d\u4ee3\u8868\u957f\u8fde\u63a5\u4e5f\u6210\u529f\u3002<\/p>\n<p>\u8fd9\u91cc\u914d\u7f6e\u7684\u662f Mac \u672c\u673a\u8bbf\u95ee\u3002Devio \u4e2d\u7684\u672c\u5730\u57df\u540d\u4e0d\u80fd\u76f4\u63a5\u5f53\u4f5c\u516c\u7f51\u5730\u5740\u53d1\u7ed9\u522b\u4eba\u4f7f\u7528\uff1b\u4e0d\u8981\u4e3a\u4e86\u4e34\u65f6\u9884\u89c8\u968f\u610f\u628a\u5e26\u7ba1\u7406\u6743\u9650\u7684\u5f00\u53d1\u670d\u52a1\u66b4\u9732\u51fa\u53bb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u672c\u673a\u7aef\u53e3\u5230\u57df\u540d\u8bbf\u95ee\uff0c\u6309\u987a\u5e8f\u68c0\u67e5\u5e94\u7528\u3001Nginx \u548c\u89e3\u6790\uff0c\u907f\u514d\u4ee3\u7406\u5230\u9519\u8bef\u670d\u52a1\u3002<\/p>\n","protected":false},"author":1,"featured_media":200,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-usage-tips"],"_links":{"self":[{"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=173"}],"version-history":[{"count":2,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/posts\/173\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/posts\/173\/revisions\/192"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/media\/200"}],"wp:attachment":[{"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}