简体   繁体   English

Windows 10,IIS 10和多个

[英]Windows 10, IIS 10 and multiple

First question, can Windows 10 support multiple websites under IIS 10? 第一个问题,Windows 10可以支持IIS 10下的多个网站吗? If that is yes, the how? 如果是的话,怎么样?

We need them to be on the same port, 80, and to have SSO. 我们需要他们在同一个端口,80,并有SSO。 We have tried setting the bindings to give each web site a hostname Any IP Address and port 80. Each has its own App Pool. 我们已经尝试设置绑定,为每个网站提供主机名任意IP地址和端口80.每个网站都有自己的应用程序池。

Do we need to get corporate IT involved to set up alias' in the corporate DNS server and Kerberos server? 我们是否需要让公司IT参与在公司DNS服务器和Kerberos服务器中设置别名?

Thanks, Doug 谢谢,道格

@alex-kudryashev, thank you very much. @ alex-kudryashev,非常感谢你。 I was doing fine until I hit adding the newly created certificate to IIS for my site. 我做得很好,直到我为我的网站添加新创建的证书到IIS。 I went into Bindings, selected HTTPS and it asks for a Host Name, is that the hostname of the site or the fully qualified hostname? 我进入Bindings,选择HTTPS并询问主机名,是站点的主机名还是完全限定的主机名? I created a SSL certificate but I do not see it in the choices for SSL certificate. 我创建了一个SSL证书,但我没有在SSL证书的选择中看到它。 Am I supposed to put the file in a special place? 我应该把文件放在一个特殊的地方吗? Also when creating the certificate do I use the hostname, fully qualified hostname or?? 另外,在创建证书时,我是否使用主机名,完全限定的主机名或?? Also does the certificate have to be in a certain form? 证书也必须是某种形式吗?

Yes, IIS10 on Windows 10 supports multiple sites. 是的,Windows 10上的IIS10支持多个站点。 To create site 创建网站

  1. Open IIS management console, right click Sites and select Add Site then fill in Basic Settings (app pool, physical path, and others). 打开IIS管理控制台,右键单击“ 站点”并选择“ 添加站点”,然后填写“ 基本设置” (应用程序池,物理路径等)。
  2. In Binding fill in Host Name field. 在“ 绑定”中填写“ 主机名”字段。 Leave default values in IP and port settings. 保留IP和端口设置中的默认值。
  3. Add line in Hosts file ( c:\\windows\\system32\\drivers\\etc ) 127.0.0.1 www.site.name . Hosts文件中添加行( c:\\windows\\system32\\drivers\\etc127.0.0.1 www.site.name
  4. Create SSL Certificate (using OpenSSL) and assign it to https (port 443) in Binding . 创建SSL证书(使用OpenSSL)并将其分配给Binding中的 https(端口443)。

Do the same for other sites. 对其他网站也这样做。

I went into Bindings, selected HTTPS and it asks for a Host Name, is that the hostname of the site or the fully qualified hostname? 我进入Bindings,选择HTTPS并询问主机名,是站点的主机名还是完全限定的主机名? I created a SSL certificate but I do not see it in the choices for SSL certificate. 我创建了一个SSL证书,但我没有在SSL证书的选择中看到它。 Am I supposed to put the file in a special place? 我应该把文件放在一个特殊的地方吗? Also when creating the certificate do I use the hostname, fully qualified hostname or?? 另外,在创建证书时,我是否使用主机名,完全限定的主机名或?? Also does the certificate have to be in a certain form? 证书也必须是某种形式吗?

As far as I know, if you want to select special certificate for your IIS web application host binding. 据我所知,如果要为IIS Web应用程序主机绑定选择特殊证书。 You should firslty import the certificate. 您应该首先导入证书。

I suggest you could follow below steps to import the certificate: 我建议您按照以下步骤导入证书:

1.Open IIS managemnet console and find the certificate feature: 1.打开IIS managemnet控制台并找到证书功能:

在此输入图像描述

2.Select the import at right side: 2.选择右侧的导入:

在此输入图像描述

3.Select the import certificate and type in the password. 3.选择导入证书并输入密码。

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

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