Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 12206 invoked by uid 6000); 27 Mar 1999 23:20:08 -0000 Received: (qmail 11794 invoked by uid 2001); 27 Mar 1999 23:20:01 -0000 Date: 27 Mar 1999 23:20:01 -0000 Message-ID: <19990327232001.11792.qmail@hyperreal.org> To: apache-bugdb@apache.org Cc: apache-bugdb@apache.org, From: Jarkko Saloranta Subject: general/3912: Apache adds Content-Location with ProxyPass Reply-To: Jarkko Saloranta Sender: apache-bugdb-owner@apache.org Precedence: bulk The following reply was made to PR general/3912; it has been noted by GNATS. From: Jarkko Saloranta To: lars@apache.org Cc: apbugs@apache.org Subject: general/3912: Apache adds Content-Location with ProxyPass Date: Sun, 28 Mar 1999 01:11:29 +0200 (EET) On 21 Feb 1999 lars@apache.org wrote: > Synopsis: Apache adds Content-Location with ProxyPass > > State-Changed-From-To: open-feedback > State-Changed-By: lars > State-Changed-When: Sat Feb 20 16:40:35 PST 1999 > State-Changed-Why: > > Try using "UseCanonicalName Off" on your backend-servers. I investigted this more. And you are right that the backend server adds that header. It adds when requesting an URI like: http://www.somesite.com/something/ and it adds Content-Location: http://www.somesite.com/something/index.html The problem here is that in many cases these backend servers are not very configurable. I am unable to strip that Content-Location header with that backend-servers that sends it. Apache module mod_headers has the ability to unset http-headers, but it seems that it won't work with ProxyPass. I added lines like this to my httpd.conf: ProxyPass /somelocation http://somesite/someplace/ ProxyPassReverse /somelocation http://somesite/someplace/ Header unset Content-Location Apache did not strip Content-Location header with this configuration I also tried this: Header unset Content-Location But apache still did not strip Content-Location headers. So I would like to see mod_headers and ProxyPass working together -- Jarkko Saloranta Kajaani Telephone company jarkko.saloranta@kpo.fi