Skip to content

Decouple host property in VirtualServerRoute #8732

@nginx-seanmoloney

Description

@nginx-seanmoloney

Problem: The VSR host must exactly match the VS host, forcing 1:1 coupling and preventing reuse across hosts.​

Example:

  • Company runs 20 regional e-commerce sites: us.shop.com, uk.shop.com, de.shop.com, etc.
  • All sites share 5 common paths: /cart, /checkout, /account, /search, /api
  • Today, they must create 20 VS × 5 VSRs for each site = 100 duplicate VSR objects, each identical except for the host field

Result: Updating any routing logic requires editing 20 separate VSRs; configuration drift and high maintenance

Acceptance Criteria:

  • Make the host property optional in VirtualServerRoute
  • Ensure backwards compatibility is maintained and that existing deployments are not impacted
  • Update documentation and add new examples to the repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready for refinementAn issue that was triaged and it is ready to be refined

    Type

    Projects

    Status

    Todo ☑

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions