Hello All,

I setup squid as reverse proxy for multiple webserver and i am using perl
script for redirecting.

I set squid.conf as

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_single_host off
httpd_accel_uses_host_header on

I want redirect request using username in the url for example

Let user name be "jack" and "james'
my squid listens on squid.xyz.com

if squid receives squid.xyz.com/jack/ then it should redirect to 172.16.1.10
web server and for squid.xyz.com/james it should redirect to 172.16.1.11

So redir.pl looks like

#!/usr/bin/perl -p
BEGIN { $|=1;}
s%http://squid.xyz.com/jack/\b%http://172.16.1.10/test/% && next;
s%http://squid.xyz.com/james/\b%http://172.16.1.11% && next;

When i try this setup i get access denied page from squid even though i set
http_access allow all

Can anybody pointout where i done mistake and correct solution

Regards,
Jack


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

Reply via email to