Re: .htaccess/Expires/Cache-Control: 500 error

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

 



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@xxxxxxxx> wrote:
On 10/19/07, Jonathan Hayward http://JonathansCorner.com
<christos.jonathan.hayward@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
++ Jonathan Hayward, jonathan.hayward@xxxxxxxxx
** 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
[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