Radware Alteon URL Pattern Content Switching Guide
Radware Alteon appliances sit in front of web platforms as layer 7 application delivery controllers, and one of their most useful capabilities is choosing which backend receives a request purely from the URL the browser asked for. Instead of sending every request to one farm of web servers, an Alteon can inspect the request line, notice the path starts with /api/, and pass it to an API pool while /checkout/ goes to a dedicated checkout service and everything else falls through to the legacy web tier. That decision happens at the edge, without touching application code.
That capability earns its keep during any modernisation program where a monolith is being carved into services, a platform is being replaced, or two teams are running competing builds behind one hostname. Rather than embedding routing logic in every application, the Alteon absorbs the complexity and lets engineers change destinations in seconds.
Australian geography shapes the problem. Sydney and Melbourne host most local platforms, along with the AWS ap-southeast-2 and ap-southeast-4 regions, while regional branches in places such as Bendigo and Wagga Wagga often run over NBN fixed wireless with variable latency and throughput compared to metro fibre. Keeping request routing and static content handling at the local edge makes the experience far more consistent across that footprint.
This walkthrough covers how the switching engine evaluates rules, how to build URL-based rules on the appliance, how hosts and redirects interact with path matching, how health checks and persistence affect the outcome, and how to automate and audit the configuration afterwards.
How Alteon Content Switching Works
Alteon operates in several broad modes. Layer 3 and 4 switching balances connections by IP and port, real-time redirection proxies HTTP traffic to a rewritten target URL, and content switching inspects the HTTP request itself so the destination depends on its contents. Content switching is the mode you need when the backend choice is defined by the request path.
The components are familiar ones: a virtual server bound to the VIP and port, real servers grouped into pools behind it, and layer 7 switching rules that map match conditions onto destinations. When traffic arrives, the Alteon evaluates the switching policy in priority order and applies the first rule whose match condition succeeds. That mechanic is the foundation of URL-based routing.
Inspection has a cost worth understanding. The Alteon must terminate TLS to read the path, and while the hardware handles this efficiently, you still pay for decryption and re-encryption on every connection. Terminating at the appliance also enables a local response, redirect or error page to be generated without involving the backend at all.
URL Pattern Matching and Rule Evaluation Order
Matching semantics depend on the firmware train, but you will typically deal with exact strings, prefix wildcards such as /api/*, and in newer releases regular expressions. Paths compare case-sensitively, and the query string is usually excluded, meaning /search?q=boots is treated as /search. Decide deliberately whether you match path only or path plus query, because an app that keys off ?tenant= will misbehave if you assume queries are ignored.
Priority order is the other half of the puzzle. Rules evaluate from the lowest priority number upward and the first match wins, so specific paths must sit above catch-all entries. A rule for /api/v2/orders placed beneath a broad /api/* rule will never fire.
Plan the rule set against real application routes rather than assumptions. On a typical retail platform you might see /api/ for mobile clients, /cart/ and /checkout/ for payment flows, /media/ for assets, and / for the storefront itself. Write that list down first, then translate it into priorities.
Building URL Switching Rules
Work on the appliance with care: capture the current configuration, keep a rollback copy, and agree the change window with whoever owns the VIP. On the CLI, review the existing state and switching policy, then add the pools and rules.
show running-config
show virtual-server vip-443
add real server rs-api address 10.20.30.40 port 8080
add real server rs-api health-check port 8080 protocol http uri "/healthz"
add real server rs-checkout address 10.20.30.51 port 8080
add real server rs-web address 10.20.30.60 port 8080
add url-switch rule priority 10 match url "/api/*" real-server rs-api
add url-switch rule priority 20 match url "/checkout/*" real-server rs-checkout
add url-switch rule priority 100 match url "/*" real-server rs-web
Keyword names differ slightly across the Alteon 4000, 5000 and 6000 trains and between the CLI and web interface, so treat the snippet as the shape of the change rather than a literal script. Apply the rules, confirm them with the show commands, then save the configuration so it survives a reboot.
Hosts, HTTPS and Redirect Behaviour
A path on its own is rarely the whole story. The same /api/ prefix can exist on several hostnames, and the host header often determines which brand or tenant owns the request. Alteon can match host and path together, which suits multi-brand sites, while host-only matching fits platforms that moved wholesale to a new hostname.
Redirects need the same attention. Redirecting HTTP to HTTPS at the appliance, and canonicalising a legacy www hostname to the apex domain, avoids duplicate content and protects search rankings. Watch for loops: a redirect the health-check agent also triggers, or an application redirecting back to the hostname the client originally used, produces a cycle that is painful to diagnose from a browser.
Finally, ensure the backend trusts the proxy. Forward the original scheme and host using X-Forwarded-Proto and X-Forwarded-Host, and confirm the application accepts them. Miss this step and every link generated in an email or SMS will point back at an internal hostname.
Backend Pools, Health Monitoring and Persistence
Health monitoring determines whether your rules matter in practice. Checks can be ICMP, TCP connect, or an HTTP request against a URI such as /healthz, and a failing real server drops out of rotation automatically. If the API pool fails its check, the /api/ rule needs a defined fallback, such as a local error response or a redirect to a maintenance page, otherwise requests simply hang.
Persistence is a per-rule decision. On a payment path like /checkout/, cookie-based persistence keeps a shopper on one backend for the entire transaction, which matters when the cart lives in server memory. Source-IP persistence suits anonymous browsing traffic but misbehaves for mobile clients that move between cellular and Wi-Fi mid-session.
Australian sites also need a clean failure story. Many organisations run a primary platform in Sydney with warm capacity in Melbourne and a static fallback hosted in ap-southeast-2, so an outage can be answered by a real-time redirection rather than a blank page.
Choosing Between URL, Host and Cookie Switching
URL switching fits platforms where the backend follows the application’s route structure. Host switching suits sites that moved entirely to a new platform, and cookie switching suits clustered applications with their own affinity requirements. Choose the narrowest mechanism that solves the problem, since broad rules tend to collide as a platform grows.
| Method | Matches on | Typical use | Persistence | Watch out for |
|---|---|---|---|---|
| URL path switching | Path, optionally with host | Splitting API and web tiers | Optional | Priority order, query strings |
| Host header switching | Hostname | Moving a hostname to a new platform | Usually none | Duplicate content if not redirected |
| Cookie switching | Cookie value | Clustered apps needing affinity | Inherent | Cookie flags and expiry |
| Source-IP persistence | Client address | Anonymous browsing traffic | Inherent | NAT and mobile roaming |
| Header switching | Presence or value of a header | Canary and grey rollouts | Usually none | Clients that strip headers |
Automating and Maintaining URL Switching at Scale
Manual CLI work does not scale across an estate. Most organisations running Alteon across data centre and branch footprints drive configuration from Ansible or a Python script against the Radware REST API, keeping rules in version control and promoting the same tested template to Sydney, Melbourne and regional appliances.
Validation should be automated as well. A simple curl loop against the VIP with a specific host and path proves routing without touching a browser: curl -sk -o /dev/null -w '%{http_code}' -H 'Host: shop.example.com.au' https://192.168.10.5/api/orders. Run the same checks from a metro office on NBN fibre and a regional branch on fixed wireless, because the paths to the appliance differ.
Finally, forward device logs to your SIEM and alarm on rule changes. For organisations in scope of the Security of Critical Information Infrastructure Act 2018, or those working towards the ASD Essential Eight, an auditable record of who changed the routing rules and when is part of the evidence you are expected to produce. A weekly diff of the running configuration catches drift long before it becomes an outage.