abdulsalam3105 commented on issue #12064:
URL:
https://github.com/apache/trafficserver/issues/12064#issuecomment-2698492522
after implement lua script and added required things in remap.config,
received below error in diags.log
[Mar 4 19:02:57.979] traffic_server WARNING: ignoring invalid remap option
'@param=/etc/trafficserver/set_host.lua'
[Mar 4 19:02:58.054] traffic_server ERROR: [ReverseProxy] failed to add
remap rule at /etc/trafficserver/remap.config line 19: failed to create
instance for plugin /usr/lib64/trafficserver/plugins/tslua.so:
[TSRemapNewInstance] - lua script file or string is required !!
[Mar 4 19:02:58.054] traffic_server WARNING: something failed during
BuildTable() -- check your remap plugins!
[Mar 4 19:02:58.054] traffic_server FATAL: remap.config failed to load
my set_host.lua
function do_remap()
-- Set the Host header to the Traffic Server URL
ts.client_request.header['Host'] = 'trafficserverurl'
return 0
end
remap.config
map https://trafficserverurl.com/ https://ibmhttpd.com
@plugin=/usr/lib64/plugins/trafficserver/tslua.so
@pparam=/etc/trafficserver/set_host.lua
reverse_map https://ibmhttpd.com/ https://trafficserverurl.com
can you help me to fix this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]