[フレーム]
BT

InfoQ Software Architects' Newsletter

A monthly overview of things you need to know as an architect or aspiring architect.

View an example

We protect your privacy.

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Unlock the full InfoQ experience

Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources.

Log In
or

Don't have an InfoQ account?

Register
  • Stay updated on topics and peers that matter to youReceive instant alerts on the latest insights and trends.
  • Quickly access free resources for continuous learningMinibooks, videos with transcripts, and training materials.
  • Save articles and read at anytimeBookmark articles to read whenever youre ready.

Topics

Choose your language

InfoQ Homepage News AWS ALBs Now Support Native URL and Host Header Rewriting

AWS ALBs Now Support Native URL and Host Header Rewriting

Oct 20, 2025 2 min read

Write for InfoQ

Feed your curiosity. Help 550k+ global
senior developers
each month stay ahead.
Get in touch
Listen to this article - 0:00
Audio ready to play
0:00
0:00

AWS recently announced the general availability of native URL and Host Header Rewriting functionality directly within the Application Load Balancers (ALB) service. With the feature, users do not require custom application logic or the deployment and maintenance of separate third-party proxy solutions (like NGINX Ingress Controller) to manage Layer 7 traffic modification.

Earlier, organizations requiring sophisticated request routing, such as modifying URL path prefixes or changing host headers before forwarding traffic, were forced to introduce additional proxy layers into their architecture. These added components, increased maintenance overhead, and often introduced unnecessary latency.

In a Reddit thread, the change was validated. As one respondent noted, the key takeaway is that:

With this native rewrite feature, it is no longer necessary to add a backend component or configuration just for this functionality.

The URL and Host Header Rewriting functionality uses regex matching for conditions, and URL path and host header rewrites natively on ALBs. These can be configured on new and existing ALBs through the AWS Management Console, AWS SDK, or AWS API, providing fine-grained control over traffic flows to backend services like EC2 instances, containers, and Lambda functions.

URL rewrite on ALB with target groups

(Source: AWS Networking & Content Delivery blog)

Furthermore, the new Transforms section in an ALB rule allows for the modification of incoming requests before they reach the target group. An everyday use case is manipulating path prefixes, such as replacing an old API version path (/v1) with a new one (/v2).

Configuring transforms with URL path

(Source: AWS Networking & Content Delivery blog)

Luc van Donkersgoed, AWS Serverless Hero, commented on LinkedIn:

Pre:Invent is in full swing! I love this feature ❤️ ALBs can now rewrite paths and host headers directly in the load balancer. This allows for much more powerful and flexible load-balancing patterns.

With the new feature, AWS joins other major cloud providers already offering similar native capabilities at Layer 7. For instance, Google Cloud Platform (GCP) provides robust URL and header manipulation through its Application Load Balancers' URL Maps, allowing the rewriting of hosts and paths before requests hit the backend. Similarly, Microsoft Azure offers this functionality regionally via the Azure Application Gateway, which supports conditional URL and HTTP header rewriting, and globally through Azure Front Door's advanced Rule Engine for more complex, pattern-based traffic control.

A Snark bot from lastweekinaws posted on Bluesky:

AWS finally lets ALBs rewrite URLs without needing 3 more services and a PhD in RegEx. "No additional charge" means you're already paying too much for load balancing.

Lastly, the capability is currently available across all AWS commercial, AWS GovCloud (US), and AWS China regions. Furthermore, details on AWS ALB are available on the documentation pages.

About the Author

Steef-Jan Wiggers

Show moreShow less

Rate this Article

Adoption
Style

Related Content

The InfoQ Newsletter

A round-up of last week’s content on InfoQ sent out every Tuesday. Join a community of over 250,000 senior developers. View an example

We protect your privacy.

BT

AltStyle によって変換されたページ (->オリジナル) /