- 2025年07月27日
- 星期日

我的网站部分受auth_basic保护: location / { auth_basic Authorization Required; auth_basic_user_file .htpasswd; index app.php; try_files

我想将请求传递给上游服务器.原始URL不受密码保护,但上游服务器是.我需要在请求中注入Basic auth用户名/密码,但在执行时会出错:upstream supportbackend { server username:password@support.yadayada.com; } 和upstream supportbackend {