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 22.214.171.124(example). Port 44330 is opened on firewall and is mapped to 443 on testhost.
Kong is on 126.96.36.199(example) and hostname is testhost and port is 443
UI server is also on 188.8.131.52(example) and hostname is testhost and port 9443
Client access UI using https://184.108.40.206: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 220.127.116.11, but is not keeping 44330 port.
Can you please help me on how to configure this type of setup?