Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 93534 invoked from network); 21 Oct 2007 02:00:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2007 02:00:37 -0000 Received: (qmail 46117 invoked by uid 500); 21 Oct 2007 02:00:14 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 46095 invoked by uid 500); 21 Oct 2007 02:00:14 -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 46084 invoked by uid 99); 21 Oct 2007 02:00:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2007 19:00:14 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christos.jonathan.hayward@gmail.com designates 209.85.198.187 as permitted sender) Received: from [209.85.198.187] (HELO rv-out-0910.google.com) (209.85.198.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2007 02:00:16 +0000 Received: by rv-out-0910.google.com with SMTP id l15so746535rvb for ; Sat, 20 Oct 2007 18:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=c4zOKwX2OkG+PNz2M79lNiVyiaAgad/ruWfwfZ5fhGs=; b=sDmTzUGJfN8qQP5jUh7C0O6bb0leuDNUd4a4GAq1sktrHltw5NqMEIrOsogZxY944Z8CfeXrwbul94uuWtRCLzm09jmNSPUvHipYluto7PFSkecZ01vijKZG4KFs/H+CEIfn7i4xiKVzksNU8uZEjx7SmEBAlVNotGbOz2pX2rg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=oN/HvLEjsZIx5DQ+cbSfxKmGp9I7vYvXDTJPQ3Eg/8baflvY/IGI8VN+mnesYA4COkWNgk9LORbquuxYZOPgJL432h5huTZv5+1c0gdQSWFidPM4TDrWd0vZVWFbuR7oqyZ6tu6c+QMAEVd36k4SqNEHTLTlt7FcxfRbksBCm2c= Received: by 10.141.172.6 with SMTP id z6mr1710053rvo.1192931994817; Sat, 20 Oct 2007 18:59:54 -0700 (PDT) Received: by 10.141.87.7 with HTTP; Sat, 20 Oct 2007 18:59:54 -0700 (PDT) Message-ID: Date: Sat, 20 Oct 2007 20:59:54 -0500 From: "Jonathan Hayward http://JonathansCorner.com" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5241_19088688.1192931994803" References: X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] .htaccess/Expires/Cache-Control: 500 error ------=_Part_5241_19088688.1192931994803 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Just for sanity's sake--could you check that the date is appropriately formatted, and if the date format is causing problems, give an appropriate format for "Mon, 1 Jan 2007 1:00:00 GMT" or "Mon, 01 Jan 2007 01:00:00 GMT"? On 10/20/07, Jonathan Hayward http://JonathansCorner.com < christos.jonathan.hayward@gmail.com> wrote: > > The documentation I had seen -- http://www.askapache.com/htaccess/apache-speed-expires.html > , http://www.askapache.com/htaccess/apache-speed-cache-control.html , gave > a double backslash, and my experimenting with a single backslash didn't > work. > > The following (with a single backslash) is enough to give an internal > server error: > > > Header set Expires "Sun, 18 Nov 2007 14:35:41 GMT" > > > On 10/20/07, Joshua Slive wrote: > > > > On 10/19/07, Jonathan Hayward http://JonathansCorner.com > > wrote: > > > I am getting an internal server error (500) if I place the following > > in my > > > ROOT .htaccess: > > > > What does the apache error log say? > > > > I'm not sure why you are using a double-slash at the beginning of the > > regexes. It seems you only want a single. > > > > 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 > > > > > > > -- > ++ Jonathan Hayward, jonathan.hayward@pobox.com > ** To see an award-winning website with stories, essays, artwork, > ** games, and a four-dimensional maze, why not visit my home page? > ** All of this is waiting for you at http://JonathansCorner.com > -- ++ Jonathan Hayward, jonathan.hayward@pobox.com ** To see an award-winning website with stories, essays, artwork, ** games, and a four-dimensional maze, why not visit my home page? ** All of this is waiting for you at http://JonathansCorner.com ------=_Part_5241_19088688.1192931994803 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Just for sanity's sake--could you check that the date is appropriately formatted, and if the date format is causing problems, give an appropriate format for "Mon,  1 Jan 2007  1:00:00 GMT" or "Mon, 01 Jan 2007 01:00:00 GMT"?

On 10/20/07, Jonathan Hayward http://JonathansCorner.com < christos.jonathan.hayward@gmail.com> wrote:
The documentation I had seen -- http://www.askapache.com/htaccess/apache-speed-expires.html , http://www.askapache.com/htaccess/apache-speed-cache-control.html , gave a double backslash, and my experimenting with a single backslash didn't work.

The following (with a single backslash) is enough to give an internal server error:

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|css|swf)$">
Header set Expires "Sun, 18 Nov 2007 14:35:41 GMT"
</FilesMatch>

On 10/20/07, Joshua Slive < joshua@slive.ca> wrote:
On 10/19/07, Jonathan Hayward http://JonathansCorner.com
< christos.jonathan.hayward@gmail.com> wrote:
> I am getting an internal server error (500) if I place the following in my
> ROOT .htaccess:

What does the apache error log say?

I'm not sure why you are using a double-slash at the beginning of the
regexes. It seems you only want a single.

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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




--
++ Jonathan Hayward, jonathan.hayward@pobox.com
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com



--
++ Jonathan Hayward, jonathan.hayward@pobox.com
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com ------=_Part_5241_19088688.1192931994803--