Squid2.5-2.6 improvement and reverse proxy for Web Cache Acceleration

Source: Internet
Author: User
Squid2.6 reverse proxy for Web Cache AccelerationMajor improvements 1. Converged acceleration and reverse functions major improvements to the way that squid handles web proxy, accelerated and transparent proxy requests to make it easier to configure transparent and acceleration functionality. the default behaviour is to function as a standard HTTP proxy on each port that squid is configured to listen on, but in addition in this release the keywords "accelerated" and "Transparent" can be specified after each port to indicate to squid the functionality that is to be enabled on that port. this means that the old config directives relating to httpd_accel _ * are now deprecated. 2. Behavior Analysis logging enhancements to allow even greater customization of the way squid logs requests in the access-log or to syslog if requiredsupport for parsing X-forwarded-for headers allowing access controls to be based on the real client IP even if behind secondary proxiessupport for etag and vary HTTP headers. this further moves squid towards HTTP/1.1 compliance. the vary header field is used for improved caching and delivery of customized content to end clients, and the etag is used similar to an MD5 checksum between client and server to determine if a web page has changed since it was last retrieved.

1. Use http_port and cache_peer rulesBecauseHttpd_accel_host is replaced by the http_port and cache_peer options.Httpd_accel_port is defined by cache_port.
Httpd_accel_uses_host_header is replaced by the http_port vhost option.Then

----------------------------------------------------
Ajax. AAA. com request/| squid |/127.0.0.1 ajax.aaa.com 80
Sns.xxx.com request | 211.100.100 sns.xxx.com 80
Live.yyy.com request -- | 10.10.10.10/11 | ---- 169.100.100 live.yyy.com 81
Tag.zzz.com request/|/etc/hosts |/58.100.100 tag.zzz.com 82
------------------------- --------------------------- Http_port 110.10.10.10: 80 transparent vhost vport cache_peer partition parent 80 0 no-query originserver cache_peer partition parent 80 0 no-query originserver cache_peer partition parent 81 0 no-query originserver cache_peer partition parent 82 0 no-query originserver 2. Log improves the and log record methods, logs can be recorded in system logs or access-logs. After the X-forwarded-for headers function is introduced, log can be directly analyzed through the background web log B, X-forwarded-for headers function to make the back-end accelerated web log more convenient for analysis, you can directly analyze the logs of the backend web to analyze user behavior. The log logs of the backend web in the previous version are all from the front-end squid machine and cannot be directly analyzed from the backend.

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.