logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache 2.4.3 End of script output before headers
Author
reidak



Joined: 07 Jul 2006
Posts: 12

PostPosted: Fri 31 Aug '12 10:02    Post subject: Apache 2.4.3 End of script output before headers Reply with quote

Error 500 - CGI-Script ".exe" doesn't work in Apache 2.4.3.

error.log:
[cgi:error] [pid 5188:tid 604] [client x.x.x.x:1754] End of script output before headers: mapserv.exe, referer: http://x.x.x.x/

httpd.conf:
Code:

<IfModule alias_module>
    ...
    ScriptAlias /cgi-bin/ "c:/web/cgi-bin/"
</IfModule>

AddHandler cgi-script .cgi .pl .exe

<Directory "c:/web/cgi-bin">
   SetHandler cgi-script
   AllowOverride None
   Options ExecCGI
   Require all granted
</Directory>


P.S. Perl Scripts are working.

In Apache 2.2.22 everything works fine.


Thanks
Reidak
Back to top
reidak



Joined: 07 Jul 2006
Posts: 12

PostPosted: Fri 07 Sep '12 13:54    Post subject: Reply with quote

Just found a solution.

Rename "mapserv.exe" to "mapserv.fcgi"

Code:

<IfModule alias_module>
    ...
    ScriptAlias /cgi-bin/ "c:/web/cgi-bin/"
    ScriptAlias /fcgi-bin/ "c:/web/cgi-bin/"
</IfModule>

<Location "/fcgi-bin">
    AllowOverride None
    Require all granted
    AddHandler fcgid-script .fcgi
</Location>


And now it works with Apache 2.4.3. Wink

Reidak
Back to top


Reply to topic   Topic: Apache 2.4.3 End of script output before headers View previous topic :: View next topic
Post new topic   Forum Index -> Apache