Tzafrir,

I checked the sources again. Vanilla Apache 1.3.22 *does not* handle
Content-Location. The new HTTP/1.1 mod_proxy *does*. You can get it from the
cvs snapshot at http://cvs.apache.org/snapshots/httpd-proxy/ , or by anonymous
cvs as follows (if your port 2401 is not blocked - it is not blocked by the
Technion's firewall)

$ export CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvspublic
$ cvs login
CVS password: anoncvs
$ cvs checkout httpd-proxy

What you get are new files for mod_proxy and a patch for http_protocol.c in the
directory httpd-proxy/module-1.0 . If you need mod_ssl you can apply its
patches - and apply the two rejects by hand (I did it - it works well).

BTW, if you wait, you'll get everything (I hope) in apache 1.3.23 .

Zvi.
On Mon, 21 Jan 2002, Tzafrir Cohen wrote:

> On Mon, 21 Jan 2002, Zvi Har'El wrote:
>
> > On Sun, 20 Jan 2002, Tzafrir Cohen wrote:
> >
> > > Hi
> > >
> > > I have an apache server serving content from behind a simple firewall. I
> > > would like to allow a certain w2k IIS server to serve some content as
> > > well.
> > >
> > > For various technical reasons I would like to avoid using port forwarding,
> > > and use mod_procxy, or something similar.
> > >
> > > I have added the following to my http.conf:
> > >
> > > ProxyRequests On
> > > #
> > > <Directory proxy:*>
> > >     Order deny,allow
> > >     Deny from all
> > >     # to be changed to 'all' later
> > >     Allow from [my.network]
> > > #     Allow from all
> > > </Directory>
> > >
> > >
> > > ProxyPass /subdir/ http://w2k_server/
> > > ProxyPassReverse /subdir/ http://w2k_server/
> > >
> > >
> > > When I get a url of /subdir/something from my server, I get the page of
> > > /something from w2k_server. However, in the page I get, I get the header
> > >
> > >   Content-Location: http://w2k_server/something
> > >
> > > I can't allow such a thing, because there is no direct external access to
> > > that URL.
> > >
> > >
> > > Isn't mod_proxy supposed to rewrite those headers?
> > > I found no mention of the fact that it doesn't on its documentation. I saw
> > > an old post that mentions a similar problem (but refers to apache 1.2.4).
> > >
> > > Any idea how to tell mod_proxy to rewrite this, or how to rewrite this
> > > header myself?
> > >
> > > Thanks
> > >
> > >
> > The whole idea of ProxyPassReverse is to do exactly this, i.e, to take
> > Location, URI and Content-Location headers and map them back to the reverse
> > proxy URL space. Apache 1.3.22 does it for sure. I don't know which version of
> > Apache you are using. The documentation says "ProxyPassReverse is only
> > available in Apache 1.3b6 and later." Although it mentions only the Location
> > header, the code handles URI and Content-Location headers in the same way, but
> > I don't know when this handling started. If you wish I can check it in the CVS,
> > but I think you had better upgrade. If you do use 1.3.22, write again.
>
> I am using 1.3.22
>
> > BTW,
> > aparantly the next release, 1.3.23, will include a major mod_proxy face
> > lifting, to support HTTP 1.1 completely. The code is already in the CVS, and I
> > am using it to my best satisfaction in combination with apache 1.3.22 and
> > mod_ssl.
>
> I'll try to try it later. Thanks
>
>

-- 
Dr. Zvi Har'El     mailto:[EMAIL PROTECTED]     Department of Mathematics
tel:+972-54-227607                   Technion - Israel Institute of Technology
fax:+972-4-8324654 http://www.math.technion.ac.il/~rl/     Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                               Monday, 8 Shevat 5762, 21 January 2002,  4:39PM


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to