RE: mod_headers mapping problem

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

 



Wouldn't using RewriteCond be able to do that?

Jeff



-----Original Message-----
From: jslive@xxxxxxxxx [mailto:jslive@xxxxxxxxx] On Behalf Of Joshua Slive
Sent: Friday, August 10, 2007 11:14 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  mod_headers mapping problem

On 8/10/07, Jeff Murch <jmurch@xxxxxxx> wrote:
> More info:
>
> It seems that none of the headers will unset.......

Standard protocol-required headers like Content-Type, Connection, etc,
can't generally be manipulated with mod_headers.

mod_rewrite can manipulate content-type, but I don't think it will
help in your case because it can't act conditionally on an existing
request header.

I see two solutions:

1. Fix your upstream server to not send garbage encoding values.

2. Write a custom apache module that would use the proper API to test
and reset the content-type. It would be very simple, but would require
figuring out something about apache modules.

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



-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.11.11/944 - Release Date: 8/9/2007
2:44 PM


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