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 partition, so set the prefix to/s/squid
# Cd/u
/mysql_authAuth_param basic realm LLZQQ's CACHING SERVERAuth_param basic children 5Auth_param basic credentialsttl 2 hoursAcl password proxy_auth REQUIREDHttp_access allow passwordAuthenticate_ip_ttl 2 hoursHttp_access deny all
IV. client settings
Fill in the IP address and port of the SQUID server in the proxy server settings of the browser:IP address 192.168.0.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Download the squid of windwosnt: HTTP://Squid. acmeconsulting. it/Download/Squid-2.6. Stable13-Bin.zip 1. Put squid-2.6. Stable13-Decompress bin.zip and copy the squid folder
Installation:
In this tutorial, the application environment is clean centos 5.5. Separate and load/data partitions in advance, and disable selinux and iptables.
First, modify the file descriptor and set the temporary port range. These settings take effect after restart.
Copy codeThe Code is as follows: cat>/etc/security/limits. conf * Soft nofile 8192
* Hard nofile 20480
DDD
Cat>/etc/sysctl. conf # Set temp port
of the PCI Nic is 10 M. Therefore, the PCMCIA Nic is connected to the Internet, DHCP is set, public IP is obtained, and the Intel Nic is set to static IP: 192.168.2.1, used to connect to the subnet, you can use an Ethernet switch to expand the number of connections, but it is not required for me now, because I only need to connect to my Dell D620.
Step 1: InstallSudo apt-get install squid
Step 2: Configure squid
Use Squid in Ubuntu to set a machine as a proxy serverFirst install squidSudo apt-get install squidThen let's take a look at the squid installation.Whereis squidModify the squid configuration fileSudo gedit/etc/squid. confThen, locate# And finally deny all other access to th
Tags: des HTTP Io OS ar use for SP Div
Test performed under a virtual machine.
VM 1: (dual Nic)
The Intranet IP address of eth0 is 192.168.0.100/24.
Eth1 configure an Internet virtual IP address 200.168.0.100/24
VM 2:
IP Address: 200.168.0.101/24 (for test, it is in the same network segment as the above IP address)
PC:
192.168.0.110
1. Install squid
Install with yum
Yum install squid *-y
Modify configuratio
websites accessing the internet, but the access targets are not fixed;Reverse Proxy mainly provides services for internet customers. It provides cache acceleration for websites that access enterprises. The access targets are relatively fixed.Using squid reverse proxy, websites that actually provide web Services in the background can be located on the internet or
This session explains the common types of proxy serversLearn to build a traditional agent, transparent proxy serviceLearn to configure the access control policy for squid.First, squid service baseworking mechanism of the agent When a client requests a Web page through a proxy, the specified
Installation article:This tutorial application environment is clean CentOS 5.5, pre-divided and load/data partition, and close SELinux and iptablesFirst modify the file descriptor and set the temporary port range, which takes effect after reboot
Copy Code code as follows:
Cat >>/etc/security/limits.conf * Soft Nofile 8192
* Hard Nofile 20480
Ddd
Cat >>/etc/sysctl.conf #set Temp Port
IsSmall and medium-sized enterprises customize a set of open source software solutionsStarted to build a website.
1. Install squid
$ Sudo apt-get install squid-y
Note: After installation, you can start/etc/init. d/squid3 start, but the default status is unavailable.
2. Configuration
$/Etc/squid. conf
Configure Port
package is not detailed here.
5) Configure necessary parameters (traditional proxy)
Http_port 3128
Visible_hostname [your host name]
Reply_body_max_size [maximum download volume you want to allow, for example, 10240000 (unit: K)] Allow all
6) restart the Squid Proxy Server for initialization.
1. Squid reverse proxy single background Web server
A, if the Web server and the reverse proxy server are two separate machines (the general reverse proxy should have two network cards are connected to the internal and external network respectively). Then, you should modify the following to set up the reverse
Install squid proxy server for Linux installation1. Case topology Diagramsystem centos6.5 Software sarg-2.3.7.tar.gz squid-3.4.6.tar.gz650) this.width=650; "style=" Float:none; "title=" Picture 1.png "src=" https://s2.51cto.com/wyfs02/M02/9A/46/ Wkiom1ltlvqs3zkpaaazzye7kyo804.png "alt=" Wkiom1ltlvqs3zkpaaazzye7kyo804.png "/>2. Case Requirements(1) If you need to
dstdomain. baidu.com. zol.comhttp_access allow HTTP pass_domainhttp_access deny HTTP!pass_domainThree: Start squid/etc/init.d/squid startSQUID-KCH: Check the configuration of squid.conf for errors (need to start squid first);Squid-kre: Reload SquidFour: Set up agent in IE browser650) this.width=650; "src=" http://s3.5
GFW blocked the HTTP/SOCKS5 agent, HTTP Proxy is the keyword filtering, SOCKS5 agent is the blockade protocol. However, some special low-end ports do not have such treatment, known to have 21, 25.20 port has been blocked, 21 ports will now be limited speed 400Kbps, after conversion of about 50KB/S, we recommend the use of 25 ports, unlimited speed.First, the system environmentOperating system: CentOS releas
Proxy server, there is no need to introduce, simply say the installation process. At the beginning of the hosting24 above, installation, how the installation has not been successful, replaced by Linode, half an hour on the deal, Guess hosting24 the agent made restrictions.
One, server description
A foreign VPS (recommended Linode), service-side squid
A company's internal PC, can access the external netwo
" command on the server to restart the Squid service.
② Configure the IP address and port number of the proxy server in the Web browser of the client.
③ When accessing any website, the Web browser will pop up a dialog box for entering the user name and password.
④ Enter the correct user name and command to connect to the Internet.
⑤ If the user name and password
Install squid acceleration proxy website on windows
Windows squid download http://www.jb51.net/softs/43599.html
Download and decompress the package to c: \ squid
C: \ squid \ etc \ squid. conf is as follows
Copy codeCode: # local
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.