Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 76059 invoked from network); 18 Apr 2008 22:50:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Apr 2008 22:50:57 -0000 Received: (qmail 74913 invoked by uid 500); 18 Apr 2008 22:50:46 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 74890 invoked by uid 500); 18 Apr 2008 22:50:46 -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 74879 invoked by uid 99); 18 Apr 2008 22:50:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 15:50:46 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.216.121.155] (HELO smtp155.sat.emailsrvr.com) (66.216.121.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 22:50:03 +0000 Received: from relay5.relay.sat.mlsrvr.com (localhost [127.0.0.1]) by relay5.relay.sat.mlsrvr.com (SMTP Server) with ESMTP id 07BAF20D73A for ; Fri, 18 Apr 2008 18:50:16 -0400 (EDT) Received: by relay5.relay.sat.mlsrvr.com (Authenticated sender: pkarthick-AT-premiertechnologygroup.com) with ESMTP id 8781E21193F for ; Fri, 18 Apr 2008 18:50:15 -0400 (EDT) From: "Karthick P" To: References: <01a601c8a0a6$131ca9c0$ca14a8c0@hq.ezdata.com> Date: Fri, 18 Apr 2008 15:50:10 -0700 Message-ID: <026301c8a1a6$8eb3f2e0$1501a8c0@hq.ezdata.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcigpzPawYvB3c65Q2qezWEyE1epRAA/wlTA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] mod_expires in Apache 2.0.54 It works as expected. An other query is that which option would be best to set this expiration, or . Thank You, Karthick P Hosting Services Group Mobile: 1-626-644-7562 Office: 1-626-585-3505 x7303 ________________________________ The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. ________________________________ -----Original Message----- From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of Joshua Slive Sent: Thursday, April 17, 2008 9:22 AM To: users@httpd.apache.org Subject: Re: [users@httpd] mod_expires in Apache 2.0.54 On Thu, Apr 17, 2008 at 12:14 PM, Karthick P wrote: > > > > > Hello everyone, > > > > We have been using Apache 2.0.54 on SLES as our hosting standard for all our > applications. We have enabled the mod_expires in apache to set the > expiration settings for the static content like JPEG, GIF, JS, etc. There is > a requirement that the expiration settings should be set at the directory > level. Currently, it is set based on the file extension (or MIME). > > > > E.G. /directory1/*.js -> expires after 5 hours while the /directory2/*.js > expires after 30 days. > > > > I have read the apache docs for mod_expires, it does not have any info on > this. If anyone has any idea on this, please share. The docs note that these directives are valid in "directory" context, which means they can be placed in // sections. See: http://httpd.apache.org/docs/2.2/sections.html So for example, you can do ExpiresByType whatever/whatever "access plus 5 hours" ExpiresByType whatever/whatever "access plus 30 days" Joshua. --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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