{"id":626,"date":"2011-03-18T17:04:02","date_gmt":"2011-03-18T09:04:02","guid":{"rendered":"http:\/\/www.strongd.net\/?p=626"},"modified":"2011-03-18T17:04:02","modified_gmt":"2011-03-18T09:04:02","slug":"nginxresin-%e4%bd%bf%e7%94%a8%e4%b8%ad%e6%96%87%e5%9f%9f%e5%90%8d%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=626","title":{"rendered":"nginx+resin \u4f7f\u7528\u4e2d\u6587\u57df\u540d\u89e3\u51b3\u65b9\u6848\u3002"},"content":{"rendered":"<p>xxx\u4e2d\u6587\u57df\u540d.\u4e2d\u56fd<\/p>\n<p>\u8fd9\u6837\u7684\u57df\u540d\u5728resin\u4e0b\u4f1a\u51fa\u9519\uff1a<\/p>\n<blockquote><p>[15:34:31.628] {hmux-127.0.0.1:6801-5} java.lang.StringIndexOutOfBoundsException: String index out of range: 9[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at java.lang.String.charAt(String.java:687)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.DomainName.decode(DomainName.java:205)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.DomainName.fromAscii(DomainName.java:86)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:305)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.cluster.Server.buildInvocation(Server.java:915)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:209)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:427)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at java.lang.Thread.run(Thread.java:619)[15:34:31.628] {hmux-127.0.0.1:6801-5} java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: 9[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.DomainName.fromAscii(DomainName.java:109)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:305)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.cluster.Server.buildInvocation(Server.java:915)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:209)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:427)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at java.lang.Thread.run(Thread.java:619)[15:34:31.628] {hmux-127.0.0.1:6801-5} Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 9[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at java.lang.String.charAt(String.java:687)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.DomainName.decode(DomainName.java:205)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.DomainName.fromAscii(DomainName.java:86)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0&#8230; 8 more<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u539f\u56e0\u662f\u4e2d\u6587\u57df\u540d\u505a\u4e86\u201c\u8f6c\u7801\u201d\uff0c\u4e0d\u77e5\u9053\u662f\u4ec0\u4e48\u9b3c\u4e1c\u897f\u3002\u53cd\u6b63\u5c31\u51fa\u9519\u4e86\u3002\u8981\u89e3\u51b3\u3002<\/p>\n<p>\u5206\u6790\u4e00\u4e0b\u4e2d\u6587\u57df\u540d\u8f6c\u7801\u540e\u662f\u600e\u6837\u7684\uff1f<\/p>\n<p>\u4f8b\u5982 \u4e2d\u6587\u57df\u540d.\u4e2d\u56fd \u00a0 \u8f6c\u7801\u540e \u00a0\u00a0xn--wlqpfy8in9c9zd3hc50a.xn--io0a7i<\/p>\n<p>\u539f\u6765\u8fd9\u6837\uff1a\u5f53resin\u63a5\u6536 \u5230host\u65f6\uff0c\u7528\u6b63\u5e38\u7684\u57df\u540d\u53bb\u89e3\u91ca\u8fd9\u4e2a\u5730\u5740\uff0c\u7531\u4e8e\u8fd9\u4e2a\u5730\u5740\u4e0d\u7b26\u5408\u6b63\u89c4\u7684\u57df\u540d\u683c\u5f0f\uff0c\u6240\u4ee5\u51fa\u9519\u3002<\/p>\n<p>\u89e3\u51b3\u601d\u8def\uff0c\u80fd\u4e0d\u80fd\u5728nginx\u8f6c\u53d1\u65f6\uff0c\u6539\u53d8host\u5462\uff1f\u67e5\u4e00\u67e5nginx\u8bf4\u660e\u6587\u6863\uff0c\u6709\u4e00\u6761\u8fd9\u6837\u5199\uff1a<\/p>\n<blockquote><p>proxy_set_header Host $host;<\/p><\/blockquote>\n<p>\u5e94\u8be5\u5c31\u662f\u8fd9\u6761\u4e86\u3002\u5c06\u540e\u9762\u7684$host\u6539\u4e3a \u4e00\u4e2a\u82f1\u6587\u57df\u540d<\/p>\n<blockquote><p>proxy_set_header Host www.youdomain.com;<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>\u95ee\u9898\u89e3\u51b3\u4e86\u3002\u54c8\u3002\u3002\u3002\u5927\u5bb6\u52a0\u6cb9\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>xxx\u4e2d\u6587\u57df\u540d.\u4e2d\u56fd \u8fd9\u6837\u7684\u57df\u540d\u5728resin\u4e0b\u4f1a\u51fa\u9519\uff1a [15:34:31.628] {hmux-127.0.0.1:6801-5} java.lang.StringIndexOutOfBoundsException: String index out of range: 9[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at java.lang.String.charAt(String.java:687)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.DomainName.decode(DomainName.java:205)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.DomainName.fromAscii(DomainName.java:86)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:305)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.cluster.Server.buildInvocation(Server.java:915)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:209)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:427)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.server.port.TcpConnection.run(TcpConnection.java:603)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at java.lang.Thread.run(Thread.java:619)[15:34:31.628] {hmux-127.0.0.1:6801-5} java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: 9[15:34:31.628] {hmux-127.0.0.1:6801-5} \u00a0at &hellip; <a href=\"https:\/\/www.strongd.net\/?p=626\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">nginx+resin \u4f7f\u7528\u4e2d\u6587\u57df\u540d\u89e3\u51b3\u65b9\u6848\u3002<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,16,3],"tags":[13,17,18],"class_list":["post-626","post","type-post","status-publish","format-standard","hentry","category-linux","category-nginx-2","category-resin","tag-nginx","tag-resin-2","tag-18"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=626"}],"version-history":[{"count":1,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/626\/revisions"}],"predecessor-version":[{"id":627,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/626\/revisions\/627"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}