VMWARE6.0 builds Squid2.6 reverse proxy experiment environment

Source: Internet
Author: User
VMWARE6.0 builds Squid2.6 reverse proxy experiment environment-Linux Enterprise Application-Linux server application information. The following is a detailed description. VMWARE6.0 builds Squid2.6 reverse proxy experiment environment

CentOS5 # fuqin Liquor

######################################## #############
System Environment: the actual host is tomato garden XP_SP2 + Vmware6.0

Squid server: CentOS5.1, squid version 2.6, two NICs, Internet Nic VM5, IP: 192.168.5.1, host name www.test.com

Intranet Nic VM0, IP: 192.168.1.101

Intranet Web host a: Cloned centOS5.1, Intranet Nic VM0, IP: 192.168.1.103, domain name: ns.test.com

Intranet Web host B: Cloned centOS5.1, Intranet Nic VM0, IP: 192.168.1.102, domain name: mail.test.com

XP Client Nic VM5, IP: 192.168.5.2

Edit the file edit c: \ windows \ system32 \ drivers \ etc \ hosts on the XP host

192.168.5.1 www.test.com

192.168.5.1 ns.test.com

192.168.5.1 mail.test.com

The Squid configuration file is as follows:

# Listen to port 80 of the server and support virtual hosts with domain names and IP addresses
Http_port 192.168.100.100: 80 vhost

# Key point: reverse proxy configuration. The following content is added to the original squid content file.
# The IP address parent-child relationship port of the web to be proxy is named by the user. The IP address parent-child relationship port is named by the IP address icp or HTCP port (0 indicates disabled ).
Cache_peer 192.168.100.103 parent 80 0 no-query originserver name =
Cache_peer 192.168.100.102 parent 80 0 no-query originserver name = B

# Proxy Domain Name
Cache_peer_domain a ns.test.com
Cache_peer_domain B mail.test.com

# Access Control
Acl all src 0.0.0.0/0.0.0.0
Http_access allow all
Cache_peer_access a allow all
Cache_peer_access B allow all

For details about squid flow diagrams, see my other article http://hi.baidu.com/yuhongchun02... 826da4cd66ac.html

[ This post was last edited by yuhongchun]

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.