How to configure squid for simple illustration of CDN in Windows

Source: Internet
Author: User
This tutorial is intended to share with you how to configure squid on a Windows host. Where is the write incomplete, incomplete, or need to be modified. I will immediately correct it. See the text section below.

Note that the computer on which you pre-install and configure squid must be connected to the network. The system version is Windows 2000/XP/2003/Server 2003.
1) first download squid for Windows version, as follows (ZIP file name: squid-2.7.STABLE4-bin.zip), you can download this file to the desktop, so that you can find a good operation.
Squid is a famous agent server software under Linux/Unix, many commercial version of the agent server is based on squid development: http://www.squid-cache.org/products.html
Recently only occasionally found that squid also had for Windows Version: http://www.acmeconsulting.it/SquidNT/download.html
Although this version is not officially released by the Squid Project for Windows, it can be seen from the release records that the maintainer of this version is still very responsible. If you want to build a proxy server on Windows, try it out.
Http://squid.acmeconsulting.it/download/squid-2.7.STABLE4-bin.zip
2) copy to the root directory of drive C, and then click the right mouse on the file, select the extract to squid-2.7.STABLE4-bin command, you can generate a squid folder in the root directory of drive C. In this way, squid for Windows is "installed" on your computer. Note: Do not change the path and folder name as much as possible. Put it in the root directory of the C drive. Do not change the folder name, that is, squid. Because squid for Windows is installed at c: \ Squid by default, everyone should be cautious about this. If you want to modify the path and folder name, You have to modify many configurations in Squid, which is quite troublesome.
3) Start-run-cmd. Open the window and press the doscommand line to enter the command.

4) Close the DOS window and return to the desktop. Go to my computer-drive C, double-click to open the squid folder, double-click to open the squid. conf file, and edit the configuration of this file. Press Ctrl + F, enter ACL safe_ports port 777, and press Enter. Press Enter next to # multiling HTTP and add a space. The written content is shown in.

5) press Ctrl + F and enter http_access deny connect. Press enter to find the content. After ssl_ports, press enter to add two blank lines. For more information, see.

6) Find the # cache_mem 8 Mb sentence and delete the previous # number to change the default 8 to the required size. The value here depends on the available memory of the specific machine, the maximum size should be set as much as possible to improve the performance of the proxy server, but the cache size of the proxy server cannot affect the performance of the machine. As shown in.

7) set the hostname. Please follow the procedure.

8) press Ctrl + S to save and edit the squid. conf file, and then close it.
9) Start-run-CMD and enter the following three commands.
Cd c: \ squid \ sbinsquid-I
Squid-z
Squid
10) the configuration is complete.

Here, the squid part is successfully set up.

Domain name resolution is started below.
Open the directory c: \ windows \ system32 \ drivers \ etc
Use NotePad to open hosts and edit and save
61.174.63.74 cdn.jb51.net cdn.jb51.cn
(This IP address is the IP address of your master server, not the IP address of the CDN server)

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.