Removing port from request headers
Hai Dat
1
Reputation point
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?
Sign in to answer