Apache on Windows

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
bruceanthony
Profound User
Posts: 52
Joined: Mon Sep 19, 2011 3:00 pm
First Name: Bruce
Last Name: Anthony
Company Name: The State Bar of California
Contact:

Apache on Windows

Post 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.
bruceanthony
Profound User
Posts: 52
Joined: Mon Sep 19, 2011 3:00 pm
First Name: Bruce
Last Name: Anthony
Company Name: The State Bar of California
Contact:

Re: Apache on Windows

Post 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.
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: Apache on Windows

Post 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.
bruceanthony
Profound User
Posts: 52
Joined: Mon Sep 19, 2011 3:00 pm
First Name: Bruce
Last Name: Anthony
Company Name: The State Bar of California
Contact:

Re: Apache on Windows

Post 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?
bruceanthony
Profound User
Posts: 52
Joined: Mon Sep 19, 2011 3:00 pm
First Name: Bruce
Last Name: Anthony
Company Name: The State Bar of California
Contact:

Re: Apache on Windows

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests