i have apache 2.0 and I added to apache file this:
Code:
<Direcotry /var/www/mydomain>
Options +ExecCgi
AddHandler cgi-script .cgi
</directory>
But If i try execute cgi file then I have "Internal Server Error"
Error.log:
Code:
Premature end of script headers cos.cgi, refferer: http://mydomain.com/
No such file od directory: exec of '/var/www/mydomain/cos.cgi' failed
Where is my mistake ?