Re: sending pre-compressed content through reverse proxy using mod_rewrite

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

 



Haroon Rafique wrote:
It would be nice if I could just override
the 404 error though.

I just did that using mod_asis. The .asis document can set its own headers, including status:

   Status: 200 OK
   Content-Type: image/gif
   Cache-Control: public, max-age=7200
   Expires: Thu, 01 Jan 2009 00:00:00 GMT
   Last-Modified: Sat, 20 Sep 2008 20:32:04 GMT

   GIF89a[dummy image]

This is for an image server where URLs of missing images receive a dummy image with status 200.

However, I did not succeed in setting a dynamic Expires: header using mod_expires.

Regards,

Oliver Schoett



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