Closed goodpixels closed 9 years ago
My understanding is that the hostname
option is used to say "deny all connections that do not use this hostname to access the server". Importantly, it doesn't actually set up the route that redirects my.website
to 127.0.0.1
– this has to be done elsewhere.
In your case, I think the simplest solution would be to add an entry in your HOSTS
file that routes my.website
to 127.0.0.1
I'm trying to
grunt-contrib-connect
to create a server under a specific URL, let's sayhttp://my.website/
. According to the documentation, all I need to do is just to change thehostname
option, but I keep getting an error saying:Fatal error: getaddrinfo ENOTFOUND my.website
.Here's my
gruntfile.js
:Thanks.