I'm having a bit of trouble getting a certain CGI script to run in any dir other than the serverroot...
I have a user called 'test' (
http://myip/~test) and SSI works fine in any file in any dir-but calling a cgi via SSI returns no error message on the site (the standard [error occured while processing this directive])-but in the error_log I get the following:
[Sat Dec 29 00:22:08 2001] [error] [client *.*.*.*] Premature end of script headers: /home/test/html/cgi-bin/counter.cgi
Also-when going to '/~test/cgi-bin/counter.cgi' I get a 500 Server error....
However-I can run the SAME script in my default 'var/www/html' dir with no problems. Here are my dir settings in my httpd.conf:
<Directory "/">
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Allow from from all
Order Deny,Allow
</Directory>
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
<Directory "/var/www/html/cgi-bin">
Options ExecCGI Indexes Includes
AddHandler cgi-script .cgi .pl
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
<Directory "/home/*/html/cgi-bin">
Options ExecCGI Includes Indexes FollowSymLinks
AddHandler cgi-script .cgi .pl
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
<Directory "/home/*/html">
Options Indexes Includes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi .pl
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
<Directory "/home/*/html/cgi-bin">
Options ExecCGI Indexes Includes FollowSymLinks
AddHandler cgi-script .cgi .pl
</Directory>
Any ideas?