server gurus please help! - Premature End of Script Headers
apache 2.0.46 (rhel es 3.0)
I am trying to run a perl script on my server, but when I try to run it via a web browser I get "Internal Server Error." The server error log says "premature end of script headers." The permissions are 755 on the cgi-bin directory and the script. This is the script i'm trying to run:
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "Hello, world.\n";
This is the directive I have in my httpd.conf file:
Directory "/home/users/*/www/cgi-bin">
Options ExecCGI
/Directory>
(removed '<' for banned word)
Anyone know what the problem could be?
|