标签:nginx
server { listen 80; server_name mirrors.163.com; access_log logs/163.log main; location / { proxy_set_header X-real-ip $remote_addr; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Scheme $scheme; proxy_send_timeout 300s; proxy_connect_timeout 300s; proxy_read_timeout 300s; proxy_ignore_client_abort on; proxy_pass http://mirrors.163.com; limit_rate 400k; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }
这样内网机器就可以下在mirrors.163.com 源内所有的文件了
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1953375
标签:nginx
原文地址:http://wsxxsl.blog.51cto.com/9085838/1953375