Removing port from request headers

Hai Dat 1 Reputation point
2020-08-10T09:35:07.523+00:00

Hello everyone,

I am trying to run ruby on rails application in Azure, but came across a small problem.

The app returns "IPAddr::InvalidAddressError", when some headers in HTTP request contain port. So I deployed an application gateway and followed this guide: https://learn.microsoft.com/en-us/azure/application-gateway/rewrite-http-headers#server-variable for removing it. It works fine for originating ip address, but inserts another IPv6 with port (guessing it's an application gateway address or something). Does someone know how to deal with this?
16716-screenshot.png

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,079 questions
{count} votes

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.