-
Notifications
You must be signed in to change notification settings - Fork 0
Directives
Ryo Okubo edited this page Jun 20, 2016
·
2 revisions
ts_mruby provides two loading methods, global plugin and remap 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
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