lighttpd 1.4.x https://www.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
209 B

#!/usr/bin/env perl
if ($ENV{"QUERY_STRING"} eq "internal-redir") {
print "Location: /cgi-pathinfo.pl/foo\r\n\r\n";
exit 0;
}
print "Content-Type: text/html\r\n\r\n";
print $ENV{"SCRIPT_NAME"};
0;