order allow,deny allow from all Options -Indexes -ExecCGI #Server root relevant path to handler script Action my-handler /test/my_handler.pl SetHandler my-handler AddHandler default-handler .html .gif .jpg .png Options +ExecCGI SetHandler cgi-script #### #!/usr/bin/perl -wT use strict; print "Content-type: text/html\n\n"; print "

Request_URI contained: " . join( ' ', map {"[$_]"} split '/', $ENV{REQUEST_URI}) . "

\n"; print "$_ => $ENV{$_}
\n" for sort keys %ENV;