Tag: aws ec2

EC2实例的端口80上的IIS /节点服务器问题

服务器configuration完成后,我有一台IIS服务器在我的EC2实例的端口80上侦听。 我可以从我的弹性IP访问这个。 但是我closures了希望在端口80上启动节点服务器的IIS服务器。 现在,两个都不行! 我的节点应用程序侦听端口80,但不能从外部使用弹性IP访问。 我试图启动IISpipe理器中的IIS服务器,它看起来像打开。 但在实例(使用私有IP)或从外部访问不可访问。 我能做些什么来解决它? 谢谢 Server.js /*******************************************************************************************/ /*CREATE AND START SERVER*/ /*******************************************************************************************/ var fs = require('fs'); var html = fs.readFileSync('./public/index.html'); var server=http.createServer(function(req,res){ //res.write(html); // load the single view file (angular will handle the page changes on the front-end) //res.end(); // application ————————————————————- app.get('*', function(req, res) { res.sendfile('./public/index.html'); // load the single […]