mod_headers not working for Content-Length

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

 



Hi,

I'd like to unset/modify the Content-Length for some Files. I know this is propably not what everybody wants.

I was optimistic that I could do this with mod_headers. Unfortunatly it doesn't seem to work at all.

I'm using debian Lenny with apache 2.2.9

Here is what I tried so far:

<Directory "somedir">
AllowOverride All
allow from all
Options -Indexes
Header edit Content-Length ^.* 9999
Header set MyTest Foo
</Directory>


I see the Header MyTest in the server's response. So I assume the module is working. Unfortunatly the Content-Length is still reported with the original size.

I also tried to use the following statements.

Header edit Content-Length .* 9999
Header unset Content-Length
Header set Content-Length 1

I wonder if someone has experienced such behaviour before. I wouldn't like to implement some CGI Stuff for that.

Bye
Kyrios



[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