{"id":5415,"date":"2015-07-16T20:47:35","date_gmt":"2015-07-16T11:47:35","guid":{"rendered":"http:\/\/www.vincentina.net\/?p=5415"},"modified":"2015-07-16T20:47:36","modified_gmt":"2015-07-16T11:47:36","slug":"ruby%e3%81%ae%e6%9c%aa%e6%9d%a5%e3%82%92%e6%84%9f%e3%81%98%e3%82%8b%e3%82%88%e3%81%86%e3%81%aamod_mruby%e3%81%a7apache%e3%81%a8%e6%88%af%e3%82%8c%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=5415","title":{"rendered":"Ruby\u306e\u672a\u6765\u3092\u611f\u3058\u308b\u3088\u3046\u306amod_mruby\u3067Apache\u3068\u622f\u308c\u3066\u307f\u308b"},"content":{"rendered":"<p>\u4eca\u56de\u306fmod_mruby\u3092\u4f7f\u3063\u3066Apache\u3068\u622f\u308c\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nmod_mruby\u3068\u306f\u3001\u30da\u30d1\u30dc\u306eMATSUMOTO Ryosuke\u6c0f\u304c\u4f5c\u6210\u3055\u308c\u305fApache\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3001Ruby\u3092\u4f7f\u3063\u3066Apache\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u4f5c\u308c\u308b\u3068\u3044\u3046\u4ee3\u7269\u306e\u3088\u3046\u3067\u3059\u3002<br \/>\n\u300cApache\u30e2\u30b8\u30e5\u30fc\u30eb\u3092Ruby\u3067\u52b9\u7387\u826f\u304f\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306eApache\u30e2\u30b8\u30e5\u30fc\u30eb\u3002\u300d\u3068\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Apache\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f5c\u308b\uff01\u306a\u3093\u3066\u6577\u5c45\u304c\u9ad8\u304f\u3066\u5168\u304f\u624b\u3092\u51fa\u3057\u305f\u3053\u3068\u3082\u8003\u3048\u305f\u3053\u3068\u3082\u306a\u304b\u3063\u305f\u308f\u3051\u3067\u3059\u304c\u3001\u898b\u306a\u304c\u3089\u3061\u3087\u3053\u3063\u3068\u5f04\u304f\u308b\u304f\u3089\u3044\u306a\u3089\u51fa\u6765\u305d\u3046\uff1f<br \/>\n\u3063\u3066\u3053\u3068\u3067\u3001\u3084\u3063\u3066\u307f\u307e\u3059\u304b\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u305d\u308c\u3069\u3053\u60c5\u5831\uff1f\u3069\u3053\u60c5\u5831\u3088\u30fc\uff1f(\u30fb\u2200\u30fb)<\/p>\n<p>\u4eba\u9593\u3068\u30a6\u30a7\u30d6\u306e\u672a\u6765\u3000mod_mruby\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u5165\u9580<br \/>\n<iframe title=\"mod_mruby\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u5165\u9580 - \u4eba\u9593\u3068\u30a6\u30a7\u30d6\u306e\u672a\u6765\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/hatenablog-parts.com\/embed?url=http%3A%2F%2Fhb.matsumoto-r.jp%2Fentry%2F2014%2F12%2F09%2F123816#?secret=37nGGHNGis\" data-secret=\"37nGGHNGis\" scrolling=\"no\" frameborder=\"0\"><\/iframe><\/p>\n<p>200\u4e07 Web\u30b5\u30a4\u30c8\u3092\u652f\u3048\u308b \u30ed\u30ea\u30dd\u30c3\u30d7\uff01\u3068 mruby<br \/>\n<iframe loading=\"lazy\" title=\"200\u4e07 Web\u30b5\u30a4\u30c8\u3092\u652f\u3048\u308b \u30ed\u30ea\u30dd\u30c3\u30d7\uff01\u3068 mruby\" id=\"talk_frame_305885\" src=\"\/\/speakerdeck.com\/player\/0238b7f2c8a44f92a189f2fa62958f2e\" width=\"840\" height=\"630\" style=\"border:0; padding:0; margin:0; background:transparent;\" frameborder=\"0\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\" mozallowfullscreen=\"true\" webkitallowfullscreen=\"true\"><\/iframe><\/p>\n<p>\u4e0a\u306e\u30ea\u30f3\u30af\u304b\u3089\u306e\u60c5\u5831\u3067\u3059\u3002<\/p>\n<p><strong>\u6700\u521d\u306b\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u304c\u3001\u65b0\u3057\u3044\u8a66\u307f\u306f\u3057\u3066\u3044\u307e\u305b\u3093\uff01\u30b9\u30d1\u30fc\u30f3<\/strong><br \/>\n\u53c2\u8003\u30b5\u30a4\u30c8\u3092\u898b\u306a\u304c\u3089\u52d5\u304b\u3057\u306a\u304c\u3089\u3001\u30ef\u30af\u30c6\u30ab\u3057\u306a\u304c\u3089\u6319\u52d5\u3092\u898b\u3066\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8\u4e00\u89a7<\/p>\n<p>Github\u306e\u30da\u30fc\u30b8\u3000<a href=\"https:\/\/github.com\/matsumoto-r\/mod_mruby\/wiki\/Class-and-Method\" target=\"_blank\">matsumoto-r\/mod_mruby<\/a><\/p>\n<p><a href=\"http:\/\/dev.classmethod.jp\/server-side\/apache-virtual-host-mod_mruby\/\" target=\"_blank\">Apache\u306b\u3088\u308b\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u69cb\u7bc9\u30ec\u30b7\u30d4 mod_mruby\u7de8<\/a><\/p>\n<p>\u3088\u3046\u3078\u3044\u306e\u65e5\u3005\u7cbe\u9032XP \u3000<a href=\"http:\/\/inokara.hateblo.jp\/entry\/2013\/10\/08\/005248\" target=\"_blank\">mod_mruby \u3092\u8a66\u3057\u3066\u307f\u308b<\/a><\/p>\n<p>Qiita cs_sonar <a href=\"http:\/\/qiita.com\/cs_sonar\/items\/00a23c5519d3512ea19d#apache%E3%81%AE%E8%A8%AD%E5%AE%9A\" target=\"_blank\">Apache\u306emod_vhost_alias\u3067\u30ed\u30b0\u3092\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u5358\u4f4d\u3067\u5206\u5272\u3067\u304d\u306a\u3044\u554f\u984c\u3092mod_mruby\u3067\u89e3\u6c7a\u3059\u308b<\/a><\/p>\n<p>\u305d\u3044\u3067\u306f\u307e\u305a\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u3044\u304d\u307e\u3063\u3059\u308b\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u306f\u3053\u306a\u3044\u3060Suexec\u74b0\u5883\u306e\u30c6\u30b9\u30c8\u306b\u4f7f\u3063\u3066\u3044\u305f\u3061\u3087\u3063\u3068\u53e4\u3044CentOS6\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u4e8b\u304c\u5f8c\u306b\u91cd\u5927\u306a\u554f\u984c\u306b\uff01<\/p>\n<p>\u95a2\u9023\u8a18\u4e8b<br \/>\n<a href=\"http:\/\/www.vincentina.net\/?p=5391\" target=\"_blank\">\u305d\u308c\u3082\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u3067SKY<\/a><\/p>\n<p>Ruby\u306frbenv\u3067\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3042\u3068bison\u3068hiredis-devel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p>\u308f\u308a\u3068\u91cd\u8981\u306a\u306e\u304cSELINUX\u3092\u7121\u52b9\u5316\u3059\u308b\u3002<br \/>\n\u7121\u52b9\u5316\u3057\u3066\u304a\u304b\u306a\u3044\u3068\u30cf\u30de\u308b\u305c\uff01m9(^_^)<br \/>\n\u3063\u3068\u3001\u3053\u3053\u3067\u30cf\u30de\u3063\u305f\u306e\u304c10\u884c\u524d\u3067\u8a00\u3063\u3066\u305f\u91cd\u5927\u306a\u554f\u984c\u3067\u3057\u305f\u3002<\/p>\n<p>\u7d42\u3002<\/p>\n<p>\u7d9a\u304d\u3002<\/p>\n<pre>\n$ git clone git:\/\/github.com\/matsumoto-r\/mod_mruby.git\n$ cd mod_mruby\n$ sh build.sh\n\n*** Warning: Linking the shared library src\/mod_mruby.la against the\n*** static library \/root\/mod_mruby\/mruby\/build\/host\/mrbgems\/mruby-redis\/hiredis\/lib\/libhiredis.a is not portable!\n\n*** Warning: Linking the shared library src\/mod_mruby.la against the\n*** static library .\/mruby\/build\/host\/lib\/libmruby.a is not portable!\nmod_mruby building ... Done\nbuild.sh ... successful\n<\/pre>\n<pre>\n# make install\n\/usr\/sbin\/apxs -i -a -n 'mruby' \/root\/mod_mruby\/src\/.libs\/mod_mruby.so\n\/usr\/lib64\/httpd\/build\/instdso.sh SH_LIBTOOL='\/usr\/lib64\/apr-1\/build\/libtool' \/root\/mod_mruby\/src\/.libs\/mod_mruby.so \/usr\/lib64\/httpd\/modules\n\/usr\/lib64\/apr-1\/build\/libtool --mode=install cp \/root\/mod_mruby\/src\/.libs\/mod_mruby.so \/usr\/lib64\/httpd\/modules\/\nlibtool: install: cp \/root\/mod_mruby\/src\/.libs\/mod_mruby.so \/usr\/lib64\/httpd\/modules\/mod_mruby.so\nWarning!  dlname not found in \/usr\/lib64\/httpd\/modules\/mod_mruby.so.\nAssuming installing a .so rather than a libtool archive.\nchmod 755 \/usr\/lib64\/httpd\/modules\/mod_mruby.so\n[activating module `mruby' in \/etc\/httpd\/conf\/httpd.conf]\n<\/pre>\n<p>\u3053\u308c\u3067OK\u3060\u3068\u601d\u308f\u308c\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3058\u305f\u3044\u306f\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u3002<\/p>\n<pre>\n# grep -R mruby \/etc\/httpd\/conf\/\n\/etc\/httpd\/conf\/httpd.conf:LoadModule mruby_module       \/usr\/lib64\/httpd\/modules\/mod_mruby.so\n<\/pre>\n<p>\u3068\u308a\u3042\u3048\u305a\u666e\u901a\u306b\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u524d\u306bMac\u304b\u3089\u540d\u524d\u89e3\u6c7a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3068\u304f\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305a3\u3064\u304f\u3089\u3044\u3067\u3044\u3044\u304b\u3057\u3089\u3063\u3068\u3002<\/p>\n<pre>\n$ vim \/private\/etc\/hosts\n\n192.168.24.81   example.com\n192.168.24.81   take.example.com\n192.168.24.81   jiro.example.com\n192.168.24.81   sayo.example.com\n<\/pre>\n<p>httpd.conf\u306e\u7de8\u96c6\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n&lt;VirtualHost *:80&gt;\r\n  DocumentRoot \/home\/take\/public_html\r\n  ServerName  take.example.com\r\n&lt;Directory \/home\/*\/public_html&gt;\r\n  Options All\r\n  AllowOverride All\r\n  AddHandler cgi-script .cgi .pl .php\r\n&lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n\r\n&lt;VirtualHost *:80&gt;\r\n  DocumentRoot \/home\/jiro\/public_html\r\n  ServerName  jiro.example.com\r\n&lt;Directory \/home\/*\/public_html&gt;\r\n  Options All\r\n  AllowOverride All\r\n  AddHandler cgi-script .cgi .pl .php\r\n&lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>\u3053\u308c\u3067take\u3068jiro\u306f\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u304b\u3089\u306f\u898b\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306f\u305a\u3067\u3059\u3002<br \/>\n\u6b21\u3044\u3067mruby\u3067\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>httpd.conf\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>\nmrubyTranslateNameMiddle  \/etc\/httpd\/conf.d\/mruby\/vhost.rb\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3002<\/p>\n<pre>\nvim \/etc\/httpd\/conf.d\/mruby\/vhost.rb\n<\/pre>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\r\n#\/usr\/local\/bin\/ruby\r\n# coding: utf-8\r\n\r\nr = Apache::Request.new\r\nif &#x5B;&quot;sayo.example.com&quot;].include?(r.hostname) then\r\n  r.filename = &quot;\/home\/sayo\/html\/&quot; + r.uri\r\n          Apache::return(Apache::OK)\r\nelse\r\n      Apache::return(Apache::DECLINED)\r\nend\r\n<\/pre>\n<p>\u3053\u308c\u30673\u3064\u306e\u30c9\u30e1\u30a4\u30f3\u3067\u78ba\u8a8d\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nmruby\u306e\u8a18\u8ff0\u306e\u4ed5\u65b9\u306b\u3088\u3063\u3066\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u6bce\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u308b\u3068\u3044\u3046\u30b1\u30fc\u30b9\u3082\u3042\u308b\u307f\u305f\u3044\u306a\u306e\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u8ca0\u8377\u3082\u5909\u308f\u3063\u3066\u304f\u308b\u3068\u601d\u308f\u308c\u307e\u3059\u3002<br \/>\n\u9069\u6750\u9069\u6240\u3067\u3044\u3053\u3046\u305c\u3088\u3002<br \/>\n\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u305b\u3066\u304a\u304f\u3068\u3044\u3046\u3053\u3068\u3082\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u306f\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u6bce\u306b\u53d6\u308b\u3063\u3066\u306e\u3092\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>httpd.conf\u306b\u8ffd\u52a0\u3002<\/p>\n<pre>\nmrubyInsertFilterMiddle \/etc\/httpd\/conf.d\/mruby\/vhost-lo\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3002<\/p>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\r\n#\/usr\/local\/bin\/ruby\r\n# coding: utf-8\r\n\r\nr = Apache::Request.new\r\n\r\nunless Dir.exist?(&quot;\/var\/log\/httpd\/&quot; + r.hostname) then\r\n    Dir.mkdir(&quot;\/var\/log\/httpd\/&quot; + r.hostname , 0705)\r\nend\r\n\r\nr.error_log Apache::APLOG_NOTICE, &quot;r.error_log&quot;\r\nr.error_log_into &quot;\/var\/log\/httpd\/&quot; + r.hostname + &quot;\/error_log&quot;\r\n\r\nApache::return(Apache::OK)\r\n<\/pre>\n<p>\u3053\u306e\u5f8c\u306b\u5404\u30c9\u30e1\u30a4\u30f3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u6c17\u3092\u3064\u3051\u308b\u3079\u304f\u3068\u3053\u308d\u306f\u3084\u3063\u3071\u308a\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3084\u6240\u6709\u8005\u60c5\u5831\u304b\u306a\u3068\u3002<\/p>\n<pre>\n# ls -l \/var\/log\/httpd\/ | grep \"com$\"\ndrwxr-xr-x. 2 apache apache   4096  7\u6708 16 09:37 2015 sayo.example.com\ndrwx---r-x. 2 apache apache   4096  7\u6708 16 09:39 2015 take.example.com\ndrwx---r-x. 2 apache apache   4096  7\u6708 16 09:39 2015 jiro.example.com\n<\/pre>\n<p>\u5b58\u5728\u3057\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30a8\u30e9\u30fc\u3092\u5410\u304b\u305b\u307e\u3059\u3002<\/p>\n<pre>\n# tail \/var\/log\/httpd\/take.example.com\/error_log\n[Thu Jul 16 09:41:15 2015] [error] [client 192.168.24.56] File does not exist: \/home\/take\/public_html\/ijigj\n[Thu Jul 16 09:41:16 2015] [error] [client 192.168.24.56] File does not exist: \/home\/take\/public_html\/ijigj\n[Thu Jul 16 09:41:16 2015] [error] [client 192.168.24.56] File does not exist: \/home\/take\/public_html\/ijigj\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3060\u3068\u6210\u529f\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u6700\u5f8c\u306b\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u3092\u751f\u6210\u3059\u308b\u3063\u3066\u3044\u3046\u4e8b\u3092\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>httpd.conf\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>\nmrubyInsertFilterFirst \/var\/www\/request_dumper.rb\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<pre>\nvim \/var\/www\/request_dumper.rb\n<\/pre>\n<pre class=\"brush: ruby; title: ; notranslate\" title=\"\">\r\nLOG_FILE = &quot;\/var\/log\/httpd\/request.txt&quot;\r\nMAX_LEN = 1024\r\nIN_ONE_LINE = false\r\n\r\ndef format_time(time)\r\n  sprintf(&quot;%04d-%02d-%02d %02d:%02d:%02d&quot;,\r\n          time.year, time.month, time.day,\r\n          time.hour, time.min, time.sec\r\n         )\r\nend\r\n\r\ndef log_write(r)\r\n  File.open(LOG_FILE, &quot;a&quot;) do |fh|\r\n    body = r.body.to_s&#x5B;0...MAX_LEN]\r\n    if r.headers_in&#x5B;&quot;Content-Type&quot;].to_s&#x5B;0,9] == &quot;multipart&quot;\r\n      body = body.inspect\r\n    end\r\n    headers_str = r.headers_in.all.map{|k, v| &quot;#{k}: #{v}&quot;}.join(&quot;\\n&quot;)\r\n    record = &#x5B;&quot;&#x5B;#{format_time(Time.now)}]&quot;,\r\n      &quot;#{r.the_request}\\n#{headers_str}&quot;, &quot;#{body}&quot;]\r\n\r\n      if IN_ONE_LINE\r\n        record&#x5B;1] = record&#x5B;1].inspect\r\n        fh.write(record.join(' ') + &quot;\\n&quot;)\r\n      else\r\n        fh.write('='*80 + &quot;\\n&quot; + record.join(&quot;\\n\\n&quot;) + &quot;\\n&quot;)\r\n      end\r\n  end\r\nend\r\n\r\nr = Apache::Request.new\r\nif r.method_number == Apache::M_GET || r.method_number == Apache::M_POST\r\n  log_write(r)\r\nend\r\n<\/pre>\n<p>\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3068\u3053\u3093\u306a\u30ed\u30b0\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<pre>\n================================================================================\n[2015-07-16 10:09:08]\n\nPOST \/ HTTP\/1.1\nHost: sayo.example.com\nConnection: keep-alive\nContent-Length: 0\nCSP: active\nOrigin: chrome-extension:\/\/hgmloofddffdnphfgcellkdfbfbjeloo\nUser-Agent: Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/43.0.2357.134 Safari\/537.36\nhoge: null\nContent-Type: application\/x-www-form-urlencoded\nAccept: *\/*\nAccept-Encoding: gzip, deflate\nAccept-Language: ja,en-US;q=0.8,en;q=0.6\n\n\n================================================================================\n[2015-07-16 10:09:20]\n\nPOST \/ HTTP\/1.1\nHost: take.example.com\nConnection: keep-alive\nContent-Length: 0\nCSP: active\nOrigin: chrome-extension:\/\/hgmloofddffdnphfgcellkdfbfbjeloo\nUser-Agent: Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/43.0.2357.134 Safari\/537.36\nhoge: null\nContent-Type: application\/x-www-form-urlencoded\nAccept: *\/*\nAccept-Encoding: gzip, deflate\nAccept-Language: ja,en-US;q=0.8,en;q=0.6\n<\/pre>\n<p>\u307b\u307c\u307b\u307c\u30b3\u30d4\u30fc\u3057\u3066\u74b0\u5883\u3092\u5408\u308f\u305b\u3066\u3068\u3044\u3046\u4f5c\u696d\u3067\u3057\u305f\u304c\u3069\u3046\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u307c\u3093\u3084\u308a\u301c\u301c\u3063\u3068\u3067\u3059\u304c\u3001mod_mruby\u304c\u3069\u3046\u3044\u3046\u3082\u306e\u306a\u306e\u304b\u3063\u3066\u306e\u306f\u3058\u308f\u3058\u308f\u3068\u611f\u3058\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\nharasou\u3055\u3093\u306e\u30b9\u30e9\u30a4\u30c9\u3067\u307f\u305f\u3088\u3046\u306a\u30d7\u30ed\u30bb\u30b9\u5236\u9650\u3084DoS\u5bfe\u7b56\u3068\u304b\u3082\u6642\u9593\u304c\u3042\u308c\u3070\u6311\u6226\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u4eca\u65e5\u306f\u3053\u306e\u8fba\u3067\u3002<br \/>\n\u5206\u304b\u3089\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u6642\u523b\u306e\u540c\u671f\u3092\u3068\u3063\u3066\u306a\u3044\u306e\u3067\u3001\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c\u3081\u3061\u3083\u304f\u3061\u3083\u3067\u3059\u30fb\u30fb\u3002<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=5415\" data-text=\"Ruby\u306e\u672a\u6765\u3092\u611f\u3058\u308b\u3088\u3046\u306amod_mruby\u3067Apache\u3068\u622f\u308c\u3066\u307f\u308b\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fmod_mruby\u3092\u4f7f\u3063\u3066Apache\u3068\u622f\u308c\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 mod_mruby\u3068\u306f\u3001\u30da\u30d1\u30dc\u306eMATSUMOTO Ryosuke\u6c0f\u304c\u4f5c\u6210\u3055\u308c\u305fApache\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3001Ruby\u3092\u4f7f\u3063\u3066Apache\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u4f5c &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=5415\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Ruby\u306e\u672a\u6765\u3092\u611f\u3058\u308b\u3088\u3046\u306amod_mruby\u3067Apache\u3068\u622f\u308c\u3066\u307f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-5415","post","type-post","status-publish","format-standard","hentry","category-server"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5415"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5415\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}