httpd代理服务器和缓存的讲解
Apache从1.2版本开始,代理模块就已经加入到Apache源代码中,可惜当时的代理模块有很多问题,例如,与较新的http规范不兼容,没有人来维护它,甚至还不能从服务器中删除它等。从Apache2.0版本起,mod_proxy模块不但被重写了,而且还分割成了4个不同的模块mod_proxy、mod_proxy_http、mod_proxy_ftp、mod_proxy_connect,并且能够使用http规范较新的特征,这意味着速度更快,而到了Apache2.2版本以后更进一步加入了mod_proxy_ajp、mod_proxy_balancer这两个模块
--httpd2.2版本支持的代理模块
[root@saltstack01 modules]# httpd -D DUMP_MODULES|grep proxy
proxy_module (shared)
proxy_balancer_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_ajp_module (shared)
proxy_connect_module (shared)
Syntax OK
[root@saltstack01 modules]#
--httpd2.4版本支持的代理模块
[root@localhost modules]# httpd -D DUMP_MODULES|grep proxy
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
proxy_module (shared)
proxy_ajp_module (shared)
proxy_balancer_module (shared)
proxy_connect_module (shared)
proxy_express_module (shared)
proxy_fcgi_module (shared)
proxy_fdpass_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared) proxy_scgi_module (shared)