Monday, September 3, 2012

Apache run .exe file


I have a customer that has a series of exe files they wrote with clipper that output html content.

How should apache be configured to use them?

I have the following settings in the http.conf file:



Code:

LoadModule alias_module modules/mod_alias.so
LoadModule cgi_module modules/mod_cgi.so
AddHandler cgi-script .cgi .exe
ScriptAlias /cgi-bin/ "cgi-bin/"

    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all


The exe file is n a folder named 'cgi-bin'

The url is: http://localhost/demo/cgi-bin/test.exe

The response from the server is:

Forbidden

You don't have permission to access /demo/cgi-bin/notnow.exe on this server.

No comments:

Post a Comment