Package: jesred / 1.2pl1-22

08-configs Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
--- a/etc/jesred.conf
+++ b/etc/jesred.conf
@@ -7,6 +7,9 @@ rules = /etc/jesred.rules
 
 # log file for general, error and debug messages (empty value or commenting
 # this out disables logging)
+#
+# depending on your squid variant, you may want to change that
+# to /var/log/squid3 instead.
 redirect_log = /var/log/squid/jesred-redirect.log
 
 # log file for URL rewrites (empty value or commenting this out disables
@@ -18,5 +21,3 @@ redirect_log = /var/log/squid/jesred-red
 # debug logging to redirect_log
 #debug = true
 
-# Allow ICP_QUERY request to be rewritten, if a rule applies
-#siblings = true
--- a/etc/redirect.acl
+++ b/etc/redirect.acl
@@ -28,5 +28,6 @@
 # 149.203.0.0/16
 # 193.175.28.0/24
 
-# Uncomment the following to rewrite all URLs from all sources:
+# Uncomment the following to rewrite all URLs from all sources (ipv4 and v6)
 # 0.0.0.0/0
+# ::/0
\ No newline at end of file
--- a/etc/redirect.rules
+++ b/etc/redirect.rules
@@ -5,12 +5,8 @@
 # Syntax: 
 # 
 #	regex[i] pattern replacement
-#	regex[i]ug urlgroup pattern replacement
-#
-# or
 #
 #	abort .filename_extension
-#	abortug urlgroup .filename_extension
 
 # jesred uses a linear list of redirect rules and terminates on first match, 
 # so the order of rules is important!
@@ -33,23 +29,20 @@
 
 # regex RE [RURL]
 # regexi RE [RURL]
-# regexug URLGROUP RE [RURL]
-# regexiug URLGROUP RE [RURL]
 #
 # regex  ... indicates, that the following RE is case-sensitive
 # regexi ... indicates, that the following RE is case-insensitive
 # RE     ... is the regular expression, which has to match the passed URL to get
 #            rewritten with the following RURL (see regex(7)).
 # RURL   ... if RE matches the passed URL, jesred returns RURL
-# URLGROUP   ... URLGROUP must also match for jesred to return RURL
-
+#
+#
 # To indicate that a client-side redirect should be performed with
 # the new URL prefixing the RURL with "301:" (moved permanently) 
 # or 302: (moved temporarily).
-
-# RURL can also include a "urlgroup" that can subsequently be matched
-# in cache_peer_access and similar ACL driven rules. An urlgroup is
-# returned by prefixing the RURL with "!urlgroup!".  2.6STABLE19
+#
+# Note: Squid 3.4 and 3.5 seem to ALWAYS redirect, no matter whether
+# jesred indicates rewriting or redirection.
 
 # If RURL is omitted, all URLs which match RE are NOT rewritten.
 # So the following two rules prevent jesred from rewriting matched URLs, but
@@ -67,7 +60,7 @@
 # regex	^http://199.78.52.10/~web_ani/.*\.gif	http://141.44.30.2/images/dot.gif
 # abort	.gif
 
-# regexi	^http://ad.doubleclick.net/ad/.*	http://141.44.30.2/images/dot.gif
+# regexi ^http://ad.doubleclick.net/ad/.*	http://141.44.30.2/images/dot.gif
 # regex	^http://ad.preferences.com/image.*	http://141.44.30.2/images/dot.gif
 # regex	^http://ads[0-9][0-9].focalink.com/SmartBanner/nph-graphic.*	http://141.44.30.2/images/dot.gif
 # regex	^http://adserver.developer.com/cgi-bin/accipiter/adserver.exe.*	http://141.44.30.2/images/dot.gif