Re: How to FilesMatch files within a certain domain

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

 



On Sun, Mar 30, 2008 at 5:05 AM, thomas Armstrong <tarmstrong@xxxxxxxxx> wrote:
> Hi.
>
>  I want to cache multimedia files by using "mod_expires" and created
>  this rule within my ".htaccess" file:
>  -------
>  ExpiresActive On
>  <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|swf)$">
>  ExpiresDefault A29030400
>  </FilesMatch>
>  --------
>
>  However, this ".htaccess" file is shared by five VirtualHosts, and I
>  would like to determine which VirtualHost must cache multimedia files.
>  I mean:
>  - "static.foo.com" must cache files
>  - "www.foo.com" must not
>
>  I tried with SERVER_NAME variable, but it won't work. I'd be grateful
>  if somebody could give me a hint to build the rule.

Do it in httpd.conf inside the <VirtualHost> section, not in .htaccess.

Joshua.

---------------------------------------------------------------------
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