});
}
-sub test_script_name : Path('/cgi-bin/test_scriptname.cgi') {
+sub test_script_name_root : Chained('/') PathPart('cgi-bin') CaptureArgs(1) {}
+
+sub test_script_name : Chained('test_script_name_root') PathPart('test_scriptname.cgi') Args {
my ($self, $c) = @_;
$self->cgi_to_response($c, sub {
});
}
+sub test_remote_user : Path('/cgi-bin/test_remote_user.cgi') Args(0) {
+ my ($self, $c) = @_;
+
+ $self->cgi_to_response($c, sub {
+ my $cgi = CGI->new;
+ print $cgi->header;
+ print $ENV{REMOTE_USER}
+ });
+}
+
1;