The Artima Developer Community
Sponsored Link

Java Buzz Forum
mod_proxy_add_forward no longer necessary

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chris Winters

Posts: 931
Nickname: cwinters
Registered: Jul, 2003

Daytime: Java hacker; nighttime: Perl hacker; sleeptime: some of both.
mod_proxy_add_forward no longer necessary Posted: Oct 1, 2003 3:22 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Chris Winters.
Original Post: mod_proxy_add_forward no longer necessary
Feed Title: cwinters.com
Feed URL: http://www.cwinters.com/search/registrar.php?domain=jroller.com®istrar=sedopark
Feed Description: Chris Winters on Java, programming and technology, usually in that order.
Latest Java Buzz Posts
Latest Java Buzz Posts by Chris Winters
Latest Posts From cwinters.com

Advertisement
mod_proxy_add_forward.c - If you've setup an Apache HTTP proxy for your application server [1] then you've probably run into the problem of keeping your addresses straight. That is, since you've got A requesting from B and B requesting from C, how does the heavyweight server (C) know where the original request (A) came from?

If you were using Apache and mod_proxy you could use a tiny little module called mod_proxy_add_forward. This would add the header 'X-Forwarded-For' to the request sent to the application server, which presumably had sufficient hooks to pull out the value and use it for its own request. And for the last so many years this was as much a part of my Apache build process as ./configure.

Today I needed to set this up but didn't have my usual free rein over compiling the front end server. I needed to compile a DSO instead of just build it in statically as normal - PITA. After fumbling about with it a while, and failing, I went googling and found the above message, the important part of which is:

As you may know then the proxy module in httpd 2.0 incorporates the X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Server functionality of mod_proxy_add_forward.c.
I just noticed that Thomas Eibner got the proxy people to put it into apache 1.3 too since 1.3.25.

How did I miss that? And now that I've contributed some more minutes to the 'needlessly spinning my wheels' bank I'll expect to make a withdrawl, with interest, in the near future...

[1] lightweight http server delivering static content and passing along other requests to a heavyweight http/application server

Read: mod_proxy_add_forward no longer necessary

Topic: Java is an AH-64 Apache Attack Helicopter Previous Topic   Next Topic Topic: Poseidon 2.0.1

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use