Does Application Gateway require the Host header?

Brad Newton 20 Reputation points
2023-02-03T12:12:15.4+00:00

I know that the Host header is mandatory for HTTP/1.1, and a 400 response should be returned if it's not present in a request.

We're trying to use HTTP/1.0 without a Host header (client device has an old version of OpenSSL), we currently get a 404 response every time.

I don't see anything in the App GW logs, so this is not rejected by our rules.

We have several Listeners on different host names and several Backends.
Does the Application Gateway require the Host header in order to determine which backend to pass the request to? and therefore is just rejecting the request?

i.e. would I be correct in assuming that there's nothing I can do to make this work, other than updating the client?

Thanks for any responses,

Brad.

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,213 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 27,471 Reputation points Microsoft Employee Moderator
    2023-02-03T15:20:17.9433333+00:00

    @Brad Newton

    Thank you for reaching out on the Microsoft Q&A forum.

    Based on your questions above

    We have several Listeners on different host names and several Backends.
    Does the Application Gateway require the Host header in order to determine which backend to pass the request to? and therefore is just rejecting the request?

    Yes, Application Gateway relies on HTTP 1.1 host headers to host more than one website on the same public IP address and port. To differentiate requests on the same port, you must specify a host name that matches with the incoming request. This information is currently documented here.

    i.e. would I be correct in assuming that there's nothing I can do to make this work, other than updating the client?

    Yes, you will need to update the client.

    Hope this helps! Please let me know if you have any other questions. Thank you!

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.