Multiple applications, one domain, how many SSL endpoints are required?

I need to pass the project to the client, however they requested that all requests go to https.

I bought a wildcard SSL certificate, however the application as a whole runs under 2 different heroku applications. (Application / Authentication)

Did I understand correctly that I will need 2 SSL endpoints or can I use the same SSL endpoint for both applications? if so, how?

update from comments For example:

app.domain.com auth.domain.com 

I assume this works because of the SSL wildcard - the standard SSL certificate will not work here for obvious reasons.

+6
source share
1 answer

Since both applications use the same domain, you can use the same SSL endpoint.

  • Add an SSL endpoint to one application.
  • Add cname for each application domain that points to Heroku SSL endpoint
  • Add domains for each application using heroku domains:add DOMAIN

Heroku will handle the routing for each application through the SSL endpoint.

+15
source

Source: https://habr.com/ru/post/949140/


All Articles