.htaccess 工作,和Meteor一起工作?

.htaccess 工作,和Meteor一起工作?,.htaccess,meteor,.htaccess,Meteor,是否可以将.htaccess和.htpasswd与meteor应用程序一起使用 如果我在xyz.meteor.com上部署我的应用程序,我可以使用它吗 我在xyz.meteor.com上试用过,但没有效果: AuthUserFile /meteor/.htpasswd AuthGroupFile /dev/null AuthName "Password" AuthType Basic <Limit GET> require valid-user </Limit> Aut

是否可以将.htaccess和.htpasswd与meteor应用程序一起使用

如果我在xyz.meteor.com上部署我的应用程序,我可以使用它吗

我在xyz.meteor.com上试用过,但没有效果:

AuthUserFile /meteor/.htpasswd
AuthGroupFile /dev/null
AuthName "Password"
AuthType Basic
<Limit GET>
require valid-user
</Limit>
AuthUserFile/meteor/.htpasswd
AuthGroupFile/dev/null
AuthName“密码”
AuthType Basic
需要有效用户

.htaccess
不是为与Meteor一起工作而设计的&它基本上会忽略它

如果要对目录进行密码保护,最好使用Apache或npm模块为HTTP路由提供目录或路由的密码:

目前,atmosphere上不存在这样的包,但您可以使用npm模块构建一个包:

npm模块的两个示例应该能够做到这一点

另一个选项是使用,仅允许管理员查看系统的所有页面。
其他人只看到登录屏幕。

哈哈,即使是我的登录屏幕也有点暴露,但很高兴知道该选项存在,谢谢。