简体   繁体   English

配置IIS 8

[英]Configuring url IIS 8

I'm configuring an IIS 8 Server, and here is the schema that I'm thinking. 我正在配置IIS 8服务器,这是我正在考虑的架构。

I need two environments 我需要两个环境

  • Homolog, is the first and will be a server for applications homologation. 同源,是第一个,并将成为应用程序同源的服务器。 Runs at port 8585. 在端口8585上运行。
  • Production, is the production site, and applications running here will be configured under a DNS, and a specific domain. 生产是生产站点,将在DNS和特定域下配置在此处运行的应用程序。 Runs ant port 8080. 运行ant端口8080。

Inside ineptup/wwwroot folders I have this structure 在ineptup / wwwroot文件夹中,我具有此结构

在此处输入图片说明

I want to access applications under homolog's environment with: 我想通过以下方式访问同系环境下的应用程序:

  • Http://< ip address >:< port >/homolog/< appName > Http:// <IP地址>:<端口> / homolog / <appName>

I want to access applications under production's environment with: 我想通过以下方式访问生产环境下的应用程序:

  • http://< ip address >:< port >/production/< appName > http:// <IP地址>:<端口> / production / <appName>
  • mydomain.net mydomain.net

So, how can I configure it at IIS 8? 那么,如何在IIS 8上对其进行配置?

Normally IIS Default Website(which is pointed to inetpub folder) will run on 80 port, You can override it. 通常,IIS默认网站(指向inetpub文件夹)将在80端口上运行,您可以覆盖它。

If you want to have different ports for your sites Create website by right clicking on sites, give appropriate path and port number in below window 如果要为站点使用不同的端口,请通过右键单击站点来创建网站,并在下面的窗口中提供适当的路径和端口号

Give site name(this can be any name just to identify your site in IIS) Physical path Port Number While creating sites check the application pool, it should target to your framework 提供站点名称(可以是任何名称,仅用于在IIS中标识您的站点)物理路径端口号创建站点时,检查应用程序池时,应以您的框架为目标

For domain you have to give host name, before that you have to map your server with DNS provider 对于域,必须提供主机名,然后才能将服务器与DNS提供商映射

在此处输入图片说明

This link will guide you through the steps 该链接将指导您完成所有步骤

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM