How to preserve web browser hostname:port

I have a problem in redirecting my UI traffic through kong. Following is my setup:
NAT(Firewall server) -> Kong -> UI server
Firewall server is on 192.169.3.1(example). Port 44330 is opened on firewall and is mapped to 443 on testhost.
Kong is on 192.169.4.1(example) and hostname is testhost and port is 443
UI server is also on 192.169.4.1(example) and hostname is testhost and port 9443

Client access UI using https://192.169.3.1:44330/
If I configure my kong service/route with preserve-host=false, client browser’s URL is transforming to https://testhost.domain.com and failing
If I configure my kong service/route with preserve-host=true, client browser’s URL is having 192.169.3.1, but is not keeping 44330 port.

Can you please help me on how to configure this type of setup?

Hi, have you got a way to preserve web browser domain and port ?


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ