Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Nodejitsu:有没有办法用密码保护应用程序?我不确定我是否可以部署一个 .htaccess 左右...我只需要保护该网站免受意外访问者的影响
谢谢
//Load express var express = require('express'); //User validation var auth = express.basicAuth(function(user, pass) { return (user == "super" && pass == "secret"); },'Super duper secret area'); //Password protected area app.get('/admin', auth, routes.admin);