我的面前有个正经的传道者。nginx的工作是终止HTTPS并负责身份验证。
问题是,nginx将在Authorization头中查找凭据,但当我配置好使用代理时,它将在Proxy-Authorization头中发送凭据。所以apt得到了401作为响应。
是否有办法使nginx在Proxy-Authorization头中查找凭据?
发布于 2022-10-17 09:39:27
我找到了一个解决办法:
不用在http_proxy env-变量或apt.conf中使用Acquire::http::proxy,我可以按照适用于传道者的文件中的描述更改sources.list,apt将使用正确的标头。
例如:deb http://deb.debian.org/debian buster main变成deb https://apt-cache.example.com/deb.debian.org/debian buster main
不过,我还是会对“干净”的解决方案感兴趣。
https://serverfault.com/questions/1113247
复制相似问题