-level subdirectories
Number of list subdirectories
Configure the initialized squid according to this line. 16 level-1 subdirectories (00, 01,..., 0F) will be created under the/var/spool/squid/directory)
Create 256 subdirectories (00, 01,..., FF) under each subdirectory)
The cached data is stored in the preceding directory.
Access_log/var/log/squid/access. log
. There are so many nginx configuration commands and variables that it is really difficult to figure out the meaning of these variables for a short time. Suit has tried several configurations and failed to succeed. Leafing through the domestic only a book Nginx-"actual combat nginx", but helpless too thick, turned over three chapters, simply put down. Change the tools!
The most traditional free HTTP proxy tool for open source is
All the files on my site are static HTML, so in order to speed up the speed of the web, I use squid to implement the reverse proxy caching function.
@ Install Squid
To be lazy, use the ports installation directly, because I have all the server systems installed in the/s pa
stream to the browser, which is a little different from Lighttpd. Lighttpd sends the data to the browser only after the backend data is fully received.
Conclusion: The reverse direction of Apache and squid will increase the burden on the backend web, because each user request will establish a persistent connection with the backend server on the
/var/squid/access. log cache_log/var/squid/cache. log cache_store_log/var/squid/store. log
The following line of configuration is a parameter that appears in a newer version, telling Squid the server name displayed on the error page:
Visible_hostname No1.
As shown in the network configuration, Squid uses CentOS5.8 + squid, and the web server uses FreeBSD + nginx for testing. The local network uses VMnet1 for simulation, the public network uses VMnet2 for simulation, and the IP address is planned as shown in figure. First install the
As shown in the network configuration, Squid uses CentOS5.8 + squid, and the web server uses FreeBSD + nginx for testing. The local network uses VMnet1 for simulation, the public network uses VMnet2 for simulation, and the IP address is planned as shown in figure. First install the
The Web| Server Agent service program is a widely used network application. There are many types of agents, according to the different protocol can be divided into HTTP Proxy service program, FTP Proxy service program, and so on, and the server running the Agent service prog
Implementing a Web Proxy server in C #The Agent service program is a widely used network application program. There are many kinds of agent, according to the protocol can be divided into HTTP Proxy service program, FTP Proxy service program, and the
I. What is Squid?
Squid is a software used to buffer Internet data. In this way, it implements its function by accepting requests from the target (object) that people need to download and processing these requests as appropriate. That is to say, if a person wants to download a web page, he requests Squid to get it for
(CentOS) iptables + squid transparent proxy + Firewall ultimate configuration-Linux Enterprise Application-Linux server application information, the following is a detailed description. Many people are constantly asking iptables + squid to do transparent proxy. I am afraid t
Many people are constantly asking iptables + squid to do transparent proxy. I am afraid to give a unified answer here. If you have any questions, I hope you will give me some comments. Related Resources: man.chinaunix.net, with iptables man in the lower left corner. many people keep asking
Iptables+ Squid is used as a transparent
Reprint how to build a Web server using Nginx to build a reverse proxy server: http://blog.csdn.net/w13770269691/article/details/6977727Introduction: Recently, the company has a server suffered a DDoS attack, traffic above 70M, because the
Http_access Deny CONNECT! Ssl_ports
# only allow cachemgr access from localhost
http_access allow localhost Manager
Http_access Deny Manager
# We strongly recommend the following is uncommented to protect innocent
# Web applications running on the proxy server
# One who can access services on ' localhost ' is ' a ' local user
#http_access Deny To_localhost
#
squid:squid/data/cache/# squid-z2013/06/12 16:25:14| Creating Swap Directories2013/06/12 16:25:14| /data/cache existsOK, after the initialization is complete, squid can be started:#/etc/init.d/squid StartStarting squid:.Test:1. Use IE to test, set proxy IP and port, open
Vim/etc/squid/squid.conf http_access deny! Safe_ports #拒绝不安全端口请求 #http_access deny net # deny CONNECT to other than secure SSL ports http_access deny CONNECT! Ssl_ports #不允许连接非安全ssl_port端口 auth_param Basic program/usr/lib64/squid/ncsa_auth/etc/squid/passwd # Password store path, set via NC Sa_auth program to read Debine Auth_param basic program/usr/lib/
The reverse proxy configuration process is actually not much different from the forward proxy, the only difference is that the configuration fileA place to change. Need to put:Http_port 3128SwitchHttp_port Accel Vhost VportThen add the backend real server information you want to proxy:Cache_peer 180.97.33.108 Parent 0 originserver Name=aCache_peer 101.226.103.106
But if the site has an average of more than 200 requests per second, then the problem is: This is already the best Web server, what should I do? The same scenario applies to the database. To solve this problem, we need to understand the principle of "load balancing".
How Web servers do load Balancing
The most important way to do load balancing for
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.