What is the difference between the Varnish/squid/nginx cache? SQUID is the most comprehensive, but the architecture is too old, performance is not bad varnish is memory cache, speed first-class, but the memory cache also limits its capacity,
When we visit a foreign site is slow, you can set up proxy access, then our own proxy server can also set other agents to visit foreign websites? The answer is yes.
For example, Agent Proxy1.cnlinux.net can visit foreign countries at a faster rate, and we visit it faster, so we use it as our top agent for visiting foreign websites.
We need to add the following parameters to the squid.conf:
Categories m
Label: style HTTP color ar strong SP file on BS Environment Introduction VM 1: IP Eth0192.168.0.100/24 Eth1: 200.168.0.100/24 VM 2 (simulated Internet) 200.168.0.109/24 (run Web Server) PC () IP 192.168.0.111/24 gateway 192.168.0.100 Implementation of transparent proxy Basic implementation 1. ModifySquid. conf Http_port 192.168.0.100: 3128Transparent 2. Reload the configuration file 3. AddIptablesThe rule sets the internalHTTPRequest re
SQUID is the most versatile, but the architecture is too old, performance is not goodVarnish is a memory cache, the speed is first-class, but the memory cache also limits its capacity, cache pages and pictures are generally very goodNginx is a reverse proxy/web server, with
Squid will be hashed according to the URL of the user requesting the Web page, generating the cached file and storing it in a directory. After squid is started, a hash table is created in memory to record the configuration of the cached files in the hard disk.
For web pages like http://jb51.net/index.html, squid only generates a
This script was modified on the Zhang Yi cache cleanup Script, the main is to add the IF option and optionally list the address of the cache file based on the parameter type (because it is not fixed, sometimes a particular JPG type, sometimes a domain name), is currently applied on its own Squid cache server. Sensory A
Squid configuration does not use cache-Linux Enterprise Application-Linux server application information. For details, see the following. Hello everyone!
In the past few days, squid configuration has encountered a problem. By default, squid uses cache to
2048
# Fqdncache_size 1024
fqdncache_size 2048
#Default:
cache_dir ufs/usr/local/squid/cache 2048 32 512
The number of days after the adjustment was faster, and the load on the back Web server seemed to be significantly reduced.
The Squid records of October 22 are as follows:
Project
Total Visits
Tcp_hit
Tcp_ims_hit
Tcp_mem_hit
code to the functions. php file of your topic.Replace the get_avatar function that obtains the Avatar address with my_avatar. The following is an exception: functions. php comment list function:
get_avatar( $comment
Change:
my_avatar( $comment->comment_author_email
Because the my_avatar function can only retrieve user portraits by Email, you need to change the first parameter to the email address in the preceding case.
Get_avatar function introduction:The above method is simple and convenient.
This script was modified on the cache cleanup script of Zhang banquet, mainly to add the if option, and select the address of the cached file based on the $1 parameter type (because $1 is not fixed, sometimes it is a specific jpg type, sometimes it is a domain name) currently, it is applied on your own Squid cache server and it seems that there is basically no er
This script was modified on the cache cleanup script of Zhang banquet, mainly to add the if option, and select the address of the cached file based on the $1 parameter type (because $1 is not fixed, sometimes it is a specific JPG type, sometimes it is a domain name) currently, it is applied on your own Squid cache server and it seems that there is basically no er
Cachelastmodifiedfactor 0.1
# Defalt expire Tag: hour
Cachedefaultexpire 1
# Force complete after precent of content retrived: 60-90%
Cacheforcecompletion 80
Customlog/usr/local/Apache/logs/dev_access_log combined
Implementation of reverse proxy Acceleration Based on squid
Squid is a dedicated proxy server with
file.
But many agent software (such as squid) does not support "?" In the form of the cache, we use the reverse proxy to cache our site, especially after squid3.0, has started not to take "?" The URL of the number is cached. So if we want to use SQUID
Today, a colleague, asked me squid clear cache when the error 404 what reason. Because I am responsible for front-end caching, but cache cleanup has always been the responsibility of a colleague in another department. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/EC/wKioL1YKOO6gt4bkAAI_ulq_H_k186.jpg "title=" 404. PNG "alt=" wkiol1ykoo6gt4bkaai_ul
my_avatar function can only retrieve user portraits by Email, you need to change the first parameter to the email address in the preceding case.
Get_avatar function introduction:The above method is simple and convenient. However, you need to pay attention to this step. Make sure that the get_avatar function is used to call the Avatar. Generally, only the old theme is not. If not, just change it.
For example:
Update css/js File Cache in the
Recently, I have studied CDN and cache content in the lab and read a lot of Squid cache server information. So I want to build and configure a Squid cache proxy on my computer to see how it works, the following are some of the ste
Apt-proxy: apt proxy, cache-Linux Enterprise Application-Linux server application information. For details, see the following. If multiple machines need to download software from the debian (or ubuntu) library, it is definitely not cost-effective to download the software from the Internet. Apt-proxy can be used to solv
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.