yum install squid
nginx代理squid端口:
location / {
proxy_pass http://192.168.142.141:3128;
}
squid服务器IP:192.168.142.141
squid.conf添加如下两行,192.168.142.142代表 源服务器IP
http_port 3128 accel vhost vport
cache_peer 192.168.142.142 parent 80 0 originserver
还要在阿里云添加域名解析记录:
记录类型CNAME,主机记录:源站的域名,记录值:CDN站点的域名