<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hello!</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">It is declared as feature now, from 7.2
change log:</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">
<pre class="notranslate"><code>- Bug 5504: Document that Squid discards invalid rewrite-url</code></pre>
<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">18.10.2025 03:32, Matthias Fischer
пишет:<br>
</div>
<blockquote type="cite"
cite="mid:c33b6871-d1f0-480a-9f18-e04bb7e02b3d@ipfire.org">
<pre wrap="" class="moz-quote-pre">Hi,
I have a similar problem here after upgrading from squid 6.14 to 7.2 for
testing purposes.
'squid -k parse' shows no errors, the same config seems to start without
any errors. But redirecting produces errors. Looking in 'cache_log' I found:
***SNIP***
...
2025/10/18 01:07:34 kid1| ERROR: URL-rewrite produces invalid request:
CONNECT
http://[ROUTER_IP_DELETED]:81/redirect.cgi?category=custom_advertising&url=content-loader.com:443&ip=[HOST_IP_DELETED]
HTTP/1.1
current master transaction: master53
2025/10/18 01:07:34 kid1| ERROR: URL-rewrite produces invalid request:
CONNECT http://[ROUTER_IP_DELETED]:81/images/urlfilter/1x1.gif HTTP/1.1
current master transaction: master53
...
***SNAP***
This is *v7.2*(!) - which works a bit better then v7.1. Redirecting in
v7.1 wasn't working at all...
So I have the same question. Does 'anyone' has an idea what is happening
here and how to solve it?
Thanks in advance!
On 27.08.2025 09:02, Dmitry Melekhov wrote:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">Hello!
Tried to upgrade squid to 7.1 from 6.14.
And the same config does not work:
url_rewrite_program /usr/local/rejik3/redirector
/usr/local/rejik3/redirector.conf
squid passes url to url_rewrite_program
I can see in this program log that it works, but squid does not redirect
and just processes original request and passes it's result to user.
There is no changes decribed in manual
<a class="moz-txt-link-freetext" href="https://www.squid-cache.org/Versions/v7/cfgman/url_rewrite_program.html">https://www.squid-cache.org/Versions/v7/cfgman/url_rewrite_program.html</a>
<a class="moz-txt-link-freetext" href="https://www.squid-cache.org/Versions/v6/cfgman/url_rewrite_program.html">https://www.squid-cache.org/Versions/v6/cfgman/url_rewrite_program.html</a>
Looks the same.
Could you tell me what is wrong here?
Thank you!
_______________________________________________
squid-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a>
<a class="moz-txt-link-freetext" href="https://lists.squid-cache.org/listinfo/squid-users">https://lists.squid-cache.org/listinfo/squid-users</a>
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>