deny_info redirect with URL placeholder

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

deny_info redirect with URL placeholder

Vieri Di Paola
Is there a way to tell squid to treat %o as-is in deny_info?

In Apache2 with mod_proxy ProxyPass directives, I require to write a
config directive such as:

Header edit Location "(^http[s]?://)([^/]+)" ""

Using %note or %o in squid 4.x or 3.x would be fine, but both have
issues. The config parser in 4.x still complains that a complete URI
is required for deny_info 302.

Still in 4.x, even if I trick it into using this:

deny_info 302:<a href="https://%note">https://%note{location-rewrite} bad_Location

and the helper script outputs something like:

OK location-rewrite="domain without leading protocol://"

I still get the wrong result in the client browser which is literally
trying to connect to <a href="https://%note">https://%note{location-rewrite} (no variable
expansion).

Any thoughts?

Vieri
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users