drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
424 stars 122 forks source link

proxying to an apache virtual host domain takes arounds 5 seconds to resolve #87

Open morfin opened 9 years ago

morfin commented 9 years ago

Hi,

If I proxy to localhost is very fast (100ms). But proxying to something like mysite.local takes around 5 seconds.

This delay does not happen if I load mysite.local directly from browser, so does not seem to be an apache misconfiguration.

Apache/2.4.9 (Unix) Any idea ?

ghost commented 9 years ago

I have same problem with nginx. Was looking for solutions and found this issue.

k7n4n5t3w4rt commented 9 years ago

This may or may not be related but I've noticed that the proxy seems to be resolving the domain and sending the request to the IP address. I haven't noticed a problem with the speed of this but I noticed it because the apache server receiving the request doesn't route the request through the virtual host record for the domain.