Results 1 to 3 of 3
  1. #1

    Configuring Apache to execute .exe files

    I was wondering how I can configure Apache (1.3) to execute .exe files instead of offering them to the client for download?

    I am running on Red Hat Linux 7.3

    The .exe files are actually packaged Perl scripts (using the PAR module).

  2. #2
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    8,910
    I might be wrong, but you could try:

    AddHandler cgi-script .exe

  3. #3
    Join Date
    Feb 2002
    Location
    Vestal, NY
    Posts
    1,378
    Yes try placing:

    AddHandler cgi-script .exe

    and

    Options ExecCGI

    in your httpd.conf for the server or Vhost you are configuring for. The exe file will need a shebang line such as #!/usr/bin/perl to indicate what interpretter or shell to use unless it is compiled binary capable of being executed on Linux of course and the file will need to be chmod 755.
    I am not familiar with the PAR module or what you mean by packaged Perl scripts. If it is a Windows executable or self-extracting archive, it is highly doubtful that it will run on Linux.
    H4Y Technologies LLC Check out our new website!
    "Smarter, Cheaper, Faster" - SMB, Reseller, VDS, Dedicated, Colo hosting done right.

    ZERO PACKETLOSS, ZERO DOWNTIME Dedicated and Colo - USA: IA, CA, NC, OR, NV
    **http://h4y.us**
    Voice: (866)435-5642. *** Email: askus at host4yourself d0t com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •