Hi,

I am stuck trying to get a simple C++ CGI working. I am using the installed 
configuration file which allows Apache to succesfully serve up a web page 
under document root:
DocumentRoot "C:/Apache/Apache Group/Apache/real_docs/deepconnection"

under script alias I have:
ScriptAlias /cgi-bin/ "C:/Apache/Apache Group/Apache/cgi-bin/"

I have this line in the web page
<!-- #exec cgi="/http://www.deepconnection.com/cgi-bin/hello.exe"; -->

which I want to call an exe file of C++ code which is in C:/Apache/Apache 
Group/Apache/cgi-bin/
the c++ code is
#include <iostream.h>   //FOR cin AND cout
void main ()
        {
        cout << "Content-type: text/html\n\n";
        cout << "Hello world from Stephen";
        }//end main

but it doesn't work.

when I put http://localhost/cgi-bin/hello  into browser I get
"Internal Server Error"

I thought I was doing everything right. Can anyone help?

Cheers

Stephen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to