Ticket #1099 (new enhancement)

Opened 1 year ago

Last modified 7 months ago

Something like "X-Orig-From"-Header for proxy

Reported by: lighttpd@moritz.augsburger.name Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.5.x-svn
Severity: normal Keywords:
Cc: Blocking:
Need Feedback: 0

Description

It would be great if there was some option like proxy.x-orig-header in mod_proxy and server.use-x-orig, so that the reverse proxy adds an additional header before forwarding the request to the backend.

This way, it would be possible to have the "correct" IP in the logfiles, and also use eg $_SERVER['REMOTE_ADDR'] in PHP even with a lighty behind another lighty as reverse proxy.

Attachments

Change History

12/06/2007 04:54:37 PM changed by debug

  • pending changed.

Is it going to be implemented at all?

12/06/2007 04:58:50 PM changed by darix

sounds like mod_extforward. did you test that?

12/06/2007 05:02:49 PM changed by debug

thank you for information. I'll check and will let you know if it is ok.

12/06/2007 05:11:09 PM changed by debug

It looks like mod_extforward should be used on lighttpd which is behind another lighttpd, correct?

But we have apache behind lighttpd. All requests are coming to apache with IP address of lighttpd. And I am afraid that mod_extforward won't help in this case :(

12/06/2007 05:16:33 PM changed by darix

12/06/2007 05:26:58 PM changed by debug

Thanks a lot, I believe this is what I was looking for.


Add/Change #1099 (Something like "X-Orig-From"-Header for proxy)




Change Properties