mod_headers bug?

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

 



Has anyone had experiences where mod_headers directives often fail to have any effect?
- It is unable to modify headers, only create & modify newly added headers.
 
Within my .htaccess file I carried out the following simple tests.
 
1)
Header always set MyCustomHeader myCustomValue
-- this works fine
 
Header always set MyCustomHeader2 unsetMe
Header always unset MycustomHeader2
-- works as expected - the header is not in the response
 
2)
Header always set Cache-Control max-age=33
-- this works ONLY if apache doesnt normally include a Cach-Control header of its own accord.
 
3)
Header always set Cache-Control max-age=33
Header always unset Cache-Control
-- as with 2), this works ONLY if apache hasnt already added such a header
 
 
It seems that mod_headers cannot operate on *existing* headers! - Only on headers generated by itself!
I have searched through various bug lists, archives, documentation etc.. but to no avail.
 
NB, I have used the 'always' condition keyword to ensure all header tables are used. Without this keyword, the tet results are the same.
 
 
Environment:
Linux, Fedora Core 5
httpd 2.2.2
 
 
Regards,
Neil Simons
 
 
 

[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