Azure Web App-将不同的外部域路由到“站点"中的不同目录 [英] Azure Web App - Route Different External Domains to Different Directories in "site"

查看:49
本文介绍了Azure Web App-将不同的外部域路由到“站点"中的不同目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在高低搜寻我的问题的答案,并仔细研究了可能与我的问题无关的可能解决方案之后,我崩溃了,我就在这里.如果这是重复的话,我先向您道歉.

I've searched high and low for the answer to my question and after weeding through possible solutions that might or might not have anything to do with my question, I broke down and here I am. I apologize before hand if this is a repeat.

快速背景:

我在Azure方面的背景很有限,但我正在学习.

My background with Azure is limited, but I am learning.

我们在德国.我的客户决定我们将所有网站从STRATO的当前虚拟服务器移至他的Azure平台.我们有5个虚拟服务器上当前存在的网站需要移动.都是PHP/MySQL,为此我们在Azure中设置了所有内容,因此没有问题.

We are in Germany. My customer has decided that we move all our websites to his Azure Platform from our current virtual server by STRATO. We have 5 websites that currently exist on the virtual server that need to be moved. All are PHP/MySQL, we have everything set up in our Azure for this, so no problem there.

由于域TLD是.de和.plus,并且您无法将它们添加到Azure本身(这一直困扰着我,直到今天),所以我们必须由STRATO进行DNS记录编辑,我也了解这一部分.

Since the domain TLDs are .de and .plus and you cannot add these to Azure itself (something that continuously baffles me to this day), we have to do the DNS record edit by STRATO, that part I understand as well.

目录结构是文件夹"site".然后是五个单独的子文件夹,每个网站1个.这是正常的.

The directory structure is the folder "site" and then five separate subfolders, 1 per website. This is normal.

Azure有一个子域-xxx.azurewebsites.net,它指向空文件夹"wwwroot",这也不成问题.

The Azure has one subdomain - xxx.azurewebsites.net, this points to the empty folder "wwwroot", which isn't a problem either.

这是让我发疯的两件事:

Here are the two things that are driving me nuts:

  1. 我如何精确地将每个传入域指向树中的特定子目录?记住网站是PHP而不是ASP.NET,因此当然没有web.config文件.
  2. 哪里是安全区"?目录结构内?借此,我指的是Azure树中子目录中任何域都无法访问的部分.我们有一个目录,该目录在当前结构中包含半敏感信息,该目录只能由每个应用程序中的类访问,而不能从Internet访问.我将网站的副本移到"site"内的子目录中,我认为安全目录通常是"site"下的另一个目录,但是我的假设正确吗?这个问题似乎很简单,但是由于文件夹中的内容,我必须绝对确定.

我在另一篇文章中读到,我们要求每个传入域都需要一个Web应用程序,希望不是这种情况.

I read in another post that we would require one Web App per incoming domain, I hope this isn't the case.

如果有帮助,我会很乐意提供其他信息.

I will gladly provide any additional information if it would help.

任何帮助将不胜感激!预先感谢.

Any help would be greatly appreciated! Thanks in advance.

推荐答案

所以我建议使用此设置:

So I would recommend to go with this setup:

  • 以Azure FrontDoor(AFD)作为您的入口点.

这篇关于Azure Web App-将不同的外部域路由到“站点"中的不同目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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