Note This sample is part of the Centralized inbound gateway options for Azure Container Apps - Configure ACA with Application Gateway (Terraform sample) blog post.
In this repo you can find an example of how to configure your Application Gateway and Azure Container apps using custom domain.
In this example the original host name will be preserved in the call between the reverse proxy (AppGw)and the back-end application server (ACA):