Skip to content
Ryo Okubo edited this page Jun 20, 2016 · 2 revisions

Directives to use ts_mruby

ts_mruby provides two loading methods, global plugin and remap plugin.

global plugin

If you expect that ts_mruby effects all of requests/responses, you use it as global plugin by modifying plugin.config. You can write this config below format:

ts_mruby.so etc/trafficserver/unified_hello.rb

remap plugin

If you expect that ts_mruby effects specified requests/responses, you use it as remap plugin by modifying remap.config. You can write this config below format:

# Effect only accesses to /test
map /test http://127.0.0.1/ @plugin=ts_mruby.so @pparam=etc/trafficserver/unified_hello.rb
Clone this wiki locally