View Single Post
Old 03-19-2006, 03:06 PM  
blogman9
Confirmed User
 
blogman9's Avatar
 
Join Date: Dec 2005
Posts: 1,261
Apache and execute .cgi file

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 ?
blogman9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote