开发者

Multiple webroles in azure

开发者 https://www.devze.com 2023-03-25 12:35 出处:网络
I am creating azure project w开发者_C百科ith multiple webroles for multiple websites. When I Deploy this I am getting single url (*.cloudpp.net)

I am creating azure project w开发者_C百科ith multiple webroles for multiple websites. When I Deploy this I am getting single url (*.cloudpp.net)

How to get url(*.cloudapp.net) for each role.


Every Windows Azure application gets one virtual IP address (and one CNAME mapped to it, like <foo>.cloudapp.net).

Roles within an application can listen on different ports on that one IP address (e.g. http://<foo>.cloudapp.net, port 80, and https://<foo>.cloudapp.net, port 443).

If you want different IP addresses, you'll need to create multiple applications, not multiple web roles within the same application.


If you wish to host several websites on the same url, you can host them on different ports (with one port for each webrole). If you wish to have them all on the same port, you need to serve all the sites out of the same webrole, but with different hostheaders for the various sites, or you can run them as virtual directories. See http://msdn.microsoft.com/en-us/gg433177

0

精彩评论

暂无评论...
验证码 换一张
取 消