IkiWiki::Wrapper: allow REDIRECT_STATUS and REDIRECT_URL through from environment
This is useful to act as an Apache 404 ErrorDocument.master
parent
78d1b2340e
commit
3e290ce7ee
|
@ -28,7 +28,8 @@ sub gen_wrapper () {
|
||||||
my @envsave;
|
my @envsave;
|
||||||
push @envsave, qw{REMOTE_ADDR QUERY_STRING REQUEST_METHOD REQUEST_URI
|
push @envsave, qw{REMOTE_ADDR QUERY_STRING REQUEST_METHOD REQUEST_URI
|
||||||
CONTENT_TYPE CONTENT_LENGTH GATEWAY_INTERFACE
|
CONTENT_TYPE CONTENT_LENGTH GATEWAY_INTERFACE
|
||||||
HTTP_COOKIE REMOTE_USER HTTPS} if $config{cgi};
|
HTTP_COOKIE REMOTE_USER HTTPS REDIRECT_STATUS
|
||||||
|
REDIRECT_URL} if $config{cgi};
|
||||||
my $envsave="";
|
my $envsave="";
|
||||||
foreach my $var (@envsave) {
|
foreach my $var (@envsave) {
|
||||||
$envsave.=<<"EOF";
|
$envsave.=<<"EOF";
|
||||||
|
|
Loading…
Reference in New Issue