Hypertest Docs
HyperTestKnowledge Base
  • Quick Set-up
    • Install HyperTest
    • Deploy your application
    • Mirror Traffic
      • Using Kubernetes
      • Using Amazon ECS
      • Using Docker
      • Using Nginx
      • Using Goreplay
        • ElasticBeanStalk Script for Goreplay
      • Using Apache
      • Using IIS
      • Using Istio
      • Using Kong
      • Using HAProxy
      • Others
  • HyperTest Overview
    • Introduction
    • Architecture
  • Detailed Setup Guide
    • Detailed Setup Guide
      • Installation
        • Linux VM
        • Kubernetes Cluster
          • Hardware Requirements
          • Cluster Setup
            • EKS
              • Existing Application Load Balancer
              • Calculate Setup Cost for EKS Cluster
            • GCP
            • AKS
            • Self Managed
              • Microk8s with EKS-D
          • HyperTest Installation
      • Mirror Traffic
      • Configure HyperTest
      • Automate Starting a Test
        • CI Integration
          • GitHub Checks Integration
            • Mandatory checks
          • Gitlab Integration
          • Bitbucket Integration
          • Jenkins Pipeline
            • Jenkins Plugins for PR events
  • Upgrade HyperTest
    • Upgrade HyperTest
      • Linux VM
      • Kubernetes Cluster
  • User Guides
    • Usage Guide
      • Install and Configure HyperTest
        • Install HyperTest
        • Configure Base DNS
        • Add New Service
      • Tests Runs and Analysis
        • View Test Cases
        • Start New Test Run
        • Understand Your Test Run Analysis
        • Prioritize Your Error Types
        • Track Bugs
        • Ignore Errors/Desired Changes
        • View/Download Report
        • View Consolidated Dashboard Reports
        • Sign-off Reports
        • Reduce Execution Time
        • Deduplication Rules
      • Troubleshooting and FAQs
    • Best Practices Guide
      • Cost Optimization
    • Dashboard Tour
      • Dashboard
      • All Sessions
      • Regression Report
      • Notifications
      • First Test Run
      • Interactions
      • Custom Analysis
      • Configuration
    • User Management
      • Create Admin User
      • Roles, Groups & Users
      • Enabling User Signup
    • Other Guides
      • Basic Nginx Auth for Linux HT
  • Middleware
  • Advanced Features
    • Import test cases from Postman
  • Change Log
  • Troubleshooting
  • FAQs
    • Setup
    • General
    • Regression Report
  • Glossary
    • Session
Powered by GitBook
On this page
  1. Quick Set-up
  2. Mirror Traffic

Using Apache

If you're receiving SSL traffic on apache, configure a new virtual host. Your original port would now be used to terminate SSL and forward traffic to the new virtual host. We can now mirror traffic from the new Virtual Host using goreplay.

If unencrypted traffic is being received, directly use goreplay.

Use the example below to create a new virtual host on NEW_NON_SSL_PORT, which you can use to mirror traffic to HyperTest.

Old Apache Config:
Listen OLD_SSL_PORT

<VirtualHost *:OLD_SSL_PORT>
    ## ssl related config ##
    ProxyPreserveHost On

    ProxyPass / http://localhost:OLD_APP_PORT>
    ProxyPassReverse / http://localhost:OLD_APP_PORT>
</VirtualHost>
New Apache Config:
Listen OLD_SSL_PORT
Listen NEW_NON_SSL_PORT

<VirtualHost *:OLD_SSL_PORT>
    ## ssl related config ##
    ProxyPreserveHost On

    ProxyPass / http://localhost:NEW_NON_SSL_PORT>
    ProxyPassReverse / http://localhost:NEW_NON_SSL_PORT>
</VirtualHost>

<VirtualHost *:NEW_NON_SSL_PORT>
    ProxyPreserveHost On

    ProxyPass / http://localhost:OLD_APP_PORT>
    ProxyPassReverse / http://localhost:OLD_APP_PORT>

</VirtualHost>

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.

PreviousElasticBeanStalk Script for GoreplayNextUsing IIS

Last updated 2 years ago