Squid configuration directive url_rewrite_program
Available in: 3.3 3.2 3.1 2.7 3.HEAD 2.HEAD 3.0 2.6
History:
- Changes in 2.7 url_rewrite_program
-
Future protocol change adding key=value pairs after the requests
- Changes in 3.HEAD url_rewrite_program
-
New helper response format utilizing result codes OK, ERR, and BH to signal helper lookup results. Also, key-value response values to return multiple values to Squid.
Details at http://wiki.squid-cache.org/Features/AddonHelpers.
- Changes in 3.0 url_rewrite_program
-
No urlgroup support in either requests or response
Configuration Details:
Option Name: | url_rewrite_program |
---|---|
Replaces: | redirect_program |
Requires: | |
Default Value: | none |
Suggested Config: |
|
Specify the location of the executable URL rewriter to use. Since they can perform almost any function there isn't one included. For each requested URL, the rewriter will receive on line with the format URL <SP> client_ip "/" fqdn <SP> user <SP> method [<SP> kvpairs]<NL> In the future, the rewriter interface will be extended with key=value pairs ("kvpairs" shown above). Rewriter programs should be prepared to receive and possibly ignore additional whitespace-separated tokens on each input line. And the rewriter may return a rewritten URL. The other components of the request line does not need to be returned (ignored if they are). The rewriter can also indicate that a client-side redirect should be performed to the new URL. This is done by prefixing the returned URL with "301:" (moved permanently) or 302: (moved temporarily), etc. By default, a URL rewriter is not used. |
|
Search
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Help Out or Donate
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
Miscellaneous
- Developer Resources
- Related Writings
- Related Software:
- Squid Artwork