Re: Adding second domain to API endpoint

Guillaume Berche

James, would'nt a second domain (even if resolving to the same IP than the
primary domain, thanks to a CNAME), still be mentionned in http requests in
their original "Host:", header and would therefore be unknown to the CF
gorouter, returning a 404 as a response ?

I wonder whether the routing-api [1] indeed currently returns a wildcard
route to the CC IP/port, and could then be used to advertise a new wildcard
route in a second domain. This would require custom development into a
distinct bosh jobs (that would periodically renew the new domain before its
TTL expires)



On Sat, Jun 6, 2015 at 6:38 PM, James Bayer <jbayer(a)> wrote:

it appears as though the cloud controller only supports advertising a
single domain:

i wonder if a CNAME would work for this as a work-around?

On Sat, Jun 6, 2015 at 9:19 AM, Vinicius Carvalho <
viniciusccarvalho(a)> wrote:

Hi there, how can I add a second domain to my API endpoint? I know how to
add a shared domain for apps. But looking at the router /routes, the
api.<domain> maps directly to the cloudcontroller. How can I add a second
route using a different domain already mapped on my DNS?


The intuitive mind is a sacred gift and the
rational mind is a faithful servant. We have
created a society that honors the servant and
has forgotten the gift.

cf-dev mailing list

Thank you,

James Bayer

cf-dev mailing list

Join to automatically receive all group messages.