mod_proxy feature to remove part of the URI when passing along requests...
With mod_proxy, there's currently no way to let you map requests from http://somedomain.com/path/ to http://internalserver/. This is because the proxy will pass /path/ as the request URI to 'internalserver' instead of '/'.
mod_proxy needs to have an extra setting that either says "remove <extension> from the target URI", or "remove this from the target URI: '/somepath/'".
Updated by gstrauss over 3 years ago
- Description updated (diff)
- Assignee deleted (
- Priority changed from High to Low
Much of what is requested here can be done by writing custom lua code and using mod_magnet. Another alternative is to use the scripting language of your choice to do the translation on the backend server that receives the proxied request.
However, to add this to lighttpd configuration settings is not a minor enhancement -- it would be a substantial amount of work. Supporting "Apache-style" ProxyPass and ProxyPassReverse would also require writing a user-interface to support various, complex, user-configurable settings, even if that user-interface was similar to Apache ProxyPass and ProxyPassReverse. When there were many fewer "programmers" than there are now, maybe learning how to program the "Apache-style" config language was more worthwhile than it is today. Today, I would suggest learning a scripting language is, at least in some cases, more worthwhile than learning the "Apache-style" config language.
Also available in: Atom