Feature #152

mod_proxy feature to remove part of the URI when passing along requests...

Added by Anonymous about 15 years ago. Updated about 3 years ago.

Target version:


With mod_proxy, there's currently no way to let you map requests from 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 Anonymous about 15 years ago

I think this would be very useful too. It is like ProxyPass and ProxyPassReverse for apache.

-- miles.wu


Updated by Anonymous almost 15 years ago

Add another vote for this.

-- cpisto


Updated by Anonymous almost 15 years ago

Add another vote for this.

-- cpisto


Updated by Anonymous about 14 years ago


-- zimbatm


Updated by Anonymous almost 14 years ago

I could use this feature as well

I'm currently using mod_rewrite to 'fix' the URI before it is processed on the target system.


Updated by gstrauss about 4 years ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • 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.


Updated by gstrauss over 3 years ago

  • Status changed from New to Patch Pending
  • Target version set to 1.4.46

Experimental feature added with new directive proxy.header = ( ... )

Please see DevelGit and checkout branch personal/gstrauss/master to give it a try.


Updated by gstrauss about 3 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom