Page 1 of 1

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

Posted: Sat Oct 08, 2022 6:48 am
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 ?

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

Posted: Sat Oct 08, 2022 8:11 pm
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 5804 times

LANSA IDE Development Windows settings:
IDEWebSettings.PNG
IDEWebSettings.PNG (41.45 KiB) Viewed 5804 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.