Target of this Squid3 implementation is to authenticate against PAM.
It’s also possible to create a virtual user list, but if you have already a system with a bunch of system accounts. So here it is: [Read more…]
Squid disable cache for Domain
I had a problem with some AJAX based web sites, after some debugging a figured out that problems comes caching proxy (squid3). The content of this web sites was always outdated and sometimes I get strange errors.
Disabling cache for [Read more…]
Nginx + apache2 = real-ip
Nginx and Apache2 are running great but there is only one tiny problem with the visitors ip’s.
Normaly I let my nginx instance do the logging job, but if you let your Apache do it you will get some problems. Apache will see all incoming requests as coming from localhost (127.0.0.1). Right they are all from nginx.
[Read more…]
Debug squid ACL matches
Bad situation if you have too much ACLs in your squid config and important site gets a DENIE cause one or more of this all ACL’s matches.
Debugging helps you to find the right ACL.
1 2 3 | vim /etc/squid3/squid.conf # Debugging for your ACLs debug_options 28,9 |
Your debugged results will appear in your cache.log
1 | less /var/log/squid3/cache.log |