Linux and Cloud computing--the second phase of Linux Server Setup
The
11th chapter:Agent Proxy Server Erection-squid configuration Reverse Proxy
Reverse proxy settings
[1]
Configuration
Squid.
[Email protected] ~]# vim/etc/squid/squid.conf
#: Add ( allow all http access )
Http_access Allow all
# line: Specify the backend Web server
Http_port Accel Defaultsite=client.example.com
# line: Cancel Notes
# means [disk cache size] [number of directories on top level] [number of directories on 2nd]
Cache_dir UFS/VAR/SPOOL/SQUID 100 16 256
# at the end section Add
Cache_peer client.example.com Parent 0 no-query Originserver
# Memory Cache Size
Cache_mem MB
# define Hostname
Visible_hostname www.example.com
[Email protected] ~]# systemctl start squid
[Email protected] ~]# Systemctl enable squid
[2]
through
Browser Access
www.example.com
make
Validation
This article is from the "11830455" blog, please be sure to keep this source http://11840455.blog.51cto.com/11830455/1837031
Linux and cloud Computing--the second phase of the 11th Chapter: Agent Proxy Server Erection-squid configuration Reverse Proxy