Hello.
I know this list is for qmailadmin, but I guess many of you here
also use vQadmin I'll try to ask here.
I get this annyoing Premature end of script headers:
/www/cgi-bin/vqadmin/vqadmin.cgi and has researched _alot_ latley, without
getting it to work.
My httpd.conf looks like this:
<VirtualHost 192.168.0.100:80>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /www/htdocs/vqadmin
ServerName vqadmin.internal.com
ErrorLog logs/vqadmin-error.log
CustomLog logs/vqadmin-access.log combined
<Directory "/www/cgi-bin/vqadmin">
Options ExecCGI
</Directory>
ScriptAlias /cgi-bin/ /www/cgi-bin/
</VirtualHost>
I made a small test-cgi script which contains:
#!/usr/bin/perl
print( "Content-Type: text/plain", "\n\n" );
print( "Hello World in Perl", "\n" );
If I try http://vqadmin.internal.com/cgi-bin/test.cig it prints out "Hello
world in Perl", but if I copy it into the vqadmin dir, I get Internet
Server Error, and the error log says
Premature end of script headers: /www/cgi-bin/vqadmin/test.cgi
So what's up with this? the permissions of /www/cgi-bin/vqadmin is
drwxr-xr-x 3 vpopmail vchkpw 4096 2005-02-10 16:15 vqadmin/
And it contents:
-rw-r--r-- 1 nobody root 106 2005-02-10 16:11 .htaccess
drwxr-xr-x 2 vpopmail vchkpw 4096 2005-02-10 16:10 html/
-rwxr-xr-x 1 root root 109 2005-02-10 16:15 test.cgi*
-rw-r--r-- 1 vpopmail vchkpw 864 2005-02-10 16:10 vqadmin.acl
-rwsr-sr-x 1 root root 126316 2005-02-10 16:10 vqadmin.cgi*
Im running Apache 1.3.33 without suexec installed.
Cheers,
Martin
--
-------------------------------------------------------------------
[EMAIL PROTECTED] LemonLime Internet Development
Drifttekniker & Support Teknikringen 1B
013 - 21 19 60 Mj�rdevi Science Park
[EMAIL PROTECTED] 583 30 Link�ping