[英]Why do i get a “404 not found” error on IE(not Chrome) in node.js express? and how to solve?
I'm making web server with node.js and express module. 我正在使用node.js和express模块制作Web服务器。
So, I installed node.js, express and express-generator. 因此,我安装了node.js,express和express-generator。
And I completed a prototype web server for my project yesterday. 昨天,我为我的项目完成了一个原型Web服务器。
But, when I tested my prototype, I have a strong question. 但是,当我测试原型时,我有一个强烈的问题。
In Chrome, I could connect for URL like '127.0.0.1:3000' 在Chrome浏览器中,我可以连接“ 127.0.0.1:3000”之类的网址
or '172.30.5.164:3000'(this is my intranet ip address). 或“ 172.30.5.164:3000”(这是我的Intranet IP地址)。
But!! 但!!
In Explorer, I could't connect!! 在资源管理器中,我无法连接!
So, I tried to find the way. 因此,我试图找到方法。
I solved the 127.0.0.1:3000 problem. 我解决了127.0.0.1:3000问题。
Just I changed Explorer configuration for intranet and I could connect 只要我更改了Intranet的Explorer配置,就可以连接
like this way ' http://localhost:3000 ' 像这样' http:// localhost:3000 '
However, 然而,
I didn't find the way how to connect use URL like http://172.30.5.164:3000 我没有找到如何连接使用http://172.30.5.164:3000之类的 URL的方法
I don't use socket.io module, just use basic express-generator template like GET/POST way. 我不使用socket.io模块,而只是使用基本的Express-Generator模板,例如GET / POST方式。
I need how to connect on IE strongly because my project is related to OLE Automation, So I have to use ActiveXObject. 我需要如何在IE上进行强烈连接,因为我的项目与OLE自动化有关,所以我必须使用ActiveXObject。
Anyone who give me the hint? 有人给我提示吗?
I'm not good at english writing, so i got to worry about that you understand my problem. 我不太擅长英语写作,所以我不得不担心你理解我的问题。
Thanks in advance. 提前致谢。
IE处理本地ip的方式很奇怪, 请参见article 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.