From kwang.cn
Yesterday I introduced to you how to use tmpfs to accelerate your linux server. I think it is not enough. Today, I continue to learn the best way to use squid to accelerate your web site, if you are not satisfied with the speed of your web site, try the method I recommend below.First, you have to have the
the only machine directly connected to the Internet and the Intranet. And assume that some agent server software (such as squid) is running on the proxy server ). Assume that a client in the Intranet is client.sample.com (192.168.1.100 ).
+ ------------------- +
| Intranet (192.168.1. *) | eth1 + -------- + eth0 DD
Article Title: proxy server settings in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Author: H2KILL
Preface:
This document describes how to use squid and squidGuard to configure
Link: http://soft.zdnet.com.cn/software_zone/2007/0902/485972.shtml
First, you have to have the SQUID proxy server. I won't talk about how to install it. Just use her rpm for redhat installation.
Configure the SQUID configuration file to support the httpd accelerator working mode.
Edit the "
First you have to have Squid proxy server, how to install I will not speak, with Redhat directly use her RPM installation on line.
Configure Squid profiles to support the HTTPD Accelerator's working mode.
Edit the "squid.conf" file (vi/etc/squid/squid.conf) to add the foll
to check whether the user and group exist. If not, create a user group. Go to the "squid-2.4.STABLE1" directory and run ". /configure -- prefix =/usr/local/squid "; after completion, Run" make all "; after completion, Run" make install "to install the software. So far, squid has been successfully installed in the/usr/local/s
web| Cache | design
For a Web site with a daily visit to millions, the speed is quickly becoming a bottleneck. In addition to optimizing the application of the content publishing system itself, if you can not need real-time update of the dynamic page output to the static page to publish, the speed of the promotion will be significant, because a dynamic page speed is often slower than static pages 2-10 times
then click Configure.
Step 2: select the NIC connected to the external ADSL Network, and then click "edit ..
Step 3: Select "Activate device when the computer starts" in the next window, click "static IP number", and enter the nic ip Address "192.168.0.1" in the "Number" box ", the default subnet mask is 255.255.255.0, And the Default Gateway number is null. OK.
Ii. Proxy setup process
The focus of this instance is not on LINUX system configuratio
One. Download squid for WindowsDownload Address:
Http://www.acmeconsulting.it/SquidNT.html
Http://www.jb51.net/softs/43599.html
two. Install Squid and configuration under Windows
1. Extract Squid-2.6.stable6-nt-bin.zip to C:\squid
2. Click [Start], select ' Run ', enter CMD, and enter the following command from th
, Proxy server advantage is more obvious.
Second, proxy can play a role in the firewall. Because all users using a proxy server must access the remote site through a proxy server, the
the local Nic is 192.168.0.1, The subnet mask is 255.255.255.0, and squid is enabled. conf, enter the following command in a separate line: acl local_net src 192.168.0.1/255.255.255.0 Step 2: Define the IP address group that can be cached. That is, the "http_access allow local_net" command line mentioned above.
4. Run the test in the browser
Select Edit-Preference-Advanced-Proxies in the Mozilla browser, click Manual
Yesterday J. L asked me how to set the HTTP cache, the brain was a bit confused, a moment unexpectedly he asked is how the reverse proxy set.Starter: PHP CUP XiaobaoWhat is a reverse proxy?A reverse proxy is a special feature of a proxy server, such as Isa,
This article uses the well-known Squid Proxy Software in combination with ramdisk technology and DNS Cache Server to build a high-speed proxy server on the FreeBSD system. The ram-based Directory Pool (sometimes called ramdisk) can significantly improve the performance of ap
use of the cache. That is, the "http_access allow local_net" command line mentioned above.
4. Run the test in the browser
Select Edit-Preference-Advanced-Proxies in the Mozilla browser, click Manual Proxy configuration, and then click View to set the IP address of the Squid server (172.21.101.132) as the proxy
request is for html, htm, gif, and jpg static files, the reverse proxy server returns the result directly. If a user request is a script such as asp, php, and jsp, the reverse proxy server forwards the request to the Web server f
, Squid settings are of course the top priority. The following describes Squid settings based on different implementation functions:
1. configure a third-party authentication program for Squid
1 # enable squid-2.5-ntlmssp as a secondary protocol for ntlm Authentication Mode
2 auth_param ntlm program/usr/bin/ntlm_aut
Configuration
Since it is a proxy server, Squid settings are of course the top priority. The following describes Squid settings based on different implementation functions:
1. configure a third-party authentication program for Squid
1 # enable
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.