backend octoprint reqrep ^([^\ :]*)\ /octoprint/(.*) \1\ /\2 reqadd X-Script-Name:\ /octoprint option forwardfor server octoprint1 127.0.0.1:5000
backend octoprint ... reqadd X-Scheme:\ https if { ssl_fc } ...
http-request replace-path ^([^\ :]*)\ /octoprint/(.*) \1\ /\2http-request add-header X-Script-Name /octoprintoption forwardforacl needs_scheme req.hdr_cnt(X-Scheme) eq 0http-request set-header X-Forwarded-Proto https if { ssl_fc }http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
http-request set-header X-Forwarded-Proto https if { ssl_fc }