Install Varnish-cache configuration and experience method in Linux system

Source: Internet
Author: User
Tags error code varnish

Varnish-cache in the Linux system is a set of High-performance reverse Web site cache server, such a large server to facilitate the use of computers, but on the computer how to install and experience it! Now let's take a look at it!

The main understanding of the VCL several states, mainly VCL-RECV and Vcl-fetch Basic is enough

VCL-RECV can generally specify which backend can be used to set the pass rule

Vcl-fetch mainly handles caching rules, setting cache time Beresp.ttl

1. Manual cleanup of cached commands (version 3.0 and previous discrepancies):

sudo varnishadm-t localhost:1234 ban.url *$-s/etc/varnish/secret

2.acl only for IP use

3. If you are prompted to repeat error code 1061, it means that you have written incorrectly.

4. If prompted Unkown request error code 1011 means that the command was mistaken (ban replaced the original purge)

5.req.url does not contain the domain name part, the domain name part is Req.http.host

6. Clear the specified page cache according to host

Varnishadm-t 127.0.0.1:2000 ban "Req.http.host ~ www.domain.com$ && req.url ~/1.html" a

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.