Hi Hugo,
when I use a static site like hugo.html and want to redirect to hugo.cgi, I could try two ways:
1.)
UrlToolkit {
ToolkitId = translate_url
Match ^/hugo.html Rewrite /cgi-bin/hugo.cgi
}
VirtualHost {
...
UseToolkit = translate_url
ReverseProxy /cgi-bin http://localhost:8080
}
2.)
VirtualHost {
...
ReverseProxy ^/hugo.html http://localhost:8080/cgi-bin/hugo.cgi
}
Way 1 is 404.
Way 2 is working. But in Browser I see http://testdomain.com/cgi-bin/hugo.cgi
and I want to see: http://testdomain.com/hugo.html
I think I know, why Way 1 is not working. Hiawatha is using the ReverseProxy before it is translating the URL ins the Toolkit.
But I need it in this way, because the ReverseProxy is a Apache with mod_perl. I can't change all the Perl-Scripts to fast-cgi.
And mod_perl is much faster than plain cgi in hiawatha.
I think there is no way to change the order: ReverseProxy <--> translate_url ?
Maybe the is an undocumented order switch?
Maybe there is a possibility to implement an order_switch?
Thanks for feedback.
Greetings Heiko
Hiawatha version: 9.0
Operating System: OpenBSD 5.2 / Ubuntu 12.04