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 -- Tzafrir Cohen mailto:[EMAIL PROTECTED] http://www.technion.ac.il/~tzafrir ================================================================= 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]
