https://rancher.com/ logo
Title
m

many-artist-13412

04/24/2023, 2:44 PM
1 basic question about ingress. I was able to setup ingress and working fine . My question is, when I specify the DNS hostname , the request hits the ingress and get the page. But if I specify the IP address instead , it hits the Loadbalancer and will give out the 404 error message, as expected. Wondering how this routing works !
r

refined-analyst-8898

04/24/2023, 3:43 PM
An HTTP reverse proxy typically routes incoming requests based upon the HOST header which is the DNS name or IP address you typed in the browser address bar. You can change the expected value for a particular Ingress resource by adjusting the
host
it's listening for.
m

many-artist-13412

04/24/2023, 5:20 PM
Thanks qrKourier. You said a good point. I was able to see the host header with tcpdump