<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<p> Hi all.</p>
<p><br>
</p>
<p> I using squid 3.4.8 over Debian as reverse proxy in order to
protect with SSL some of our servers.</p>
<p><br>
</p>
<p> I have an issue when I try to "redirect" to port 443 users
that try to connect to port 80.</p>
<p><br>
</p>
<p> As is said here
(<a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/pipermail/squid-users/2016-September/012669.html">http://lists.squid-cache.org/pipermail/squid-users/2016-September/012669.html</a>),
we use this lines in our configuration.</p>
<pre>[...]
http_port 80 accel vport
acl HTTP proto HTTP
deny_info 301:<a class="moz-txt-link-freetext" href="https://%H%R">https://%H%R</a> HTTP
http_access deny HTTP
[...]
It works and send a 301 reply to the client, but the problem is that it changes the requested URL. Particularly it changes "&" for "&"
This is a real example:
The client request next URL on port 80:
<a class="moz-txt-link-freetext" href="http://masivos.coam.org/Masivos/URLProcesador?id_envio=2689&token=20161202122625195AMVnxAmHS2lwgc5JoFd2HCHi9fBipvoesVlpMWw3RpJ5yratkcx3ucbBRwpHPs1pNouvpP99UuWWxn359pnXnetQKrekCDZjCo65&id=0&semilla=20150710135955907GDEjFCZNveaoPsXs34Npc2JUQWF3PcCFjcAadFbToAFCqfQqX3cS6xeyh5NVEb31tNa4YqtE9pWFFxoqnT6wWhTrbMNEVKp7guyx&email=prueba2@coam.org">http://masivos.coam.org/Masivos/URLProcesador?id_envio=2689&token=20161202122625195AMVnxAmHS2lwgc5JoFd2HCHi9fBipvoesVlpMWw3RpJ5yratkcx3ucbBRwpHPs1pNouvpP99UuWWxn359pnXnetQKrekCDZjCo65&id=0&semilla=20150710135955907GDEjFCZNveaoPsXs34Npc2JUQWF3PcCFjcAadFbToAFCqfQqX3cS6xeyh5NVEb31tNa4YqtE9pWFFxoqnT6wWhTrbMNEVKp7guyx&email=prueba2@coam.org</a>
The client receives 301 error code requesting him to go to:
<a class="moz-txt-link-freetext" href="https://masivos.coam.org/Masivos/URLProcesador?id_envio=2689&token=20161202122625195AMVnxAmHS2lwgc5JoFd2HCHi9fBipvoesVlpMWw3RpJ5yratkcx3ucbBRwpHPs1pNouvpP99UuWWxn359pnXnetQKrekCDZjCo65&id=0&semilla=20150710135955907GDEjFCZNveaoPsXs34Npc2JUQWF3PcCFjcAadFbToAFCqfQqX3cS6xeyh5NVEb31tNa4YqtE9pWFFxoqnT6wWhTrbMNEVKp7guyx&email=prueba2@coam.org">https://masivos.coam.org/Masivos/URLProcesador?id_envio=2689&token=20161202122625195AMVnxAmHS2lwgc5JoFd2HCHi9fBipvoesVlpMWw3RpJ5yratkcx3ucbBRwpHPs1pNouvpP99UuWWxn359pnXnetQKrekCDZjCo65&id=0&semilla=20150710135955907GDEjFCZNveaoPsXs34Npc2JUQWF3PcCFjcAadFbToAFCqfQqX3cS6xeyh5NVEb31tNa4YqtE9pWFFxoqnT6wWhTrbMNEVKp7guyx&email=prueba2@coam.org</a>
</pre>
<p><br>
</p>
<p> How can I solve that? Is this a bug or something that can be
solved changing configuration.</p>
<p><br>
</p>
<p> Thank you.</p>
<p><br>
</p>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body,td,th {font-family: Verdana, Geneva, sans-serif; font-size: 11px; color:#16497d;}
a:link {color: #4687a3; text-decoration: none;}
a:visited {color: #4687a3; text-decoration: none;}
a:hover { color: #4687a3; text-decoration: none;}
a:active { color: #4687a3; text-decoration: none;}
#logo {position:absolute; top:0px; right:auto; bottom:auto; left:0px; border:none;}</style><br>
Javier<br>
</div>
</body>
</html>