November 17, 2011

make Apache to Proxy/Caching Server

add these config to httpd.conf

LoadModule proxy_module modules/
LoadModule proxy_http_module modules/
LoadModule proxy_connect_module modules/
LoadModule proxy_ftp_module modules/
LoadModule cache_module modules/
LoadModule disk_cache_module modules/
LoadModule mem_cache_module modules/

Listen 8080
NameVirtualHost *:8080
ErrorLog "logs/proxy-error.log"
CustomLog "logs/proxy-access.log" combined
ProxyRequests On
ProxyVia On
Order deny,allow
Deny from all
Allow from
CacheRoot c:/cacheroot
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
CacheDisable http://security.update.server/update-list/
ProxyTimeout 60

don't forget created c:/cacheroot then open web browser and set proxy to at port 8080

No comments: