You can put a "ScripAlias" that redirects index.html to a cgi program in
the httpd.conf file.
Using "SriptAliasMatch" you can run RPG programs when the URL ends with
.php or any other ending that you choose. As a mather of fact, a string
in any part of the URL can indicate to the Apache that it should be
served by a CGI program.

To see it working go to https://i5.abc.com.py and then go to "What’s
that site running?" in http://www.netcraft.com/
_____________________________________________________________________

On 07/16/2015 10:03 AM, Joe W Holt wrote:


I'm running the Apache server on our IBM i that serves our public data as
well as our intranet apps. Everything is static with the exception of our
cgi programs. Never considered other options like PHP since up to this
point everything can be done with RPG/CGIDEV2 if it isn't static. Now I
have need of dynamic data on our home page. This data doesn't necessarily
change daily but would need to reflect any changes when they are made in
our physical files. In this environment would you suggest an Apache include
call to a cgi application or make the entire home page dynamic getting rid
of the static index.html. If the entire home/index page went dynamic would
I have to give the call a dot three extension for this to work? I've
noticed PHP sites have the .php extension. I do realize that if I use an
Include statement it changes the extension from html to shtml which prompts
what extension, if any, would be needed for a CGI home page.

I've been hesitant to reach out to this group for topics such as this. If
this is the wrong forum for this please let me know. Thanks to Kelly and
her SPA thread that prompted some rather good conversations regarding
options that aren't necessarily 400 related but is served from the 400 I
figured I'd give it a shot. I really enjoyed the topic and the thoughts of
everyone who contributed. Some resources were given that I will most
definitely benefit. I'm in a small shop and the only exposure I get to
advances in tech on the 400 is through my own personal research and self
education. It's hard to decide what things I should try to learn to use on
our server without hearing from others about joys and pitfalls of trying it
on the 400. I pretty much have free reign to use whatever I want as long as
licensing isn't financially onerous.


***
Regards,
Joe W Holt
Sr Programmer/Developer
Jack Onofrio Dog Shows, LLC
405.427.8181


-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --

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.