Posted on 2005-10-22 12:13:19-07 by jack1967
Duplicate requests
On the proxyed server arrive two simultaneous requests, one filtered (including the new header) an one not (without the new header). Why?
Thank you, Jack


<VirtualHost _default_:443>

SSLEngine on
SSLProxyEngine on

ProxyPass / "http://192.168.0.10"
ProxyPassReverse / "http://192.168.0.10"

PerlModule test::my_filter
PerlOutputFilterHandler test::my_filter

<Location />
SSLRequireSSL
</Location>
</VirtualHost>


package test::my_filter;

#use strict;
use warnings FATAL => 'all';

use base qw(Apache2::Filter::HTTPHeadersFixup);

sub manip {
my ($class, $ra_headers) = @_;

# modify a header
#for (@$ra_headers) {
# s/^(Foo).*/$1: Moahaha/;
#}

push @$ra_headers, "newheader: Hello\n";
}

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.