相同的IIS服务器上的两个服务栈的API [英] Two service stack APIs on the same IIS server

查看:168
本文介绍了相同的IIS服务器上的两个服务栈的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我在一个情况下,我需要部署多个服务栈的API到同一台服务器,却得到了AppHostBase。实例已经设置。我发现此链接: ServiceStack APPHOST是一个单,但它似乎是?涉及到多个版本的相关API或版本的API。这不是我的方案。我怎样才能(或者是有办法)配置多个服务栈的API,这是完全没有关系,没有对方的任何知识,在同一台服务器上同时运行?

I'm currently in a situation where I need to deploy multiple Service Stack API's to the same server and getting an 'AppHostBase. Instance has already been set'. I've found this link: ServiceStack AppHost Is a Singleton? but it seems to be related to multiple versions of related APIs or versioned APIs. This is not my scenario. How can I (or is there a way to) configure multiple Service Stack API's which are completely unrelated and do not have any knowledge of each other to run simultaneously on the same server?

推荐答案

您应该能够安装在IIS中两个不同的应用,只要它们在不同的应用程序池中运行。这将坚持指导之一的单应用程序主机为每个应用程序域

You should be able to setup two different applications in IIS as long as they run under different application pools. This will adhere to the guidance in the above linked answer of one single App Host for each App Domain.

这是不是从在IIS管理不同的应用程序(非ServiceStack)应用程序不同。

It is not different from managing different applications (non ServiceStack) applications in IIS.

这篇关于相同的IIS服务器上的两个服务栈的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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