Really weird issue w/ suexec & apache

Ok here is the problem... I have a simple cgi script:
Code:
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "test\n";
It runs under https, and executes. Although I get a 500 internal server error under http.

http://secure.gurueasy.com/cgi-bin/test.cgi
https://secure.gurueasy.com/cgi-bin/test.cgi

In the suexec log it outputs:
[2003-01-18 23:34:10]: info: (target/actual) uid: (gurueasy/gurueasy) gid: (gurueasy/gurueasy) cmd: test.cgi
[2003-01-18 23:34:10]: error: command not in docroot (/home/gurueasy/htdocs/cgi-bin/test.cgi)
and in the error log it outputs:
[Sat Jan 18 23:34:10 2003] [error] [client 209.251.13.98] Premature end of script headers: /home/gurueasy/htdocs/cgi-bin/test.cgi
Does anyone here have any idea what's wrong? Also in the virtual host entry the script alias is identicle on both the ssl and non ssl. This one has had me going for 24 hours now :-D. All help appreciated.

 

 

 

 

Top