Azure应用服务虚拟应用程序/目录 [英] Azure App Service Virtual App/Dir

查看:146
本文介绍了Azure应用服务虚拟应用程序/目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如图所示创建虚拟应用程序或目录时,此处,我不会查看在网站上创建的任何目录(不在wwwroot或其他任何位置)

When creating a virtual Application or Directory as illustrated here, I don't see any dir created on the site (not under the wwwroot nor any where else)

尽管如此,如果我使用Visual Studio的发布功能(如插图所示)进行部署,此处,该目录是在文件系统上创建的.

Although, if I do a deployment with the visual studio publish feature like illustrated here, the directory is created on file system.

我是否总是必须先进行vs发行的首次部署才能创建特定的虚拟目录?

Do I always have to make a first deployment with vs publishing to have a specific virtual dir created?

之所以问这个问题,是因为我认为我将无权访问Production,并且站点配置必须由没有VS的基础架构管理员来完成.

I'm asking this because I think I will not have access to Production and the sites provisioning must be made by the infrastructure admins who do not have VS.

谢谢

JD

推荐答案

JD,

使用VS进行发布时,您正在wwwroot中创建称为物理的文件和目录结构,IIS服务器将使用这些文件和目录结构来服务HTTP请求.

When you publish with VS, you're creating what's called physical files and directory structures in wwwroot that the IIS server will look to use to serve HTTP requests.

或者,虚拟目录在概念上有些不同,因此该目录实际上不像物理目录那样存在于wwwroot目录中.相反,当您创建虚拟目录并指定一个对应的目录时, 门户中的物理路径,您正在指示IIS服务器在指定的虚拟目录(好像该目录确实存在)上接受HTTP请求,但在后台的相应物理路径上处理该请求.

Alternatively, virtual directories are a bit different conceptually such that the directories don't really exist in wwwroot directory like the physical ones would. Instead, when you create a virtual directory and specify a corresponding physical path in the Portal, you're instructing the IIS server to accept HTTP requests at the specified virtual directory (as if that directory really exists) but process the request at the corresponding physical path in the background..

虚拟目录是主要Web服务器中的一项众所周知的功能,您可以在IIS服务器上下文中以及使用它的不同方式中了解有关它的更多信息:

Virtual directory is a well known feature among major web servers and you can read more about it in IIS server context and different ways of using it:

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