Remove VTS Port number from URL and have it as a query string

Idea ID 2690085

Remove VTS Port number from URL and have it as a query string

The current implementation of VTS involves http://<VTSMachineName>:<VTSportNumber>

The security setup in our current DMZ does not allow any incoming request which are not on port 80 or 443 (HTTP & HTTPS).. This is an issue where we have 300-400 VTS ports to run all our performance tests.

The request is to have the port as query based string..

Ex:

http://<VTSMachineName>:80/?portnumber=<VTS Port Number>

https://<VTSMachineName>:443/?portnumber=<VTS Port Number>

 

This will be beneficial for us as we can use Microfocus hosted external LGs (London, Frankfurt, Toronto) and these LGs use VTS machines which are hosted within our private Cloud infrastructure.

@buczekj 

 

 

 

 

 

Tags (1)
4 Comments
Micro Focus Contributor
Micro Focus Contributor
Status changed to: Waiting for Votes
 
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

This can be implemented by Nginx port forwarding.

Nginx can listen on port 80, and redirect requests to different ports by checking the "location"

What you need to do is to setup a Nginx server which listens on port 80, start  your vts instances on different ports, configuring Nginx with mapping your requests to these ports

PRATAP RAJAN Contributor.
Contributor.

Thanks, Fei for your inputs. Had left this for a while and couldn't get back to your response.

Seems like a sensible response, but before implementing, had some queries (will try it out as well)

Currently it is like

http://myVTSIP:1003

http://myVTSIP:1004 (and so on)..

In my vugen script it is 

int rc = 0;
char *VtsServer = "<myVTSIP>";
int nPort = 1003;


rc = lrvtc_connect(VtsServer,nPort,VTOPT_KEEP_ALIVE);

and it works.. no issues..

Let's say we get Nginx and VTS installed in the same box. Nginx runs on 80 and VTS runs on multiple ports (For simplicity - 1003 & 1004). Now we update within Nginx location module, for request http://myVTSIP:80/1003 route it to http://myVTSIP:1003. This will solve the problem of accessing the webpage. 

But what I not able to catch, how much I need to change the loadrunner script. Would it be something like:

int rc = 0;
char *VtsServer = "<myVTSIP>";
int nPort = 80/1003;

Could please share some more details to help me progress?

Many Thanks,

Pratap

 

 

Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Hi Pratap, I previously misunderstood this issue. It is not resolved now, but is in developing now. In a future release, access to vts server will be send to 80/443 with the nominal port passed by query string. I will update it once this feature is released.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.