I'm having a hard time wrapping my mind around ssl with multiple backends. I might just need advice on infrastructure in general.
Here is my scenario/question:
I have three servers:
- main website
- hosting control panel
- development machine
- Reverse Proxy
All the websites are located on foo.com and I want to pass the traffic from my firewall to each backend respectively.
I am using the reverse proxy with rules on the same network to redirect traffic to the backends except I cannot get SSL working to save my life. I have it mapped as follows:
dev.foo.com maps to server 3.
hosting.foo.com maps to 2.
Otherwise:
*.foo.com maps to 1.
I would like secure.*.foo.com to work the same way except it will rewrite the URL as https for SSL.
I am looking into various methods such as wildcard SSL, but there is not much good information out there.
Here is a little ASCII of my setup:
|--------|
|Internet|
|--------|
|
|------|
|Router|----*-------*
|------| | |
| | |
| | |
|-------| | |-------|
|R-Proxy| | |Server1|
|-------| | |-------|
|
| |-------|
*---|Server2|
| |-------|
|
| |--------|
*---|Server 3|
|--------|
Any advice about the infrastructure would be nice.