Configure Apache 2.4 and OECGI

There are various references in the OpenInsight documents directory on the web for configuring Apache on Windows to run OECGI3.exe and O4W but some methods reffer to out-dated configuration directives or CGI only configurations. The blog DSig's Adventures in Revelation's O4W had an excellent summary of configuring O4W and Apache 2.2 but some of those configuration directives are out-dated in Apache 2.4.

Below is a current configuration snippet for Apache 2.4 on Windows. Simply change the paths to your O4W directory and add it to the bottom of your httpd.conf file or your vhost configuration.

<Directory "c:/revsoft/oinsight/o4w/">
Options Indexes FollowSymLinks ExecCGI
AllowOverride None
Require all granted

AddHandler cgi-script .exe
AddType text/html .exe
</Directory>

<IfModule alias_module>
Alias /o4w/ "c:/revsoft/oinsight/o4w/"
</IfModule>

Re-start Apache and verify http://localhost/o4w/start.htm loads and the Login link propertly executes OECGI3.exe and doesn't return a download file. 

Share this post

Leave a comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

About Us

Congruity Service is a technology solutions company bringing the best technology solutions to OpenInsight projects, Drupal sites, servers, networks, and your technology needs.