The former is done using the
Options +ExecCGIdirective, the latter using the
AddHandler cgi-script your_cgi_extensionsdirective.
There is a nice tutorial on Dynamic Content with CGI [httpd.apache.org] available at the Apache foundation website.
Andreas
Shouldn't be getting that right?
Not unless your script looks like this:
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "Error message:
Premature end of script headers: gm.cgi";
For some reason the script did not produce the necessary HTTP header.
Check for:
- file permissions,
- correct path to script interpreter,
- syntax error in the script.
Andreas