Set up Proxy Cache server with XAMPP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Set up Proxy Cache server with XAMPP

Postby TobiasRieper7156 » 10. September 2016 13:08

Hi! Just tried to make a local proxy server that wilL cache EVERYTHING that passes through him. Followed these instructions from here : but no result in caching.

Indeed after i set up the browser to use proxy (as stated in tutorial), and started the XAMPP apache server... i can navigate web.... BUT in cache root folder i created to EXPLICIT CACHE (C:\xampp\apache\proxy\cache) is nothing cached...

There are so many tutorials on the internet :| ... (that i could go crazy if read all)... AND apache documentation is.... JESUS Christ! I need a PhD in apache to be able to go all over it! :/ Also there is no explicit Tutorial or example like:

"Noob who wants to create a proxy server that will cache ALL TRAFFIC that goes through a proxy USE THIS Config... Go here, write these lines.....Create a file named httpd-cache-proxy.conf... inside it write these lines.....etc.... and in the end you gonna have a FULLY Functional proxy server that will cache EVERYTHING " <---- i like that kind of tutorial! :D :wink:

... I am not stupid i can follow directions, BUT simply couldn't find an example (From A-Z) ALL over internet... (Otherwise wouldn't made an account here to post this :roll: )... or maybe i can't read... :roll: . Please tell me if possible to create a proxy cache server with XAMPP... If is not possible a server that caches EVERYTHING passing through it..... :( is ok. But at least won't navigate through ALL WWW looking a solution (like squid or other things.... i mean I have already XAMPP.... -_- ).

Thanks in Advance!
Posts: 4
Joined: 10. September 2016 12:45
XAMPP version: 1.8.2-0-VC9
Operating System: Windows XP

Re: Set up Proxy Cache server with XAMPP

Postby TobiasRieper7156 » 13. September 2016 15:04

In short lines (from what i heard) IT CAN'T be done... I.e. Caching EVERYTHING with an apache proxy server.

In more detail.... apache doesn't act as a normal browser that where you downloaded a *.swf for example and EVEN if you unplug internet, that *.swf will continue to run for that session...i.e is ignoring the header response who said not to cache it locally for example.... Technically i think apache It could be done to IGNORE headers that says not to cache, BUT from thinking till actually doing it is a long way... (Some suggested rebuild it as a custom from sources since is open source... -_-)..

The Good side if i can call it like that.... is that i managed to cache stuffs (Not All i want it...just some)...
first my link is for apache 2.2 (stupid me -_-')..and i had 2.4... but made the modifications :D, then i changed the CacheEnable disk / to CacheEnable disk http://.... after that i just trialed and error a lot of things people suggested to diagnose WHY isn't cached EVERYTHING... -_-' waste of time when apache simply doesn't act as a browser and to ignore headers that are telling NOT to cache... anyway this was final version in case anyone else is thinking to make a proxy server cache under apache 2.4

LoadModule proxy_module modules/
LoadModule proxy_http_module modules/
LoadModule proxy_connect_module modules/
LoadModule proxy_ftp_module modules/

Listen 3128
NameVirtualHost *:3128
<VirtualHost *:3128>
ErrorLog "logs/proxy-error.log"
CustomLog "logs/proxy-access.log" combined

<IfModule mod_proxy.c>
ProxyRequests On
ProxyVia On
<Proxy "*">
Order deny,allow
Deny from all
Allow from

<IfModule mod_cache.c>
LoadModule cache_disk_module modules/
CacheRoot "c:/xampp/apache/proxy/cache"
CacheEnable disk "http://"
CacheDirLevels 5
CacheDirLength 4
CacheMaxFileSize 10485760
CacheMaxExpire 2592000
CacheHeader On
CacheDetailHeader On

The rest instructions what to create , where, etc are same as here

In the end... As a bonus :D ...If You REALLY, REALLY want a thing that caches almost EVERYTHING, :D HandyCache from Use Google Translate, read what you must do, and you will manage to cache 99.9 of a webpage... things couldn't be cached were the google ads LOL... I assume is cuz those things are more complex and change frequently or time, token based ...have no idea.... BUT everything else was ok. In my case was a page containing flash elements.... that with apache failed to load (due to headers response), BUT with Handy Cache running perfectly. :D. If you read so far... :D You are very patient. Thank You anyway to those 20+ people reading my post!.. or clicked by mistake! :D Cheers!
Posts: 4
Joined: 10. September 2016 12:45
XAMPP version: 1.8.2-0-VC9
Operating System: Windows XP

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 23 guests