{"id":387,"date":"2007-03-01T00:23:20","date_gmt":"2007-02-28T15:23:20","guid":{"rendered":"http:\/\/ecpplus.net\/weblog\/20070301002320"},"modified":"2020-05-24T23:23:04","modified_gmt":"2020-05-24T14:23:04","slug":"pound%e3%81%99%e3%81%94%e3%81%8f%e8%90%8c%e3%81%88%e3%81%9f","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/pound%e3%81%99%e3%81%94%e3%81%8f%e8%90%8c%e3%81%88%e3%81%9f\/","title":{"rendered":"Pound\u3059\u3054\u304f\u840c\u3048\u305f"},"content":{"rendered":"<p>ReverseProxy \u3068 LoadBalancing \u3057\u3066\u304f\u308c\u308bPound\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002\u8907\u6570\u30c9\u30e1\u30a4\u30f3\u3001\u8907\u6570Rails\u30a2\u30d7\u30ea\u3092\u540c\u4e00\u30b5\u30fc\u30d0\u3067\u52d5\u304b\u3059\u306e\u306b\u3059\u3054\u304f\u4fbf\u5229\u3002<\/p>\n<h4>SSL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(SSL\u3092\u4f7f\u7528\u3059\u308b\u6642\u306e\u307f) <\/h4>\n<p>\u3000OpenSSL\u304b\u3089\u6700\u65b0\u7248\u3092\u843d\u3068\u3059\u3002\u304a\u306a\u3058\u307f\u306e<\/p>\n<pre>$ .\/configure\n$ make\n# make install<\/pre>\n<p>\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b8c\u4e86\u3059\u308b\u3002Debian\u3060\u3068\u3001\/usr\/local\/ssl \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u6a21\u69d8\u3002\u3069\u3053\u306b\u30a4\u30f3\u30b9\u30b3\u3055\u308c\u305f\u304b\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u3068\u304d\u306f\u3001<\/p>\n<pre>$ whereis ssl<\/pre>\n<p>\u3063\u3066\u3084\u308c\u3070\u51fa\u308b\u3088\u3002<\/p>\n<h4>Pound\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>Pound\u304b\u3089\u3001\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002SSL\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001<code>--with-ssl=ssl_dir<\/code> \u3067\u8a2d\u5b9a\u3059\u308b\u3002\u4f7f\u308f\u306a\u3044\u5834\u5408\u3001\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u4e0d\u8981\u3002<\/p>\n<pre>$ .\/configure --with-ssl=\/usr\/local\/ssl\n$ make\n# make install<\/pre>\n<p>\u3068\u3059\u308c\u3070\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3002<\/p>\n<h4>Pound\u306e\u8a2d\u5b9a<\/h4>\n<p>\u3000\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4ee5\u4e0b\u306e\u5834\u6240\u306b\u3042\u308b\u3002\u306a\u3044\u5834\u5408\u306f\u81ea\u5206\u3067\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre>\/usr\/local\/pound.cfg<\/pre>\n<p>1,2\u884c\u76ee\u306fPound\u3092\u52d5\u304b\u3059\u4eba\u3002root\u306f\u907f\u3051\u305f\u307b\u3046\u304c\u3044\u3044\u3068\u3002<br \/>\n\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3067\u3001sample1.com \u306b\u304d\u305f\u30a2\u30af\u30bb\u30b9\u3092 3000\u756a\u30dd\u30fc\u30c8\u3078\u3001 sample2.com \u306b\u6765\u305f\u30a2\u30af\u30bb\u30b9\u3092 3001\u756a\u30dd\u30fc\u30c8\u3078\u8ee2\u9001\u3067\u304d\u308b\u3002\u9055\u3046Rails\u30a2\u30d7\u30ea\u304c\u540c\u3058\u30b5\u30fc\u30d0\u3067\u52d5\u304d\u307e\u3059\u3002\u4ed6\u306bApache\u3068\u304b\u52d5\u304b\u3057\u3068\u3051\u3070\u3001\u9759\u7684\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u306f\u5168\u90e8\u305d\u3063\u3061\u3067\u3055\u3070\u3051\u307e\u3059\u3002\u3053\u308c\u306f\u3044\u3044\u2026<\/p>\n<pre>User           \"www-data\"\nGroup          \"www-data\"\n\nLogLevel       1\n\nAlive          30\n\n## use hardware-accelleration card supported by openssl(1):\n#SSLEngine     <hw>\n\n\n######################################################################\n## listen, redirect and ... to:\n\n## redirect all requests on port 8888 (\"ListenHTTP\") to the local webserver see \"UrlGroup\" below):\n#127.0.0.1,8080\n\nListenHTTP\n  Address 192.168.1.100\n  Port 80\n  xHTTP  2\n\n  Service\n    HeadRequire \"Host: sample1.com\"\n    BackEnd\n      Address 127.0.0.1\n      Port 3000\n    End\n  End\n\n  Service\n    HeadRequire \"Host: sample2.com\"\n    BackEnd\n      Address 127.0.0.1\n      Port 3001\n    End\n  End\n\nEnd<\/hw><\/pre>\n<p>\u3059\u3054\u304f\u305f\u3081\u306b\u306a\u3063\u305f\u30b5\u30a4\u30c8 <a href=\"http:\/\/recompile.net\/2007\/02\/pound_mongrel_aapache20_ruby_o.html\">recompile.net<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ReverseProxy \u3068 LoadBalancing \u3057\u3066\u304f\u308c\u308bPound\u3092\u4f7f\u3063\u3066\u307f\u305f\u3002\u8907\u6570\u30c9\u30e1\u30a4\u30f3\u3001\u8907\u6570Rails\u30a2\u30d7\u30ea\u3092\u540c\u4e00\u30b5\u30fc\u30d0\u3067\u52d5\u304b\u3059\u306e\u306b\u3059\u3054\u304f\u4fbf\u5229\u3002 SSL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb(SSL\u3092\u4f7f\u7528\u3059\u308b\u6642\u306e\u307f) \u3000Ope [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[7],"class_list":["post-387","post","type-post","status-publish","format-standard","hentry","category-development","tag-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=387"}],"version-history":[{"count":1,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/387\/revisions"}],"predecessor-version":[{"id":2264,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/387\/revisions\/2264"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}