在一个 Web 应用程序下托管两个网站 - Azure 服务 [英] Hosting Two Website Under one Web App - Azure Services

查看:39
本文介绍了在一个 Web 应用程序下托管两个网站 - Azure 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个 Azure 网站上部署多个网站.我尝试在 Windows 环境下部署多个网站,效果很好.

现在,我正在尝试为 Linux 环境部署相同的环境,但我似乎找不到出路.在 Windows 上,Azure Web Apps 有一个用于路径映射"的配置页面,它们允许您指定哪些子目录包含独立应用程序,您可以将 URL 映射到它们.

在 Linux 环境中,没有虚拟应用程序和目录"的配置页面.它只显示挂载存储(预览).

我想知道是否有任何简单的方法可以在 Azure 上为 linux 环境配置虚拟应用程序和目录

我希望我的网址为 example.comexample.com/api

example.com/apiexample.com

的子项目

解决方案

目前linux下的webapp不支持虚拟应用.

相关信息

虚拟目录基本上是IIS的概念.我们无法为 Linux 创建虚拟目录

linux 中的 Azure webapp,我不确定 kestrel 是否支持虚拟应用程序和目录,至少目前在 azure web app 产品中不支持.

如果您对 azure web 应用程序有更多疑问,您可以在门户网站上提出支持请求.您也可以在反馈中提出您的想法和建议,并优化产品与微软官方一起.

I want to deploy multiple websites on a single azure website. I have tried to deploy multiple websites on the Windows environment and it works fine.

Now, I am trying to deploy same for Linux environment but i can't seem to find my way out. On the Windows, Azure Web Apps have a configuration page for "path mappings", they allow you to specify what sub-directories contain a standalone application, and you can map a URL to them.

On the Linux Environment, there is no configuration page for "Virtual Applications and Directories". It only shows Mount storage (Preview).

I would like to know if there is any easy way to configure virtual applications and directories on Azure for linux environment

I want to have my urls as example.com and example.com/api

example.com/api is a child project to example.com

解决方案

The current webapp under linux does not support virtual applications.

Relevant information

Virtual directory is IIS concept basically. we can't create virtual directory for Linux https://unix.stackexchange.com/questions/212842/is-it-possible-to-create-a-virtual-directory-in-linux.

Hard link will help us to create a virtual directory in Linux https://www.cyberciti.biz/faq/creating-hard-links-with-ln-command/.

Common linux virtual directories are http://www.emblogic.com/blog/02/common-linux-virtual-directories/

Azure app services in windows, can support virtual application because of IIS can handler mappings and virtual applications and directories.

Azure webapp in linux, I'm not sure whether kestrel supports virtual applications and directories, at least not currently in azure web app products.

If you have more questions about azure web app, you can raise a support ticket on portal. You can also put forward your ideas and suggestions in the feedback, and optimize the product together with Microsoft official.

这篇关于在一个 Web 应用程序下托管两个网站 - Azure 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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