Rewrite Rule for redirecting a VL web or REST API URL to DC@PGMLIB

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
PatrickF
Posts: 30
Joined: Thu Nov 26, 2015 1:31 pm

Rewrite Rule for redirecting a VL web or REST API URL to DC@PGMLIB

Post by PatrickF »

I recall the @ in the VL Web URL request http:<server:port>/DC@PGMLIB/DEM/XVLWEBTST.HTML needs to be translated to something like DC-PGMLIB to serve the VL web page when processed by the web server. There is debate on the topic of whether @ can be used in the URL https://stackoverflow.com/questions/195 ... nside-urls
On Apache on IBMi, was this workaround done as an Apache rewrite rule or an Alias ? Can I see an example of the Apache statement(s) ?

My current need is to configure an IIS 10.0 multi-tier web server to connect to a V15 IBMi backend running in DC@PGMLIB, so I assume configuring via the IIS Rewrite Rule Engine. Has anyone setup an IIS rewrite rule to redirect a VL Web or REST API publish Endpoint to a DC@PGMLIB backend installation ? Can you share the settings ?
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

Re: Rewrite Rule for redirecting a VL web or REST API URL to DC@PGMLIB

Post by René Houba »

Hi Patrick,

There is no need to do a rewrite.

Here some screenshots. LANSA install on iSeries = AC@PGMLIB.

I setup mixed multi tier. Windows Web server:
WindowsWebServer.PNG
WindowsWebServer.PNG (20.46 KiB) Viewed 5801 times

LANSA IDE Development Windows settings:
IDEWebSettings.PNG
IDEWebSettings.PNG (41.45 KiB) Viewed 5801 times
http://WindowsWebServer:8080/ac-pgmlib/

I even configured https in ISS for this web environment, so it can be started with and without https.
Post Reply