httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hayward http://JonathansCorner.com" <christos.jonathan.hayw...@gmail.com>
Subject Re: [users@httpd] .htaccess/Expires/Cache-Control: 500 error
Date Sun, 21 Oct 2007 01:58:11 GMT
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

Mime
View raw message