If you use 127.0.0.1 it will come back as 404 I believe.
Otherwise, can you send the curl command you're using to access the API and I can take a look.
Thanks,
dan
It's very useful to be able to tell the process to bind to one thing,
but expect requests with a hostname of something else entirely. In my
ec2 example, I want to bind to 0.0.0.0, but I'll be hitting it with at
least one hostname from the clients, preferring to be able to hit it
from many, or any, hostname.
That's my take on it. I'm new to Goliath, coming from years of Rails
work, and got a bit tripped up by even having to think about the
hostname in such a simple example.
So, I don't want 127.0.0.1 I want dan.localhost.
Not sure if this should be another option to the server? Or a lookup on startup for the domain name that matches the -a address?
Thoughts?
dan
There maybe something I'm missing with URLMap or the way I setup the map stuff in Goliath that is causing this to not work but I didn't see anything.
dan