Nginx使用密码保护目录,特定IP除外


8

在我的Nginx设置中,我想用密码保护某些网站,除非从家里的ip访问它。我该如何设置?

此外,除了可以访问我的家用电脑外,这安全吗?

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.