Skip to main content This browser is no longer supported. Show
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Application Gateway multiple site hosting
In this articleMultiple site hosting enables you to configure more than one web application on the same port of application gateways using public-facing listeners. It allows you to configure a more efficient topology for your deployments by adding up to 100+ websites to one application gateway. Each website can be directed to its own backend pool. For example, three domains, contoso.com, fabrikam.com, and adatum.com, point to the IP address of the application gateway. You'd create three multi-site listeners and configure each listener for the respective port and protocol setting. You can also define wildcard host names in a multi-site listener and up to 5 host names per listener. To learn more, see wildcard host names in listener.
Important Rules are processed in the order they are listed in the portal for the v1 SKU. For v2 SKU use rule priority to specify the processing order. It is highly recommended to configure multi-site listeners first prior to configuring a basic listener. This will ensure that traffic gets routed to the right back end. If a basic listener is listed first and matches an incoming request, it gets processed by that listener. Requests for Similarly, you can host multiple subdomains of the same
parent domain on the same application gateway deployment. For example, you can host Request Routing rules evaluation orderWhen you use multi-site listeners to ensure that the client traffic is routed to the accurate backend, it's important to have the request routing rules be present in the correct order. For example, if you have 2 listeners with associated Host name as
This ordering can be established by providing a 'Priority' field value to the request routing rules associated with the listeners. You can specify an integer value from 1 to 20000 with 1 being the highest priority and 20000 being the lowest priority. In case the incoming client traffic matches with multiple listeners, the request routing rule with highest priority will be used for serving the request. Each request routing rule needs to have a unique priority value. The priority field only impacts the order of evaluation of a request routing rule, this wont change the order of evaluation of path based rules within a Note If you wish to use rule priority, you will have to specify rule priority field values for all the existing request routing rules. Once the rule priority field is in use, any new routing rule that is created would also need to have a rule priority field value as part of its config. Starting with API version 2021-08-01 rule priority field would be a mandatory field as part of the request routing rules. From this API version, rule priority field values would be auto-populated for existing request routing rules based on current ordering of evaluation as part of the first PUT call. Any future updates to request routing rules would need to have the rule priority field provided as part of the configuration. Important Rule priority field values for existing request routing rules based on current order would be automatically populated if any configuration updates are applied using API version 2021-08-01 and above, portal, Azure PowerShell and Azure CLI. Any future updates to request routing rules would need to have the rule priority field provided as part of the configuration. Wildcard host names in listenerApplication Gateway allows host-based routing using multi-site HTTP(S) listener. Now, you can use wildcard characters like asterisk (*) and question mark (?) in the host name, and up to 5 host names per multi-site HTTP(S) listener. For example, Using a wildcard character in the host name, you can match
multiple host names in a single listener. For example,
Note This feature is available only for Standard_v2 and WAF_v2 SKU of Application Gateway. In Azure PowerShell, you must use
In Azure CLI, you must use In the Azure portal, under the multi-site listener, you must choose the Multiple/Wildcard host type to mention up to five host names with allowed wildcard characters.
Allowed characters in the host names field
Conditions for using wildcard characters and multiple host names in a listener
Considerations and limitations of using wildcard or multiple host names in a listener
See create multi-site using Azure PowerShell or using Azure CLI for the step-by-step guide on how to configure wildcard host names in a multi-site listener. Host headers and Server Name Indication (SNI)There are three common mechanisms for enabling multiple site hosting on the same infrastructure.
Currently Application Gateway supports a single public IP address where it listens for traffic. So multiple applications, each with its own IP address is currently not supported. Application Gateway supports multiple applications each listening on different ports, but this scenario requires the applications to accept traffic on non-standard ports. Application Gateway relies on HTTP 1.1 host headers to host more than one website on the same public IP address and port. The sites hosted on application gateway can also support TLS offload with Server Name Indication (SNI) TLS extension. This scenario means that the client browser and backend web farm must support HTTP/1.1 and TLS extension as defined in RFC 6066. Next stepsLearn how to configure multiple site hosting in Application Gateway
You can visit Resource Manager template using multiple site hosting for an end to end template-based deployment. FeedbackSubmit and view feedback for Additional resourcesAdditional resourcesIn this articleWhich of the following ensures that domain names and corresponding IP addresses are unique?DNS translates domain names to IP addresses so browsers can load Internet resources. Each device connected to the Internet has a unique IP address which other machines use to find the device.
Is it true that a country code domain name can only be owned by someone who resides in that country?a country code domain name can only be owned by someone who resides in that country.
When a domain name ends in .com it indicates that it is a computer company?When a domain name ends in .com it indicates that it is a computer company. center (including servers, storage, services, and applications) over the Internet. 16. The purpose of the TCP protocol is to ensure the integrity of the communication.
Which of the following is the main reason for the initial development of the World Wide Web?The Web was originally conceived and developed to meet the demand for automated information-sharing between scientists in universities and institutes around the world.
|