https://github.com/vitexus/james-squid-redirector
squid Url redirect plugin for static images cache
https://github.com/vitexus/james-squid-redirector
Last synced: 11 months ago
JSON representation
squid Url redirect plugin for static images cache
- Host: GitHub
- URL: https://github.com/vitexus/james-squid-redirector
- Owner: Vitexus
- Created: 2013-11-06T17:12:34.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-06T17:35:09.000Z (over 12 years ago)
- Last Synced: 2025-04-09T04:41:49.869Z (about 1 year ago)
- Language: C++
- Size: 109 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
james-squid-redirector
======================
an Squid Url redirect plugin/filter for static images cache
At start read libconfig file /etc/james.conf to read sql and paths information
then read caching domain from database and rewrite urls from stdin to stdout
### example: ###
> http://www.inmyclub.net/image?url=n9zj5dWjkprmppyprZmbo5zTndjcmMzY2piXYqGkmKCjzZ7Zw93Emu%2BmYWhmZm9mp9re28vVyJnjoZk%3D
> http://127.0.0.1/cache/inmyclub.net/image%3furl=n9zj5dWjkprmppyprZmbo5zTndjcmMzY2piXYqGkmKCjzZ7Zw93Emu%2BmYWhmZm9mp9re28vVyJnjoZk%3D
### libconfig file contents example: ###
> dbhost = "localhost";
> dbname = "dashboard";
> dblogin = "username";
> dbpassw = "password";
> interface = "eth0";
> cachepath = "/cache/inmyclub.net/";
> webroot = "/var/www/";
__use binary in squid.conf as url_rewrite_program argument__