× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi all,

We are attempting to migrate an IBM Original HTTP server to Apache. The
migration completed but we can not gain access to the RPG CGI programs
off of the Apache URL, yet it still works off of the IBM Original HTTP
server URL.

Here's what happens.  We go to our intranet site of
http://mysite.com:8080/cgi-bin/myrpgcgipgm and it attempts to download
the program as a file instead of executing it.


Any ideas?

Below is the Apache config that is seemly causing us problems:

LogFormat "%h %l %u %t \"%r\" %>s %b" common
<Location />
   <LimitExcept GET HEAD OPTIONS POST TRACE>
      Order Allow,Deny
      Deny From all
   </LimitExcept>
</Location>

Options -ExecCGI -SymLinksIfOwnerMatch +Includes +Indexes -MultiViews
Listen *:2012
MaxKeepAliveRequests 5
TimeOut 120
KeepAliveTimeout 4
ThreadsPerChild 2
AccessFileName .htaccess

AddOutputFilter INCLUDES .html
AddOutputFilter INCLUDES .htmls
AddOutputFilter INCLUDES .htm
AddOutputFilter INCLUDES .css

AddType text/xml .xsl
AddType text/html .html
AddType text/html .htm
AddType text/html .css

IndexOptions -SuppressDescription
HeaderName README

<Directory />
   Order Allow,Deny
   Deny From all
</Directory>

<Directory /QSYS.LIB/AS400CGI.LIB/*.PGM>
   Options +ExecCGI
   CGIConvMode %%EBCDIC/MIXED%%
   Allow From all
   AddOutputFilter INCLUDES .pgm .rexx .pl .class
</Directory>

ScriptAliasMatch ^/cgi-bin/(.*) /QSYS.LIB/AS400CGI.LIB/$1.PGM


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.