PPA 镜像加速

Tony 197.3m2020-09-051921 次点击1 人感谢
这里有`USTC`的反向代理.

https://lug.ustc.edu.cn/wiki/mirrors/help/revproxy

只要一句话,全替换成`USTC`加速的`PPA`.再也不担心了.
```
sudo find /etc/apt/sources.list.d/ -type f -name "*.list" -exec sed -i.bak -r 's#deb(-src)?s*http(s)?://ppa.launchpad.net#deb1 http2://launchpad.proxy.ustclug.org#ig' {‌‌‌‌‌‌‌‌‌‌} ;
```
`PPA`里面的软件很分散,只有反向代理这种方式了吧.

反正这段时间一直没发现源镜像,后来想到了可以反向代理啊,自己瞎折腾想搞一番,结果,已经有人做了.

如果在`Lighttpd`做反向代理.(`IP`绑定方式即可)
```
$HTTP["host"] == "xxx.test.com" {‌‌‌‌‌‌‌‌‌‌

proxy.balance = "hash"

proxy.server = (""=>

(

("host" =>"91.189.95.83","port"=>80)

)

)

}
```
[via](https://www.taterli.com/4394/)
收藏 ♥ 感谢
暂无回复

登录注册 后可回复。