Re: How can I configure setting a Header in httpd.conf based on content type?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx> wrote:
Ah thanks, that would explain it as yes, it's a proxy.


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 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux