I'm on RHEL 3. I have created an addon domain and wish to run cgi scripts there, but I'm running into a dead end. Here's my basic test script:
File: index.cgi
################
#!/usr/bin/perl
print "hi.nrn";
exit;
-----------------------------------------------
I run this file from the command line and I get "hi." in text.
It's located here:
/home/PrimaryUser/public_html/basseyworld/cgi-bin/
Which can be found at http://www.basseyworld.com/cgi-bin/index.cgi
The error in the log looks like this:
Premature end of script headers: /home/PrimaryUser/public_html/basseyworld/cgi-bin/index.cgi
Here's the http.conf entry for the addondomainuser.
ScriptAlias /cgi-bin/ /home/PrimaryUser/public_html/basseyworld/cgi-bin/
What have I gotten wrong?