从非www重定向到www,我是否需要天蓝色的两个应用程序服务? [英] Redirect from non www to www, do I need two app services in azure?

查看:50
本文介绍了从非www重定向到www,我是否需要天蓝色的两个应用程序服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

当我尝试访问 domain.com 时,出现此错误:

我是否必须创建两个应用程序服务,一个用于 domain.com ,一个用于 www.domain.com ?还是有一种方法可以使用一项应用程序服务来完成此任务?

解决方案

我必须创建两个应用服务,一个用于domain.com,另一个用于www.domain.com?还是有一种方法可以使用一个应用程序来完成服务吗?

否,您不需要两个应用程序服务即可完成此操作.

假设您已在DNS提供程序(例如GoDaddy)中正确配置了域映射,则只需添加 www.domain.com domain.com 在Azure门户中Web应用的自定义DNS 部分的主机名映射中.

I'm using this solution in redirecting my domain from non www to www. I'm using azure for hosting.

I have created app service for www.domain.com

when I try to access domain.com I get this error:

Should I have to create two app services one for domain.com and one for www.domain.com? or is there a way to accomplish this using one app service?

解决方案

Should I have to create two app services one for domain.com and one for www.domain.com? or is there a way to accomplish this using one app service?

No, you don't need two app services to accomplish this.

Assuming you have configured domain mapping correctly in your DNS provider (e.g. GoDaddy), all you need to do is add both www.domain.com and domain.com in the Hostname mapping in Custom DNS section for your Web App in Azure Portal.

这篇关于从非www重定向到www,我是否需要天蓝色的两个应用程序服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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