IronRuby 上的 Rails (IIS 6)
我正在尝试使用 IronRuby 在 IIS 6 Web 服务器上运行 Rails,但没有成功。我已关注此网络广播并使其在 IIS 7 上运行,但无法不能让它在 IIS 6 服务器上工作。我需要一些帮助才能让它发挥作用。有什么想法吗?
I'm trying to get Rails running on a IIS 6 webserver using IronRuby, but without success. I have followed this webcast and got it running on IIS 7, but can't make it work on a IIS 6 server. I need some help to get this to work. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须设置通配符映射到 aspnet_isapi.dll
问题可能是它没有将无扩展名的 URL 传递到 .net 管道。
http: //www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5c5ae5e0-f4f9-44b0-a743-f4c3a5ff68ec.mspx?mfr=true
如果这不是问题,请提供更多信息错误等
you have to set a wild card mapping to aspnet_isapi.dll
The problem is probably that it doesn't pass extensionless urls to the .net pipeline.
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/5c5ae5e0-f4f9-44b0-a743-f4c3a5ff68ec.mspx?mfr=true
If this isn't the problem please provide more information as to errors etc.
两个想法..
Casual Jim 说对了一部分,您需要进行通配符映射以使所有请求都通过 .NET 的 ASAPI 过滤器。当我在没有通配符映射的 IIS 5.1 上工作时,我为 *.rails 创建了一个扩展映射,然后必须更改我的路由以将其添加到所有请求的末尾。
如果您使用了我在视频中发布的 web.config,它仅适用于IIS7。版本 6 及更低版本在不同的位置定义处理程序。
IIS7:配置>system.webServer>处理程序>添加
IIS6:配置>system.web>httpHandlers>添加
Two thoughts..
Casual Jim is partially right, you need to do a wild card mapping to get all requests to go through the ASAPI filter for .NET. When I got this working on IIS 5.1 where there is no wild card mapping, I created an extension map for *.rails and then had to change my routing to add that to the end of all requests.
If you used the web.config that I posted in my video, it will only work in IIS7. Versions 6 and lower define handlers in a different place.
IIS7: configuration>system.webServer>handlers>add
IIS6: configuration>system.web>httpHandlers>add