前提条件:安装iis的电脑

准备条件:

1.下载iisnode 地址https://github.com/tjanczuk/iisnode/wiki/iisnode-releases  安装

2.下载URL Rewrite 地址http://www.iis.net/downloads/microsoft/url-rewrite   安装

3.地址 https://www.cnblogs.com/vipp/p/9145932.html,前9步骤搭建node站点

4.新建iis网站,设置如下

开始设置:

在node站点下新建web.config配置文件,内容如下:然后点击最下面图片所示位置进行访问。

<configuration>
<system.webServer> <!-- indicates that the hello.js file is a node.js application
to be handled by the iisnode module --> <handlers>
<add name="iisnode" path="index.js" verb="*" modules="iisnode" />
</handlers> <!-- use URL rewriting to redirect the entire branch of the URL namespace
to index.js node.js application; for example, the following URLs will
all be handled by index.js: http://localhost/foo
http://localhost/bar --> <rewrite>
<rules>
<rule name="main">
<match url="/*" />
<action type="Rewrite" url="index.js" />
</rule>
</rules>
</rewrite> <!-- exclude node_modules directory and subdirectories from serving
by IIS since these are implementation details of node.js applications --> <security>
<requestFiltering>
<hiddenSegments>
<add segment="node_modules" />
</hiddenSegments>
</requestFiltering>
</security> </system.webServer>
</configuration>

最新文章

  1. 外边距塌陷之clearance
  2. WCF basicHttpBinding之Transport Security Mode, clientCredentialType=&quot;None&quot;
  3. Python - 升级所有已安装的第三方包
  4. Nodejs之socket广播
  5. Android——ScrollView
  6. 深入浅出百度地图API开发系列(2):创建地图
  7. hadoop自带的writable类型
  8. easyui 通用的datagrid中如何带有查询条件分页
  9. 百度百科Tooltip的实现--原生js的应用
  10. 笔记:MyBatis XML配置详解
  11. Luogu 2766 - 最长不下降子序列问题 - [LIS问题][DP+网络流]
  12. aos.css 动画效果
  13. 深度理解PHP中for与foreach两个循环结构遍历数组的区别
  14. QT +go 开发 GUI程序
  15. (网络数据交互)Android解析Internet中的DOM树数据 “DOM树”
  16. Java性能调优(一):调优的流程和程序性能分析
  17. SparkSQL和DataFrame
  18. 一个优秀的 ring buffer 或 cycle buffer 的实现代码
  19. 学习Struts2经验总结
  20. Android自带的TTS功能

热门文章

  1. Thymeleaf模板引擎绕过浏览器缓存加载静态资源js,css文件
  2. CSS font-size字体大小样式属性
  3. Java面试不得不知的问题(一)
  4. AMD、CMD和CommonJS规范(转)
  5. ARC下需要注意的内存问题
  6. php学习【2】
  7. lvs+ipvsadm负载均衡
  8. 26-dotnet watch run 和attach到进程调试
  9. 初见spark-02(RDD及其简单算子)
  10. 基于HDP版本的YDB安装部署(转)