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 re
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--– ———
An error occurred while starting the squid service!
[Root @ squid_A ~] # Service squid restart
Stop squid: [failed]
Init_cache_dir/var/spool/squid.../etc/init. d/squid: line 62: 3017 has abandoned $ SQUID-z-F-D>
/Var/log/
These days because the company needs to study squid, squid support SSL, the main problems encountered in the configuration Https_port, the following is the problem encountered and solutions, the solution does not necessarily apply to your environment but can refer to:), please give valuable advice. 1> The following error occurred: Invalid RequestInvalid requestSome aspect of the HTTP Request is invalid.
Behavior status and reload_into_ims option in squid, reload
[Problem]
Proxy Environment Data Stream: local browser -- Proxy Server (squid) -- remote server (RS)
After squid3 is configured for caching, ie cannot obtain the cached data in squid.
To solve this problem, you need a lot of extended knowledge, as shown below:
1. X-Cache and X-Cache-Lookup values
The t
1. Download squid for windows
:Http://www.acmeconsulting.it/SquidNT.htmlHttp://www.jb51.net/softs/43599.html
Ii. Install squid and configuration in Windows
1.decompress squid-2.6.stable6-nt-bin.zip to C: \ squid
2. Click [start], select "run", Enter cmd, and enter the following command in the Command Prompt window:
C:
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 proxy server, slow access to Web servers by mobi
Squid reverse proxy working principle when a user's browser sends an HTTP request, the request is directed to the reverse proxy server through domain name resolution (if you want to implement reverse proxy for multiple WEB servers, you need to direct the domain names of multiple WEB servers to the reverse proxy server ). Requests are sent by the reverse proxy server processor. Reverse Proxy generally only caches buffered data (such as html webpages an
Squid is one of the well-known proxy server software, and it is also the most popular high-performance caching proxy server software in Linux environment. It has the characteristics of strong function and simple setting.
After a basic understanding of squid, will enter the squid installation process.
First,
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
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.