Ah well, I just tried it, and it works correctly.
bozohttpd itself:
Code:
[root@kindle tmp]# find /mnt/us/www/
/mnt/us/www/
/mnt/us/www/cgi-bin
/mnt/us/www/cgi-bin/test.pl
/mnt/us/www/docroot
/mnt/us/www/docroot/index.html
[root@kindle tmp]# ./bozohttpd -s -X -f -b /mnt/us/www/docroot/ -c /mnt/us/www/cgi-bin/
started in daemon mode as `kindle' port `http' root `/mnt/us/www/docroot/'
got request ``GET /cgi-bin/test.pl HTTP/1.1'' from host localhost.localdomain to port 80
client request:
Code:
[root@kindle tmp]# wget -O out.html http://localhost/cgi-bin/test.pl
Connecting to localhost (127.0.0.1:80)
out.html 100% |*******************************************************************************************************************************************************************************************| 339 --:--:-- ETA
[root@kindle tmp]# cat out.html
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Environment</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
</body>
The test.pl is the same file as your index.cgi (with the fixed shebang).
HTH