HTTP Hostname for reverse proxy

HTTP Hostname for reverse proxy

am 12.02.2003 16:37:22 von Manon Goo

--==========2147493761==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Is there any possibility to tell the realserver whct the hostname is ?

I want to use ProxyPass /x http://10.1.1.1/

but I want to send "backendserver" in the HTTP Header to the host

Manon
--==========2147493761==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+Smoy4N5kPCP8wnsRAldPAJ9secG2KdY30uDTGyMVEfzNQ15ncQCg 1pVh
qe4fHjMseJBI9MHqpMzPg/c=
=/PZJ
-----END PGP SIGNATURE-----

--==========2147493761==========--

Re: HTTP Hostname for reverse proxy

am 12.02.2003 17:37:38 von Graham Leggett

Manon Goo wrote:

> Is there any possibility to tell the realserver whct the hostname is ?

What do you mean by "real server" and "hostname"?

> I want to use ProxyPass /x http://10.1.1.1/
>
> but I want to send "backendserver" in the HTTP Header to the host

Use the "Header" directive to add arbitrary headers in the response to
the browser.

If you want the backend server to know the IP address of the browser,
look for the X-Forwarded-For header.

Regards,
Graham
--
-----------------------------------------
minfrin@sharp.fm "There's a moon
over Bourbon Street
tonight..."

Re: HTTP Hostname for reverse proxy

am 12.02.2003 17:54:05 von Geff

Graham,

I think what he means is if he's RPing a site (http://a/) and his app
is coded to check the host_header value (if host == a) to see how it
should behave. While that coding style is questionable, perhaps it's
necessary for some reason.

The way we have done it at one of my clients is to set up a /etc/hosts
with hostname b and the destination ip. Then config the ProxyPass to
that name (http://b/). So at least they get a hostname they can track
without too much recoding of the web app. I was hoping for something
better than that, so I was trying to wait for a response. :) Was hoping
you could artificially populate the host header variable to the "real"
web server. But I haven't found any way to do that. There is a
variable X-forwarded-host and x-forwarded-server that both seem to
represent host a (the original request from the browser). Is this
accurate?

Geff

On Wed, 2003-02-12 at 08:37, Graham Leggett wrote:
> Manon Goo wrote:
>
> > Is there any possibility to tell the realserver whct the hostname is ?
>
> What do you mean by "real server" and "hostname"?
>
> > I want to use ProxyPass /x http://10.1.1.1/
> >
> > but I want to send "backendserver" in the HTTP Header to the host
>
> Use the "Header" directive to add arbitrary headers in the response to
> the browser.
>
> If you want the backend server to know the IP address of the browser,
> look for the X-Forwarded-For header.
>
> Regards,
> Graham
> --
> -----------------------------------------
> minfrin@sharp.fm "There's a moon
> over Bourbon Street
> tonight..."
>

Re: HTTP Hostname for reverse proxy

am 13.02.2003 15:28:36 von Manon Goo

--==========2147493761==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline



--On Mittwoch, 12. Februar 2003 18:37 Uhr +0200 Graham Leggett=20
wrote:

> Manon Goo wrote:
>
>> Is there any possibility to tell the realserver whct the hostname is ?
>
> What do you mean by "real server" and "hostname"?

I want that reverse proxy connects to "real server" and sends:

GET /bla/bla HTTP/1.1
HOST: hostname

I would like to configure modproxy that it does nots send
the host part of the url in the ProxyPass line but someting different.


>
>> I want to use ProxyPass /x http://10.1.1.1/
>>
>> but I want to send "backendserver" in the HTTP Header to the host
>
> Use the "Header" directive to add arbitrary headers in the response to
> the browser.
>
> If you want the backend server to know the IP address of the browser,
> look for the X-Forwarded-For header.
>
> Regards,
> Graham
> --
> -----------------------------------------
> minfrin@sharp.fm "There's a moon
> over Bourbon Street
> tonight..."
>


--==========2147493761==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+S6uU4N5kPCP8wnsRAs40AKCBZYTjXhiIf6B0Ij0zQ545FAnztACg 4FVg
463gvWTZveQHjN5n+y3zrlQ=
=0jcX
-----END PGP SIGNATURE-----

--==========2147493761==========--

RE: HTTP Hostname for reverse proxy

am 13.02.2003 15:31:42 von robin.blanchard

You could 'lie' to the apache server by overriding DNS with an entry in
/etc/hosts. This is how one rev proxies for Exchange2000 OWA.


-----Original Message-----
From: Manon Goo [mailto:manon@manon.de]=20
Sent: Thursday, February 13, 2003 9:29 AM
To: modproxy-dev@apache.org
Subject: Re: HTTP Hostname for reverse proxy




--On Mittwoch, 12. Februar 2003 18:37 Uhr +0200 Graham Leggett=20
wrote:

> Manon Goo wrote:
>
>> Is there any possibility to tell the realserver whct the hostname is=20
>> ?
>
> What do you mean by "real server" and "hostname"?

I want that reverse proxy connects to "real server" and sends:

GET /bla/bla HTTP/1.1
HOST: hostname

I would like to configure modproxy that it does nots send
the host part of the url in the ProxyPass line but someting different.


>
>> I want to use ProxyPass /x http://10.1.1.1/
>>
>> but I want to send "backendserver" in the HTTP Header to the host
>
> Use the "Header" directive to add arbitrary headers in the response to

> the browser.
>
> If you want the backend server to know the IP address of the browser,=20
> look for the X-Forwarded-For header.
>
> Regards,
> Graham
> --
> -----------------------------------------
> minfrin@sharp.fm "There's a moon
> over Bourbon Street
> tonight..."
>

----------------------------------------
Robin P. Blanchard
Systems Integration Specialist
Georgia Center for Continuing Education
fon: 706.542.2404 <|> fax: 706.542.6546
----------------------------------------

RE: HTTP Hostname for reverse proxy

am 13.02.2003 15:33:26 von Manon Goo

--==========2147501163==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I'm doing this currently but this is confusing other services on the proxy=20
server.



--On Donnerstag, 13. Februar 2003 9:31 Uhr -0500 "Robin P. Blanchard"=20
wrote:

>
> You could 'lie' to the apache server by overriding DNS with an entry in
> /etc/hosts. This is how one rev proxies for Exchange2000 OWA.
>
>
> -----Original Message-----
> From: Manon Goo [mailto:manon@manon.de]
> Sent: Thursday, February 13, 2003 9:29 AM
> To: modproxy-dev@apache.org
> Subject: Re: HTTP Hostname for reverse proxy
>
>
>
>
> --On Mittwoch, 12. Februar 2003 18:37 Uhr +0200 Graham Leggett
> wrote:
>
>> Manon Goo wrote:
>>
>>> Is there any possibility to tell the realserver whct the hostname is
>>> ?
>>
>> What do you mean by "real server" and "hostname"?
>
> I want that reverse proxy connects to "real server" and sends:
>
> GET /bla/bla HTTP/1.1
> HOST: hostname
>
> I would like to configure modproxy that it does nots send
> the host part of the url in the ProxyPass line but someting different.
>
>
>>
>>> I want to use ProxyPass /x http://10.1.1.1/
>>>
>>> but I want to send "backendserver" in the HTTP Header to the host
>>
>> Use the "Header" directive to add arbitrary headers in the response to
>
>> the browser.
>>
>> If you want the backend server to know the IP address of the browser,
>> look for the X-Forwarded-For header.
>>
>> Regards,
>> Graham
>> --
>> -----------------------------------------
>> minfrin@sharp.fm "There's a moon
>> over Bourbon Street
>> tonight..."
>>
>
> ----------------------------------------
> Robin P. Blanchard
> Systems Integration Specialist
> Georgia Center for Continuing Education
> fon: 706.542.2404 <|> fax: 706.542.6546
> ----------------------------------------
>


--==========2147501163==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+S6y24N5kPCP8wnsRAsyWAJ4p2UH+Rle1aTrlMIbd/BHkdVsc3ACg wUBV
0SNXI6DOubBDYtwP78rxuSc=
=nFbv
-----END PGP SIGNATURE-----

--==========2147501163==========--