Use Nginx Reverse proxy to set up Ubuntu upgrade source

Source: Internet
Author: User
In order to make it easy for students in the school to upgrade Ubuntu, they can also make full use of the server resources and make an upgrade source for Ubuntu in the school. The machine is relatively old and does not have a large hard disk. it requires at least a hundred GB of space to create a source, which is not realistic. Therefore, Kangzj thought about this method. a server on campus that can be connected to the Internet can upgrade Ubuntu to make it easy for students in the school (without additional traffic) and make full use of server resources, an on-campus upgrade source for Ubuntu is provided. The machine is relatively old and does not have a large hard disk. it requires at least a hundred GB of space to create a source, which is not realistic. So Kangzj thought about this method and reverse represented a fast Ubuntu source on a server on the Internet. I chose the Ubuntu source of HKUST (thank you). The speed is up to 10 MB. It is very simple. after a virtual host is created, the problem is solved. The nginx configuration file is attached below:

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 /;
}
}

You only need to modify source. list:

Deb http://gnu.xinqing100.net/Ubuntu/ jaunty main restricted universe multiverse
Deb http://gnu.xinqing100.net/Ubuntu/ jaunty-security main restricted universe multiverse
Deb http://gnu.xinqing100.net/Ubuntu/ jaunty-updates main restricted universe multiverse
Deb http://gnu.xinqing100.net/Ubuntu/ jaunty-backports main restricted universe multiverse
Deb http://gnu.xinqing100.net/Ubuntu/ jaunty-proposed main restricted universe multiverse
The deb-src http://gnu.xinqing100.net/Ubuntu/ jaunty main restricted universe multiverse
The deb-src http://gnu.xinqing100.net/Ubuntu/ jaunty-security main restricted universe multiverse
The deb-src http://gnu.xinqing100.net/Ubuntu/ jaunty-updates main restricted universe multiverse
Deb-src http://gnu.xinqing100.net/Ubuntu/ jaunty-backports main restricted universe multiverse
The deb-src http://gnu.xinqing100.net/Ubuntu/ jaunty-proposed main restricted universe multiverse

If it is 9.04, you can use this directly;
8.10 replace jaunty with intrepid
8.04 replace jaunty with hard
9.10 replace jaunty with karmic

You cannot upgrade Ubuntu or even install Ubuntu through the Gateway on campus!
 

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.