{"id":6961,"date":"2012-02-21T19:06:48","date_gmt":"2012-02-21T10:06:48","guid":{"rendered":"http:\/\/fukata.org\/?p=6961"},"modified":"2017-08-11T22:58:48","modified_gmt":"2017-08-11T22:58:48","slug":"nginx-http-sub-module","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/6961\/","title":{"rendered":"nginx\u306eHttpSubModule\u3092\u4f7f\u3063\u3066HTML\u5185\u306e\u30ea\u30f3\u30af\u3092\u66f8\u304d\u63db\u3048\u3066\u307f\u305f"},"content":{"rendered":"

nginx\u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u4f7f\u7528\u3057\u3066\u904b\u7528\u3057\u3066\u3044\u305fnode.js\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u3042\u3063\u305f\u3093\u3067\u3059\u304c\u3001HTML\u5185\u306e\u30ea\u30f3\u30af\u304c\u30b9\u30e9\u30c3\u30b7\u30e5\u59cb\u307e\u308a\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u5b9f\u969b\u306eURL\u306f\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5207\u3063\u3066\u3044\u305f\u306e\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305a\u306b\u30ea\u30f3\u30af\u5207\u308c\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002apache\u3067\u904b\u7528\u3057\u3066\u3044\u305f\u6642\u306f\u3001mod_proxy_html<\/a>\u306a\u3069\u3092\u4f7f\u3063\u3066HTML\u5185\u306e\u30ea\u30f3\u30af\u3092\u66f8\u304d\u63db\u3048\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001nginx\u3067\u3082\u540c\u69d8\u306e\u4e8b\u304c\u3067\u304d\u306a\u3044\u304b\u8abf\u3079\u305f\u3068\u3053\u308d\u3001\u4e0b\u8a18\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u884c\u3046\u3088\u3046\u3067\u3059\u3002<\/p>\n

HttpSubModule<\/a><\/p>\n

\u30da\u30fc\u30b8\u5185\u306b\u4f7f\u3044\u65b9\u306f\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306e\u3088\u3046\u306b\u30b9\u30e9\u30c3\u30b7\u30e5\u59cb\u307e\u308a\u306eURL\u3092\u7f6e\u63db\u3059\u308b\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u56f2\u307e\u308c\u3066\u3044\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306a\u3069\u306e\u5236\u7d04\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001sub_filter\u3092\u8907\u6570\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u3044\u304f\u3064\u304b\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3069\u3046\u3084\u308b\u3093\u3067\u3057\u3087\u3046\u3002<\/p>\n

\r\n    location \/nodejs\/ {\r\n        sub_filter \\\"\/ '\"\/nodejs\/';\r\n        sub_filter_once off;\r\n        proxy_pass https:\/\/nodejs_backend\/;\r\n    }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

nginx\u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u4f7f\u7528\u3057\u3066\u904b\u7528\u3057\u3066\u3044\u305fnode.js\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u3042\u3063\u305f\u3093\u3067\u3059\u304c\u3001HTML\u5185\u306e\u30ea\u30f3\u30af\u304c\u30b9\u30e9\u30c3\u30b7\u30e5\u59cb\u307e\u308a\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u5b9f\u969b\u306eURL\u306f\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5207\u3063\u3066\u3044\u305f\u306e\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[964],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/6961"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=6961"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/6961\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=6961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=6961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=6961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}