Ive set it up for using an extension rather than mime-type. For testing purposes, ive added my own extension (see my httpd.conf directive below).
myscript.pl looks like:
script runs fine and writes data.txt when called directly in browser. no errors.
open (MYFILE, '>>data.txt');
print MYFILE "Success!";
my directive in httpd.conf looks like:
Now I restart lampp.
Options Indexes ExecCGI
AddHandler my-file-type .xyz
Action my-file-type myscript.pl
Now I open a browser and request the file:
What I get from the browser is a 400 (Bad Request).
The error in the error log states:
[ Wed Jan 13 11:04:03 2010 ] [error] [client 127.0.0.1] Invalid URI in Request GET /testdir/blah.xyz HTTP/1.1
Any suggestions??? Thanks for helping.