Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How to run executive file exe on Apache2? |
|
Author |
|
Cle
Joined: 10 Dec 2006 Posts: 3 Location: Dallas
|
Posted: Tue 12 Dec '06 23:33 Post subject: How to run executive file exe on Apache2? |
|
|
Hi,
I am a new member and using Apache2 and Windows XP Home edition to run an executive file named Benefits.exe,
I compiled it from Microsoft Visual C++, computer class edition.
Please show me the right way to configure directive or option to run a file with extension .exe.
At this time, Apache2 only opened a window and asked me to save file Benefits.exe, look like when I down load it from internet, but not to run it.
I don't have error from log, but I have log/access:
127.0.0.1 - - [12/Dec/2006:13:45:10 -0600] "GET /cgi-bin/Benefits.EXE HTTP/1.1" 200 658
The perfect access code would be: 200 297 for the good hello4.cgi file which I am running OK.
I have a portion of this httpd.conf:
LoadModule cgi_module modules/mod_cgi.so
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
AddHandler cgi-script .exe
</Directory>
Thank you for great help
Cle |
|
Back to top |
|
Jorge
Joined: 12 Mar 2006 Posts: 376 Location: Belgium
|
Posted: Wed 13 Dec '06 10:20 Post subject: |
|
|
can can't run an exe directly.
You need a cgi file that calls the exectuble. Every thing i nthe file goes to the programs stdin and apache serves what comes out of stdout. |
|
Back to top |
|
Cle
Joined: 10 Dec 2006 Posts: 3 Location: Dallas
|
|
Back to top |
|
|
|
|
|
|