简体   繁体   English

node.js iisnode https 500 HRESULT 0x6d subStatus 1013

[英]node.js iisnode https 500 HRESULT 0x6d subStatus 1013

I'm currently working on a realtime chat with socket.io and node.js. 我目前正在与socket.io和node.js进行实时聊天。 On my development machine everything works fine. 在我的开发机器上一切正常。 I can call my socket.io-server on port 888. 我可以在端口888上调用socket.io-server。

The same port is free and reachable on my production server. 我的生产服务器上的相同端口是可用且可访问的。

I can't figure out why IIS raises an 500 error. 我无法弄清楚为什么IIS会引发500错误。 Has anyone an idea? 有人有想法吗?

Following error is thrown: 抛出以下错误:

HRESULT: 0x6d
HTTP status: 500
HTTP subStatus: 1013
HTTP reason: Internal Server Error

My problem was that my IIS hosted site run on 443 https. 我的问题是我的IIS托管站点运行在443 https上。 On node.js I wanted also to use https with the same .pfx file. 在node.js上我还想使用https和相同的.pfx文件。 This doesn't seem to work. 这似乎不起作用。

Also there is no need to use https for node.js if the site is hosted in SSL environment. 如果站点在SSL环境中托管,也不需要对node.js使用https。 The connection runs over wss and is secured. 连接在wss上运行并且是安全的。

Instead of require('https') I came up with require('http') . 而不是require('https')我提出了require('http')

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

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