我的笔记本电脑上安装了Windows 7 Home Basic。
我安装了Visual Studio和IIS。 我想用于开发目的的IIS。 我需要做两件事情:
将本地主机上的域名映射到Web文件所在的文件path。
在本地服务器上定义一个SSL
使用URL重写
问题是inetmgr不存在于我的IIS目录c:\Windows\system32\inetsrv\ 。
是否有可能使用config文件夹内的XML文件进行这些设置,而不使用inetmgr 。
binding ,并且该网站的根应用程序映射到文件系统上的path。 appcmd.exe 。 见下面的例子1。 appcmd.exe set site /site.name:WebSiteName /+bindings.[protocol='http',bindingInformation='*:80:www.mywebsite.com']
其中“WebSiteName”是网站的名称, *:80是IP端点, www.mywebsite.com是您希望使用的域名。
netsh http add sslcert ipport=0.0.0.0:443 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF}
其中, certhash是端点, certhash值是证书指纹, appidd只是一个随机的GUID。