如何使用子域在Windows Azure中? [英] How to use subdomain in Windows Azure?

查看:142
本文介绍了如何使用子域在Windows Azure中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我有我的domain.com分配给我的蔚蓝的网站,但我想知道我需要使用子域名。

I currently have my domain.com assigned to my azure website, but I'd like to know what I need to use subdomains.

我想我需要在GoDaddy的创建CNAME。但是,什么才是我点它?而每个子点如何做每个文件夹在我的解决方案?

I suppose I need to create a CNAME at godaddy. But what do I point it to? And how does each subdomain point to each folder in my solution?

我需要为这个Web角色?我不知道如何来实现这一目标。

Do I need web roles for this? I have no clue how to achieve this.

请注意。我有一个共享实例。而且我已经使用了自定义域。我要的是我的解决方案来创建一个文件夹,并在里面创建的应用程序:

Note. I have a shared instance. And I'm already using a custom domain. All I want is to create a folder in my solution, and create apps inside it:

解决方案< ExampleFolder< ExampleApp中

和访问它虽然 examplefolder.mydomain.com/exampleapp <​​/ STRONG>

And access it though examplefolder.mydomain.com/exampleapp

推荐答案

您可以绑定多个域到一个Windows Azure的网站。然后,您需要将您的应用程序中配置路由重定向流量到特定的文件夹,并保持URL的正确重写。

You can bind multiple domains to a single Windows Azure Website. You will then need to configure your routing within your application to redirect the traffic to particular folder and keep the URL's rewritten properly.

如果您正在使用ASP.NET MVC,这个任务会不会超硬

If you're using ASP.NET MVC, this task will not be super hard

这篇关于如何使用子域在Windows Azure中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆