sirdank
sirdank

Reputation: 3571

Why does HTTPS break my hosts file redirection?

There is a machine (let's call it Machine) with a hostname in my local network. If I go to abc.def.com, my DNS service resolves Machine's external IP and connects me successfully with https://. I've added a hosts file entry so that local.abc.def.com resolves to Machine's local, internal IP.

However, using https://local.abc.def.com breaks everything. I get ERR_CONNECTION_REFUSED in Chrome and This page can't be displayed in Internet Explorer. If I replace https:// with http://, it works again. What's going on?

Upvotes: 1

Views: 1079

Answers (1)

Dzmitry Savinkou
Dzmitry Savinkou

Reputation: 5190

I assume, for your abc.def.com machine you have https redirect configured with 443 port as well. Based on description above your application/web server you are using is not listening port 443 or there is a firewall rejecting your connection.

Upvotes: 2

Related Questions