Squid configuration directive store_id_program
Available in: v7 v6 v5 v4 3.5 3.4
For older versions than v4 see the linked pages above
Configuration Details:
Option Name: | store_id_program |
---|---|
Replaces: | storeurl_rewrite_program |
Requires: | |
Default Value: | none |
Suggested Config: |
|
Specify the location of the executable StoreID helper to use. Since they can perform almost any function there isn't one included. For each requested URL, the helper will receive one line with the format [channel-ID <SP>] URL [<SP> extras]<NL> After processing the request the helper must reply using the following format: [channel-ID <SP>] result [<SP> kv-pairs] The result code can be: OK store-id="..." Use the StoreID supplied in 'store-id='. ERR The default is to use HTTP request URL as the store ID. BH An internal error occurred in the helper, preventing a result being identified. In addition to the above kv-pairs Squid also understands the following optional kv-pairs received from URL rewriters: clt_conn_tag=TAG Associates a TAG with the client TCP connection. Please see url_rewrite_program related documentation for this kv-pair Helper programs should be prepared to receive and possibly ignore additional whitespace-separated tokens on each input line. When using the concurrency= option the protocol is changed by introducing a query channel tag in front of the request/response. The query channel tag is a number between 0 and concurrency-1. This value must be echoed back unchanged to Squid as the first part of the response relating to its request. NOTE: when using StoreID refresh_pattern will apply to the StoreID returned from the helper and not the URL. WARNING: Wrong StoreID value returned by a careless helper may result in the wrong cached response returned to the user. By default, a StoreID helper is not used. |
|
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- 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
Web Site Translations
Mirrors
- Website:
- ... full list
- FTP Package Archive