Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 99157 invoked from network); 11 Mar 2010 14:01:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Mar 2010 14:01:39 -0000 Received: (qmail 78332 invoked by uid 500); 11 Mar 2010 14:01:02 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 78319 invoked by uid 500); 11 Mar 2010 14:01:02 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 78311 invoked by uid 99); 11 Mar 2010 14:01:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 14:01:01 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of baljeet.nijjhar@googlemail.com designates 74.125.78.147 as permitted sender) Received: from [74.125.78.147] (HELO ey-out-1920.google.com) (74.125.78.147) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 14:00:55 +0000 Received: by ey-out-1920.google.com with SMTP id 5so8426eyb.42 for ; Thu, 11 Mar 2010 06:00:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=pEou/4e/4Nv1a/F3nJ6QDrt/hO4y+WngIDf6XgPNolQ=; b=X0afWo+U1VoOoG13U+3SFNycsy9mPG7hcMQG5Ehl0m2XjMsgMT9SfAziBMmxciWwbX VsV0WNhwBhM4IRIda+ULWI3nAkZbZ1Ru0ePqQ321k5uFB4TxDKXLI8rQKjaDy9XdBRuk yrdlIzAOa1SA2MdAq/CiyhEcL9CZm6u/gADdM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=xqM+cXKXx7hZpdW/Q7A0Tg8aztXwIXqK4wSQ+4wUNOvKLWHmPpOV9Vu69BRHG6y3A4 mM2m7OTAT7zqtrI1faJAPl2bORgNbeoyk1Axv10uzyIVm7Fgn5G1sfbYEDbj03rtLYb1 YvmQ9jfVMcQeDC/oujMsJW30q+0wr0sQbhYiU= MIME-Version: 1.0 Received: by 10.213.104.72 with SMTP id n8mr6155167ebo.13.1268316031227; Thu, 11 Mar 2010 06:00:31 -0800 (PST) In-Reply-To: <1a20111c1003110407q3a1c7ca1s157b417b03aa73fa@mail.gmail.com> References: <27850927.post@talk.nabble.com> <964267231003100733i51d1e702r684be81d4e255738@mail.gmail.com> <1a20111c1003110309o7c12d9e9g98554e867b71faa1@mail.gmail.com> <1a20111c1003110311l46748ec7g2e4bab582f57886a@mail.gmail.com> <1a20111c1003110351u491f8876ge69712c8650964f8@mail.gmail.com> <2e027be01003110403n744c9cc5y5cb9d5f69e863190@mail.gmail.com> <1a20111c1003110407q3a1c7ca1s157b417b03aa73fa@mail.gmail.com> Date: Thu, 11 Mar 2010 14:00:31 +0000 Message-ID: <1a20111c1003110600s4f3b3025hff75f613f8c5f589@mail.gmail.com> From: Baljeet Nijjhar To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=00504502d73681163a048186d6a0 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] How can I configure setting a Header in httpd.conf based on content type? --00504502d73681163a048186d6a0 Content-Type: text/plain; charset=ISO-8859-1 Can I ask, would I have any luck using LocationMatch to distinguish those requests which were for file attachment downloads, except by adding some parameter into the URL or having those pages served from a particular named path that I then search for? I am assuming I could distinguish images, javascript etc through the URL as the URL would end in .gif, .js etc. On Thu, Mar 11, 2010 at 12:07 PM, Baljeet Nijjhar < baljeet.nijjhar@googlemail.com> wrote: > Ah thanks, that would explain it as yes, it's a proxy. > > > On Thu, Mar 11, 2010 at 12:03 PM, Tom Evans wrote: > >> On Thu, Mar 11, 2010 at 11:51 AM, Baljeet Nijjhar >> wrote: >> > In fact, FilesMatch doesnt seem to work for anything (inlcuding the >> string >> > you sent for images etc). I'm using my HTTP server as a proxy server. I >> > wonder if I need to do something with Directory as well ... >> > Right now, I'm feeling like the only solution is to set them up in my >> > application code using a filter. Is this recommended, or must it done at >> the >> > proxy server level? >> > >> >> FilesMatch matches files - real files, existing on disk. If your >> handler doesn't refer to files on local disk, eg proxying, then it >> will never match a Files or FilesMatch section. >> >> The equivalent solution is to use LocationMatch. See >> http://httpd.apache.org/docs/2.2/sections.html#filesystem for details >> on the differences between the two, >> >> Cheers >> >> Tom >> >> --------------------------------------------------------------------- >> The official User-To-User support forum of the Apache HTTP Server Project. >> See for more info. >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >> " from the digest: users-digest-unsubscribe@httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org >> >> > --00504502d73681163a048186d6a0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Can I ask, would I have any luck using LocationMatch to distinguish those r= equests which were for file attachment downloads, except by adding some par= ameter into the URL or having those pages served from a particular named pa= th that I then search for? I am assuming I could distinguish images, javasc= ript etc through the URL as the URL would end in .gif, .js etc.

On Thu, Mar 11, 2010 at 12:07 PM, Baljeet Nijjha= r <b= aljeet.nijjhar@googlemail.com> wrote:
Ah thanks, that would explain it= as yes, it's a proxy.=20


On Thu, Mar 11, 2010 at 12:03 PM, Tom Evans <tevans.uk= @googlemail.com> wrote:
On Thu, Mar 11, 2010 at 11:51 AM= , Baljeet Nijjhar
> In fact, FilesMatch doesnt seem to work for anything (inlcuding t= he string
> you sent for images etc). I'm using my HTTP server as= a proxy server. I
> wonder if I need to do something with Directory = as well ...
> Right now, I'm feeling like the only solution is to set them up in= my
> application code using a filter. Is this recommended, or must i= t done at the
> proxy server level?
>

FilesMatch m= atches files - real files, existing on disk. If your
handler doesn't refer to files on local disk, eg proxying, then it
w= ill never match a Files or FilesMatch section.

The equivalent soluti= on is to use LocationMatch. See
http://httpd.apache.org/doc= s/2.2/sections.html#filesystem for details
on the differences between the two,

Cheers

Tom

------------------------------------------------------------------= ---
The official User-To-User support forum of the Apache HTTP Server Pr= oject.
See <URL:http://httpd.apache.org/userslist.html> for more inf= o.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
=A0 " = =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

<= /blockquote>


--00504502d73681163a048186d6a0--