Hi all,
i'm trying to use apache httpd as a forward proxy (named "httpd-proxy" below ) with cache content
user (me) => httpd-proxy => target_proxy:9999
i test this with:
chromium --proxy-server=httpd-proxy:80
it work, i can browse the web, but there is no cache at all, httpd is in debug mode, there is no reference to any cache ( it's very verbose about the proxy part so i know the debug + the forward proxy actually work
Apache/2.4.54 (Unix)
debian 11
in my acces log:
syslog:
mkdir -p /var/cache/apache2/mod_cache_disk/
mkdir -p /var/cache/apache2/mod_cache_lock/
chown -R web: /var/cache/apache2/mod_cache_* #apache is running under "web" user
here is the config for "httpd-proxy"
LoadModule cache_module modules/mod_cache.so
LoadModule cache_disk_module modules/mod_cache_disk.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule ssl_module modules/mod_ssl.so
CacheEnable disk /
#tried this suggestion from
serverfault.com, any input on this ?
#CacheEnable disk http://
CacheRoot /var/cache/apache2/mod_cache_disk/
CacheQuickHandler off
CacheLock on
CacheLockPath /var/cache/apache2/mod_cache_lock/
CacheLockMaxAge 5
CacheHeader On
CacheDetailHeader On
CacheStoreExpired On
CacheStoreNoStore On
CacheIgnoreNoLastMod On
CacheIgnoreCacheControl On
LogLevel debug
LogFormat "%h %{cache-status}e %l %u %t \"%r\" %>s " common
CustomLog "|/usr/bin/logger -p
local1.info -t access_log" common
ErrorLog syslog
Header unset Expires
Header unset Cache-Control
Header unset Pragma
ExpiresActive On
ExpiresByType text/html "access plus 1 years"
ExpiresByType image/png "access plus 1 years"
ExpiresByType application/_javascript_ "access plus 1 years"
ProxyRequests On
SSLProxyEngine On
SSLProxyVerify none
SSLVerifyClient none
SSLProxyProtocol TLSv1.2
SSLProxyCheckPeerName off
SSLProxyCACertificateFile /usr/local/share/ca-certificates/ca.crt
SSLVerifyDepth 10
ProxyPass /
http://target_proxy:9999/
thanks for any help