Reputation: 8480
I would like to have a single Azure Cloud Service including two web applications. Both applications should have the same inbound port number (80) and differ in host headers only.
Is it possible to configure these applications as different web roles? As I see it's not possible to specify the same port as an endpoint of different roles.
Upvotes: 6
Views: 2850
Reputation: 24895
No this isn't possible. You have 2 options:
Deploy everything to a single Web Role. This allows you to use host headers on the same port. If you think performance might be an issue, simply add more instances.
If for some reason you can't host both web applications in a single Web Role, consider using multiple cloud services:
Upvotes: 10