« 减少IO吃内存打造无盘squid | Main | 被封了 & kernel.panic 自动重起 »
April 4, 2005
apache httpd mod_proxy 效率不高的代理模块
|
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。 https://windtear.net/archives/2005/04/04/000619.html http://windtear.net/archives/2005/04/04/000619.html http://httpd.apache.org/docs/mod/mod_proxy.html apache 的一个proxy module 效率性能实在是不高 呵呵 ab 打的话 和 squid 是数量级的差距 正向反向配置都很简单 * ProxyRequests * ProxyRemote * ProxyPass * ProxyPassReverse * ProxyBlock * AllowCONNECT * ProxyReceiveBufferSize * ProxyIOBufferSize * NoProxy * ProxyDomain * ProxyVia * CacheRoot * CacheSize * CacheMaxExpire * CacheDefaultExpire * CacheLastModifiedFactor * CacheGcInterval * CacheDirLevels * CacheDirLength * CacheForceCompletion * NoCache The examples below are only a very basic idea to help you get started. Please re ad the documentation on the individual directives. -----> Forward Proxy ProxyRequests On ProxyVia On <Directory proxy:*> Order deny,allow Deny from all Allow from internal.example.com </Directory> CacheRoot "/usr/local/apache/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 NoCache a-domain.com another-domain.edu joes.garage-sale.com -----> Reverse Proxy ProxyRequests Off ProxyPass /foo http://foo.example.com/bar ProxyPassReverse /foo http://foo.example.com/bar Controlling access to your proxy You can control who can access your proxy via the normal <Directory> control blo ck using the following example: <Directory proxy:*> Order Deny,Allow Deny from all Allow from yournetwork.example.com </Directory> |
Posted by windtear at April 4, 2005 10:56 PM