nuxt ssr .htaccess .htpasswd

时间:2019-03-20 09:50:07

标签: .htaccess .htpasswd nuxt

我有一个处于开发模式的nuxt ssr网站。我想用.htaccess.htpasswd

保护它

我尝试将文件放在根文件夹中,但不会提示http表单

.htaccess如下

AuthName "Restricted"
AuthType basic
AuthUserFile /somewhere/.htpasswd
Require valid-user

我的Apache配置了代理密码

如何在nuxt ssr中使用htpasswd配置htaccess?

0 个答案:

没有答案