We currently have two application servers on a Linux box in AWS. One is on port 8080 and one is on port 7080. I wanted to know if we could possibly setup a configuration this way:
prefix1.domain.com > applicationserver:8080
prefix2.domain.com > applicationserver:7080
Also, we would specify a UCC SSL cert with both URLs as SANs.
Basically, I want to have nginx route to each application based on which prefix is defined in the request and to also host the SSL communications with a single UCC cert.
One idea I had was setting up two WAN IP's on the server, then setting up a DNS A record to route to either WAN IP based on the prefix. Then, hopefully nginx can listen on either adapter and route.
Does anyone know if this configuration can be setup in nginx, or if there is an easier way to do what I want it to?
prefix1.domain.com > applicationserver:8080
prefix2.domain.com > applicationserver:7080
Also, we would specify a UCC SSL cert with both URLs as SANs.
Basically, I want to have nginx route to each application based on which prefix is defined in the request and to also host the SSL communications with a single UCC cert.
One idea I had was setting up two WAN IP's on the server, then setting up a DNS A record to route to either WAN IP based on the prefix. Then, hopefully nginx can listen on either adapter and route.
Does anyone know if this configuration can be setup in nginx, or if there is an easier way to do what I want it to?