Using Nginx reverse proxy function to set up Ubuntu upgrade source

Source: Internet
Author: User
BNU's network situation has said before, the school must have a certification gateway to the network. In order to facilitate the campus students to easily (without cost) upgrade Ubuntu, you can make full use of the resources of the server, do a Ubutu school upgrade source.

The machine is older, do not have a big hard drive, do a source words need at least the space of hundred g, not too realistic. So Kangzj thought out this method, in the school can be a network on the server on the reverse proxy a fast source of Ubuntu. I chose the USTC Ubuntu source (thank you), the speed can reach 10M. Very simple, built a virtual host, and then solve the problem, the following attached nginx configuration file:

server {

Listen 80;

server_name gnu.xinqing100.net;

Access_log/var/log/nginx/gnu.xinqing100.net.access.log;

location/ubuntu/{

Proxy_pass http://debian.ustc.edu.cn/ubuntu/;

}

location/icons/{

Proxy_pass http://debian.ustc.edu.cn/icons/;

}

}

Just modify the source.list to:

Debhttp://gnu.xinqing100.net/ubuntu/Jaunty main restricted universe multiverse
Debhttp://gnu.xinqing100.net/ubuntu/jaunty-security main restricted universe multiverse
Debhttp://gnu.xinqing100.net/ubuntu/jaunty-updates main restricted universe multiverse
Debhttp://gnu.xinqing100.net/ubuntu/jaunty-backports main restricted universe multiverse
Debhttp://gnu.xinqing100.net/ubuntu/jaunty-proposed main restricted universe multiverse
DEB-SRChttp://gnu.xinqing100.net/ubuntu/Jaunty main restricted universe multiverse
DEB-SRChttp://gnu.xinqing100.net/ubuntu/jaunty-security main restricted universe multiverse
DEB-SRChttp://gnu.xinqing100.net/ubuntu/jaunty-updates main restricted universe multiverse
DEB-SRChttp://gnu.xinqing100.net/ubuntu/jaunty-backports main restricted universe multiverse
DEB-SRChttp://gnu.xinqing100.net/ubuntu/jaunty-proposed main restricted Universe Multiverse universe Multiverse

If it is 9.04, you can use this directly;

8.10 change jaunty to intrepid.

8.04 change jaunty to Hardy.

9.10 change jaunty to karmic.

The campus can not be upgraded through the gateway to Ubuntu or even the network installed Ubuntu!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.