This article mainly introduces the PHP file generated images can not use the CDN cache solution, here the PHP generated picture is the SRC address is a picture of a PHP file, if not to do CDN, server pressure will be very large, this article explains how to add a CDN method, the need for friends can refer to the
Today found a problem online, a picture domain nam
Comments-ajax.js after the CDN cache, many people encounter problems that cannot be answered (using AJAX). In this respect, my previous practice is only to prohibit the CDN to cache this file, then do not think of him.The original solution is to be followed in the comments-ajax.js:
var i = 0, got =-1, len = document.getelementsbytagname (' script '). Length;
while (i
Add to:
Js_url = J
# 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
to c: \ squid
C: \ squid \ etc \ squid. conf is as follows
CopyCode Code: # locally bound IP Port
Http_port IP: 80 vhost
Visible_hostname localhost
Cache_dir ufs c:/squid/cache 1024 16 256
Cache_mem 100 MB
# Proxy IP address and port
Cache_peer IP address parent 80 0 no-query originserver Weight = 1 name =
Cache_peer IP address parent 80 0 no-query originserver Weight = 1 name = B
# Accelerating two sites
Cache_peer_domain A www.aaa.com
Cache_peer_domain B www.bbb.com
ACL all SRC 0.0.0.0/
Since jQuery 1.3, I have not provided the pack version, and I am in favor of using Google CDN for code hosting.
This solution has the following benefits:
1. Smaller downloads.
We all know that there are as many as 38 kb after jQuery 1.3 pack. If you can delete the copyright annotation to get a smaller code, unfortunately this is not only shameless but only saves 1 kb. However, the Min version that uses GZip provided by Google APIs is only 18 KB, And t
;Else {If (result. IndexOf (",")! =-1) {// There are ",", and multiple proxies are estimated. Obtain the first IP address that is not an intranet IP address.Result = result. Replace ("", ""). Replace ("'","");String [] temparyip = result. Split (",;". ToCharArray ());For (int I = 0; I {If (IsIPAddress (temparyip [I]) Temparyip [I]. Substring (0, 3 )! = "10 ." Temparyip [I]. Substring (0, 7 )! = "192.168&quo
The main server group, and then uses Squid to reverse cache port web80 to accelerate your website. portal websites such as 163, sina, and chinaitlab are basically using this technology. The advantage is that. for example, it accelerates the network and protects against hackers (because they see CDN hosts)This is an application that uses the Squid reverse cluster mode.
Network Environment:
Master server group: source Web server group located in public
www Jump to primary domain
The code is as follows
Copy Code
server {Listen 80;server_name www.111cn.net;Access_log off;Error_log off;return to Http://tool.lu$request_uri;}
HTTP jumps to HTTPS
The code is as follows
Copy Code
server {Listen 80;server_name tool.lu;return to Https://tool.lu$request_uri;}
FastCGI
The code is as follows
Copy Code
Location ~. php$ {Try_files $uri = 404;Fastcgi_pa
master server farm, and then use squid to reverse cache the WEB80 port to speed up its own web site. Major portals like 163,sina,chinaitlab are basically using this technology, The benefits are great. For example, to speed up the network and to prevent hackers (because they are seeing a CDN host)This is a use of squid reverse cluster model to do an application
Network environment:
Primary server cluster: The source Web server farm is located in the
1. How the Cache worksWeb cache, as a Web caching technology, can be implemented on any intermediate network element where a user accesses a Web server. According to the definition of HTTP protocol, in one page access, the user requests from the client to the Web server in response to the request content of the interaction process, usually involves 4 key network elements: users, agents, gateways and WEB servers. When the Web cache is used as a proxy, it usually works in the forward proxy or tran
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
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
. Net mvc extension UrlHelper supports CDN and mvcurlhelper0x00. Why?
Because my server is a small water pipe, it often takes a long time to load a complete website. To speed up website loading, it is best to separate static files. All of them come up with the idea of extending UrlHelper, it is used to support loading files through CDN.0x01. Several Methods for referencing static files
Tojquery-1.11.0.min.j
This article mainly introduces the use of Python in the Pandas Library for CDN Log analysis of the relevant data, the article shared the pandas of the CDN log analysis of the complete sample code, and then detailed about the pandas library related content, the need for friends can reference, the following to see together.
Objective
Recent work encountered a demand, is to filter some data according to the
A method to resolve a PHP backend generated image that cannot use the CDN cache
Today found that there is a problem online, a picture domain name, the front-end has been added CDN cache, do not cache, the dynamic implementation of PHP image scaling, but after the output of PHP processed pictures, each time to read from the backend, back-end server pressure increased, after analysis, PHP did not mak
Why does qiniu have strings to be saved? Does the app server need CDN for strings to accelerate? Why does qiniu have strings to be saved? Does the app server need CDN for strings to be saved?
Reply content:
Why does qiniu have a string to store? Does the app server need CDN to accelerate the string connection?
What do you mean by string Storage? Is the co
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.