I have an Elastic Beanstalk Rails application. I also have two domains:
api.example.com
www.example.com
I want api.example.com
to be accessible only through SSL, https://api.example.com.
However, I want www.example
to be accessible via normal http.
Currently, I have two listeners on my load balancer, one on port 443
and one on 80
.
The problem is that you could now also access api
without SSL, which is undesirable.
Is there a server level solution to my problem?