I am not sure if it worked before or not but recently I had to curl my own service using its proxy domain name. For example, I had app.example.com proxy set up and from the server I used curl app.example.com but I got connection refused error. I added 127.0.0.1 app.example.com to /etc/hosts file on my server and it started working properly again. I think I will have to add all of my domains to /etc/hosts file which is a bit cumbersome. Also it's a bummer that I cannot use wildcard in hosts file. I wonder if others also came across this situation as well