Case:Web server: domain name www.abc.com IP: 192.168.21.129 China Telecom single line accessUsers: Telecom broadband users and mobile broadband usersProblem: telecom users can access www.abc.com normally. Mobile users can access www.abc.com very slowly or even not.Solution: place a CDN proxy server in the mobile data center. through intelligent DNS resolution, telecom users can directly access the Web server and mobile users can access the CDN
1. Install squid-2.5Groupadd squidUseradd? G squidRpm? Ivh squid-2.5.STABLE3-3.3E.i386.rpmIi. Configure squid. conf:# Set the proxy port of SQUID (with the IP address added, Squid will
Case:Web server: Domain name www.abc.com ip:192.168.21.129 Telecom Single line accessAccess users: Telecommunications broadband users, mobile broadband usersProblems: Telecommunications users open www.abc.com Normal, mobile users open www.abc.com very slow, or even openSolution: Place a CDN proxy server in the mobile computer room, through the intelligent DNS resolution, let the telecommunication user directly access the Web server, let the mobile use
November 26, 2011? Web server architecture? Number of reviews 2 web server: Domain name www.abc.com ip:192.168.21.129 Telecom Single line access Access users: Telecom broadband users, Mobile broadband users solution: Place a CDN proxy server in the mobile room, Through intelligent DNS resolution, let telecom users access the Web server directly, let mobile users access the CDN Proxy server, solve the p
Case:Web server: Domain name www.abc.com ip:192.168.21.129 Telecom Single line accessAccess users: Telecom broadband users, mobile broadband usersProblems: Telecom users open www.abc.com Normal, mobile users open www.abc.com very slow, even can't openSolution: Put a CDN proxy server in the mobile room, through the intelligent DNS resolution, let the telecom users directly access the Web server, let mobile users access the CDN
Brief introduction:Squid reverse proxy is often used for server side, Client access Squid Proxy Server 80 port, Squid Proxy Server according to the configuration to request the backend Web server,The requested information is then
squid:squid/data/cache/# squid-z2013/06/12 16:25:14| Creating Swap Directories2013/06/12 16:25:14| /data/cache existsOK, after the initialization is complete, squid can be started:#/etc/init.d/squid StartStarting squid:.Test:1. Use IE to test, set proxy IP and
1. Download and install squid for Windows
Download the squid of windwosnt:
Http://squid.acmeconsulting.it/download/squid-2.6.STABLE13-bin.zip
1. Decompress squid-2.6.stable13-bin.zip and copy the squid folder to C:/(squid is C:/
] ~]# Cp/etc/squid/squid.conf/etc/squid/squid.conf.bak[Email protected] ~]# vim/etc/squid/squid.confFor the sake of convenience, I directly change the following line to http_access allow all, the reader can modify the allowable range.# and finally deny all other access to the This proxyHttp_access Deny AllRemember to add the following statement at the bottom of t
. conf [plain] http_accescc allow 10_8_5 # acl 10_8_5 src 10.8.5.0/24 acl SSL_port port 873 # for rsync acl Safe_port 873 # for rsync visible_hostname localhost run before http_access deny all: [plain] squid-I # squid-I installation service, the service name is squid, you can also use-n to specify the name
Common configurations of squid Proxy
Squid. conf is the main configuration file of squid. Common configuration items include:
Http_port 192.168.8.88: 3128
# Specify the listening port and IP address
Cache_mem 64 MB
# Set the memor
=" 11.jpg" alt = "220438931.jpg"/>
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/05315a005-12.jpg "style =" float: none; "title =" 12.jpg" alt = "220442799.jpg"/>
Iptables-t nat-a prerouting-s 192.168.2.0/24-ptcp-dport 80-j REDIRECT-to-port 3128
Use iptables to create a table nat and add it to PREROUTING. All data packets from the 192.168.2.0 CIDR block that use the tcp protoco
Case:
Web server: domain name www.abc.com IP: 192.168.21.129 China Telecom single line access
Users: Telecom broadband users and mobile broadband users
Problem: telecom users can access www.abc.com normally. Mobile users can access www.abc.com very slowly or even not.
Solution: place a CDN proxy server in the mobile data center. through intelligent DNS resolution, telecom users can directly access the Web server and mobile users can access the CDN
When it comes to proxy servers, the first thing we can think of is a dedicated Proxy server Web site that, in some cases, speeds up access to the Internet. In fact, in the need to access the external LAN, we can set up the agent, the number of visits to save the page in the cache, thereby "improve" the network speed. More importantly, we can use the proxy server
unzip the previously downloaded zip file to C:\squid
Configuration:
To the C:\SQUID\ETC directory, Copy Squid.conf.default to Squid.conf,mime.conf.default for Mime.conf,cachemgr.conf.default as cachemgr.conf. If you have special configuration requirements, you can modify the default port of Squid.conf,squid is
SSH is a good solution to this problem. You just need a VPS and you can configure it. Erection is still quite easy.
Install Webmin
Webmin is a free software that visually manages Linux systems. We installed it to facilitate the management of Squid proxy servers or Linux systems. Detailed installation address is as follows:
CentOS Installation Webmin Management system
Install
Unix/linux under the famous Open-source free agent software squid (www.squid-cache.org) is a native version of Windows squidnt. So, if squid is out, who is the one to contend with?
Squid is also simple to install under Windows, including a few steps:
1. Download Squid
Can download the source code of their own compil
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.