× 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.



Never mind looks like the ScriptAliasMatch is equivalent to ScriptAlias.
http://httpd.apache.org/docs/mod/mod_alias.html#scriptaliasmatch

How is the cgi program referenced? ... using /cgi-bin/..
joeM

----- Original Message ----- 
From: "joe" <as400@xxxxxxx>
To: "Web Enabling the AS400 / iSeries" <web400@xxxxxxxxxxxx>
Sent: Wednesday, September 08, 2004 2:52 PM
Subject: Re: [WEB400] Browser tries to download program



I dont see a ScriptAlias 
ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/

example:
ScriptAlias /AS400CGI.LIB/ /QSYS.LIB/AS400CGI.LIB/

Configuring Apache to permit CGI:
http://httpd.apache.org/docs/howto/cgi.html#configuringapachetopermitcgi


joeM
----- Original Message ----- 
From: "Bartell, Aaron L. (TC)" <ALBartell@xxxxxxxxxxxxxx>
To: "Web Enabling the AS400 / iSeries" <web400@xxxxxxxxxxxx>
Sent: Wednesday, September 08, 2004 1:51 PM
Subject: [WEB400] Browser tries to download program


> 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
> 
> _______________________________________________
> This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
> To post a message email: WEB400@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/web400
> or email: WEB400-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/web400.
> 
_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.