First, what is squid?Squid is a software used to buffer Internet data. It does so in such a way that it accepts requests from people who need to download the objects (object) and handles those requests appropriately. In other words, if a person wants to download a Web page, he requests squid to get this page for him. Squid
ServerThe bigUserThe load of the quantitySchemeFirst, the prefaceTwoCompileInstallationThird, install mySql, MemcacheFour, install Apache, PHP, Eaccelerator,Php-memcacheV. Installation of SquidSix, PostScriptFirst, preface, preparation workCurrently, LAMPDevelopmentModeis the first choice for web development, how to build an efficient, reliable, stable webServicehas always been a hot topic, this article is an attempt at this topic.We use theArchitectureThe figure is as follows:Reference---------
The server's large user load schemeFirst, prefaceSecond, compile and installThird, install MySQL, memcacheIv. installation of Apache, PHP, Eaccelerator, Php-memcacheV. Installation of SquidVi. PostScriptFirst, preface, preparatory workAt present, the lamp development mode is the first choice of web development, how to build an efficient, reliable and stable Web server has always been a hot topic, this article is an attempt at this topic.We use the following architectural diagram:Reference--– ———
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 Proxy server, to solve the problem of mobile user access to the Web se
Squid problem! I 've been working on it for several days, so I 'd like to come up and ask my brother-Linux Enterprise Application-Linux server application information. Here is the details. Dear friends, I encountered some problems when configuring SQUID. Please give me some advice. My configuration file is as follows:
# Vi/etc/squid. conf
Http_port 172.16.126.4:
Finally, I have time to test squid's domain identity authentication. I have been using iptables for proxy access control through IP addresses, which method is determined based on the specific internal needs of each company.
First, clarify the requirements and configure squid to enable domain user authentication. If possible, use integrated windows identity authentication so that domain users can use it without entering a password after logging on to t
The Squid software required to install the proxyYum-y Install SquidSecond, the configuration file location/etc/squid/squid.conf#默认配置文件是可以代理所有私网地址的, add your own if you have additional addressesThird, turn on the cache functionCache_dir UFS/VAR/SPOOL/SQUID 100 16 256#默认改行是被注释掉的, if you need to turn on the cache, remove the comment.Four, open the authentication fun
Using Squid as a proxy server, static pages are relatively simple, but dynamic pages are not that simple. In particular, most web pages are dynamic pages. O M personnel should pay attention to this configuration when setting up Squid. The following describes the considerations of Squid when caching dynamic pages.
1. the cached page must display the same content
the role of Refresh_pattern:
Used to determine how long a page stays in the cache after it enters the cache. The Refresh_pattern rule applies only to responses that do not have a definite expiration date. The original server can use the Expires header, or the Cache-control:max-age directive, to specify the expiration date.
Syntax: Refresh_pattern [-i] regexp min percent max [options]
The min parameter is the number of minutes. It is the minimum time limit for outdated responses. If a response r
Suddenly squid will not start, open squid.out, found an error:Warning:cannot Write log file:/var/log/squid/cache.log/var/log/squid/cache.log:permission deniedMessages'll is sent to ' stderr '.Keyword: Permission deniedPermission-Permit, approveDenied-deny past style, rejectDirect CD into/var/log/squid directory, ls-l v
As a free network operating system, Linux is more and more popular with the network enthusiasts, the current Internet run a large number of hosts are Linux, and China has to Linux as a government Internet designated network operating system. There are signs that Linux is gradually maturing.
In order to solve the contradiction between the rapid development of Internet and the resource tension of IP address, proxy server is used more and more widely. Squid
First, we need to create a server group and then use Squid to reverse cache Port web80 to accelerate our website. major portal websites such as 163, sina, and chinaitlab are basically using this technology. the advantage is that it has a great advantage. For example, it accelerates the network and protects against hackers (because they see CDN hosts). This is a reverse set using Squid.
First create a server
;
Add the start dialing command to the/etc/rc. d/rc. local file:
650) this. width = 650; "src =" http://upload.server110.com/image/20130913/232Q253T-0.jpg "/>
After the router is started, check that the vpn channel device is used.
650) this. width = 650; "src =" http://upload.server110.com/image/20130913/232Q21R4-1.jpg "/>
6. view the VPN Log;
You ca
1. What is squid service?The Proxy service (caching service) provides the ability to cache the data accessed by the user, and when the user accesses the same data the next time, the Squid agent can extract the data from the cache, which can be accessed directly, improves access speed and reduces bandwidth usage.2. The application EnvironmentCompany existing 100 users need to all the Internet, through the ro
All the files on my site are static HTML, so in order to speed up the speed of the web, I use squid to implement the reverse proxy caching function.
@ Install Squid
To be lazy, use the ports installation directly, because I have all the server systems installed in the/s partition, so set the prefix to/s/squid
# Cd/usr/ports/www/
Create an account file
To create an account file for user authentication, you can use Apache's htpasswd program to generate an account file.
File/etc/squid/passwd. Each line of the account file contains the information of a user, that is, the user name and the encrypted password.
Htpasswd-c/etc/squid/passwd wj
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/05293BT6-0.jpg "title =
BKJIA exclusive Article] recently, a customer helped a friend pick up a small project. The customer rented several servers for their U.S. machines and then wanted to use proxy servers for Internet access, for customers in China. The specific requirements are as follows:
1. The customer's server has multiple egress IP addresses
2. The customer wants to use the proxy server for Internet access through authentication.
3. The customer wants to access the network from different egress ip addresses
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.