在一个Web应用程序下托管两个网站-Azure服务 [英] Hosting Two Website Under one Web App - Azure Services
问题描述
我想在一个天蓝色网站上部署多个网站.我已经尝试在Windows环境中部署多个网站,并且效果很好.
现在,我正在尝试为Linux环境部署相同的产品,但是我似乎找不到出路.在Windows上,Azure Web Apps具有用于路径映射"的配置页,它们允许您指定哪些子目录包含一个独立的应用程序,并且可以将URL映射到它们.
在Linux环境上,没有虚拟应用程序和目录"的配置页面.它仅显示装载存储(预览).
我想知道是否有任何简单的方法可以在Azure环境下为Linux环境配置虚拟应用程序和目录
我想将自己的网址设为 example.com 和 example.com/api
example.com/api 是 example.com
的子项目Linux下的当前Web应用程序不支持虚拟应用程序.
相关信息
虚拟目录基本上是IIS的概念.我们无法为Linux创建虚拟目录
Linux中的Azure Web应用程序,我不确定kestrel是否支持虚拟应用程序和目录,至少目前尚不支持Azure Web应用程序产品.
如果您对Azure Web应用有更多疑问,请您可以在门户网站上提出支持请求.您还可以在反馈中提出您的想法和建议,并优化产品与Microsoft官方一起提供.
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屋!