Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

pls help hacking httpd-code

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


list at meinsenf

Dec 11, 2001, 2:28 AM

Post #1 of 2 (85 views)
Permalink
pls help hacking httpd-code

hi,

I use mod_rewrite as proxy:
^(.*)$ http://proxy/$1 [P]

example-request: "http://webserver/"
apache fetches the result from "proxy", but there is written "proxy" in the host-header!!!
I want apache write not "proxy" in the host-header, but "webserver"!

any hint, which file to hack???

thank you very much
any help appreciated!!!!

michi


joshua at slive

Dec 11, 2001, 9:24 AM

Post #2 of 2 (85 views)
Permalink
RE: pls help hacking httpd-code [In reply to]

> From: Michael Reutter [mailto:list [at] meinsenf]

> I use mod_rewrite as proxy:
> ^(.*)$ http://proxy/$1 [P]
>
> example-request: "http://webserver/"
> apache fetches the result from "proxy", but there is written
> "proxy" in the host-header!!!
> I want apache write not "proxy" in the host-header, but "webserver"!
>
> any hint, which file to hack???
>

It sounds like what you really want is port-forwarding, rather than a proxy
server. Your OS can probably do that for you.

If you really want a hacked mod_proxy, the file to go at is probably
src/modules/proxy/proxy_http.c

The necessary changes look pretty simple.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.