I have an embedded device that is running a Hiawatha web server. I view/configure my embedded website via this Hiawatha web server using IP address. I do not support DNS resolution. I need to redirect some subfolder of my website to another IP. E.g. my Web server address is 172.26.5.5, but the hiawatha.conf contains hostname=127.0.0.1 , and I can successfully reach my embedded site. Now I need to redirect 172.26.5.5/somefolder/*.html requests to IP 192.168.6.6, that is not reachable from outside. How can I configure the VirtualHost section (hostname, ReverseProxy, something else) in hiawatha.conf in order to achieve my goal? Note, the second IP address is running lighttpd.
Thanks a lot!
Hugo Leisink
31 July 2016, 08:34
Use the UrlToolkit for that:
UrlToolkit { ToolkitID = redirect Match ^/(somefolder/.*\.html) Redirect http://192.168.6.6/$1 }