Using IIS
Last updated
Last updated
In this guide, we will introduce a Nginx proxy server between user and your candidate application, which will forward the traffic to candidate application and mirror it to HyperTest.
Shift candidate application to new url ( for eg: from test.app.latest -> new-test.app.latest)
Add a new site on original candidate url (test.app.latest) We are reusing the same url so nothing changes for the end user. User will still make request calls test.app.latest which will just internally mirror traffic to HyperTest and forward the requests to candidate application on new-test.app.latest.
Configure Reverse proxy to proxy server running in Hypertest VM
Proxy server will then forward traffic to candidate application on new-test.app.latest, while also mirrroing it to HyperTest.
Now lets dive into steps:
Install Application Request Routing from here. This is required for reverse proxy in IIS
Accept the license agreement and install ARR.
Change the candidate application's url to new-test.app.latest
Add a new site in IIS which is accessible on test.app.latest Select an empty folder for physical path \
Add Reverse proxy to Hypertest VM on port 8003
Go to site and URL re-write under IIS
Click on Add Rules under Actions from right side\
Select Reverse Proxy \
Add Inbound Rule Forward HTTP requests to <HypertestVM_IP>:8003
Check Enable SSL Offloading: required to forward secure requests over HTTP Click ok and add the rule
Now click on newly added inbound rule and change pattern from (.*) to ^(.*)$, apply and save the changes.
Reverse proxy from IIS to HyperTest is now complete. We will now add proxy server in HyperTest VM on port 8003 which will forward the traffic original candiate url and mirrror to HyperTest.
Create the below two files
Deploy the Nginx server with below command
Verify that the server is up and running using below command:
Now our setup to mirror traffic to Hypertest in IIS using reverse proxy is complete.
Whenever the user will access test.app.latest, requests will go to Hypertest VM and it then forward it to candidate application.
To Verify the mirroring setup, hit any api on the application and check for request in "last mirrored requests" section or Session page in HyperTest.