Page 1 of 1

Apache on Windows

Posted: Fri Aug 03, 2012 11:53 am
by bruceanthony
Is it possible to run the Apache server on something other than the IBMi?

We would like to open up some of our APPs to the outside world utilizing our existing .net WEB services. WEB pages would be updated to link to the IBMi APPs. We prefer not to open a port to the IBMi and the outside world. Some of us believe that this possible if Apache runs on the same server that also hosts our current WEB.

Re: Apache on Windows

Posted: Fri Aug 03, 2012 2:40 pm
by bruceanthony
We are now looking into the possibility of doing a redirect through our IIS website to the Apache website on the IBMi. This would be a much better solution if it works.

Re: Apache on Windows

Posted: Tue Aug 07, 2012 11:09 pm
by Alex
You will not be able to run RPG programs on something other than IBM i.

If you are redirecting from an IIS Web site, or using something like an IFRAME in your IIS Web site, then a port to the IBM i would still have to be opened.

Another possible option to look into is to internally redirect requests from the IIS to the IBM i. In the Apache world, this is called a Proxy Pass. For IIS, I believe you need something called Application Request Routing (ARR) to accomplish this.

I hope this helps.

Re: Apache on Windows

Posted: Wed Aug 08, 2012 3:56 pm
by bruceanthony
We seem to be getting closer.

LogLevel debug was added to configuration file.

When using http://server:8099/profoundui/genie in my browser, the following message is found in the log file:

[Wed Aug 08 12:45:13 2012] [error] [client 172.16.16.160] ZSRV_MSG0356: mod_autoindex: Directory index forbidden by rule: /www/geniet/htdocs/profoundui/userdata/genie skins/sbdefault/, referer: http://martha:8099/profoundui/genie

And all is working well.

When rewriting from the ISS server, I see profounds hml page but there is no userid and password showing. Here is the message in the log file:

[Wed Aug 08 12:44:52 2012] [error] [client 172.16.16.160] ZSRV_MSG0356: mod_autoindex: Directory index forbidden by rule: /www/geniet/htdocs/profoundui/userdata/genie skins/sbdefault/, referer: http://staging-ibmiforms/staging-ibmifo ... enielogin/

I have opened up the following directives:

# Uncomment the following to use proxy-related capabilities.
LoadModule proxy_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_http_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_connect_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_ftp_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM


Looks like I need to add

ProxyPass
ProxyPassReverse

Any thoughts?

Re: Apache on Windows

Posted: Thu Aug 09, 2012 1:31 pm
by bruceanthony
We may have this working now.

FYI: We commented out the proxy-related code in the Profound UI configuration.

Next and final test is to connect from the outside world.