1STOREID_FILE_REWRITE(8)User Contributed Perl DocumentatioSnTOREID_FILE_REWRITE(8)
2
3
4

NAME

6        storeid_file_rewrite - File based Store-ID helper for Squid
7

SYNOPSIS

9        storeid_file_rewrite filepath
10

DESCRIPTION

12       This program acts as a store_id helper program, rewriting URLs passed
13       by Squid into storage-ids that can be used to achieve better caching
14       for websites that use different URLs for the same content.
15
16       It takes a text file with two tab separated columns.  Column 1: Regular
17       expression to match against the URL Column 2: Rewrite rule to generate
18       a Store-ID Eg:
19       ^http:\/\/[^\.]+\.dl\.sourceforge\.net\/(.*) http://dl.sourceforge.net.squid.internal/$1
20
21       Rewrite rules are matched in the same order as they appear in the rules
22       file.  So for best performance, sort it in order of frequency of
23       occurrence.
24
25       This program will automatically detect the existence of a concurrency
26       channel-ID and adjust appropriately.  It may be used with any value 0
27       or above for the store_id_children concurrency= parameter.
28

OPTIONS

30       The only command line parameter this helper takes is the regex rules
31       file name.
32

AUTHOR

34       This program and documentation was written by Alan Mizrahi
35       <alan@mizrahi.com.ve>
36
37       Based on prior work by Eliezer Croitoru <eliezer@ngtech.co.il>
38
40        * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
41        *
42        * Squid software is distributed under GPLv2+ license and includes
43        * contributions from numerous individuals and organizations.
44        * Please see the COPYING and CONTRIBUTORS files for details.
45
46        Copyright (C) 2013 Alan Mizrahi <alan@mizrahi.com.ve>
47        Based on code from Eliezer Croitoru <eliezer@ngtech.co.il>
48
49        This program is free software; you can redistribute it and/or modify
50        it under the terms of the GNU General Public License as published by
51        the Free Software Foundation; either version 2 of the License, or
52        (at your option) any later version.
53
54        This program is distributed in the hope that it will be useful,
55        but WITHOUT ANY WARRANTY; without even the implied warranty of
56        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
57        GNU General Public License for more details.
58
59        You should have received a copy of the GNU General Public License
60        along with this program; if not, write to the Free Software
61        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
62

QUESTIONS

64       Questions on the usage of this program can be sent to the Squid Users
65       mailing list <squid-users@lists.squid-cache.org>
66

REPORTING BUGS

68       Bug reports need to be made in English.  See
69       http://wiki.squid-cache.org/SquidFaq/BugReporting for details of what
70       you need to include with your bug report.
71
72       Report bugs or bug fixes using http://bugs.squid-cache.org/
73
74       Report serious security bugs to Squid Bugs
75       <squid-bugs@lists.squid-cache.org>
76
77       Report ideas for new improvements to the Squid Developers mailing list
78       <squid-dev@lists.squid-cache.org>
79

SEE ALSO

81       squid (8), GPL (7),
82
83       The Squid wiki http://wiki.squid-cache.org/Features/StoreID
84
85       The Squid Configuration Manual http://www.squid-cache.org/Doc/config/
86
87
88
89perl v5.30.1                      2020-01-28           STOREID_FILE_REWRITE(8)
Impressum