Hi all,
I am running squid 3 rc1 as a reverse proxy as well as forward proxy.
My http_port directives are:
http_port 1.2.3.4:80 defaultsite=my.domain.com accel vhost
protocol=http -->for reverse proxy
http_port 10.9.0.44:8080 --> for forward proxy
The set up is very simple and migrated from 2.5 days, so I only have
modified the redirector.pl as per the requirements of Squid 3:(There
are many lines, each corresponding to a server, but I have given only
one)
#!/usr/bin/perl
$|=1;
while(<>){
@MyArray=split(/ /);
my $url = $MyArray[0];
$url =~ s@http://my.domain.com[/]*@http://10.x.x.x/j2ee/portal/@i;
print $url;
}
The directives in squid.conf for url rewriting are:
url_rewrite_program /usr/local/squid3/etc/redirect.pl
url_rewrite_children 20
url_rewrite_concurrency 0
url_rewrite_host_header off
When I run the redirector.pl on the command line, it perfectly behaves
the way it should. For example, if I type:
http://my.domain.com,
It prints:
http://10.x.x.x/j2ee/portal/
When I start squid, it is running as a daemon and cache log shows the
entry "ready to serve requests"
But when I try to access, neither forward nor reverse is working.
The access log shows entries like:
220.224.88.89 - - [12/Oct/2007:10:17:21 +0530] "HEAD
/j2ee/portal/Login/valid.jsp HTTP/0.0" 400 321 NONE:NONE
220.224.88.89 - - [12/Oct/2007:10:26:18 +0530] "HEAD
/j2ee/portal/inter.jsp HTTP/0.0" 400 321 NONE:NONE
10.9.0.172 - - [12/Oct/2007:11:12:11 +0530] "CONNECT
xmlrpc.rhn.redhat.com:443 HTTP/1.1" 403 1868 TCP_DENIED:NONE
Can anyone help?
-- M P KeshavaReceived on Fri Oct 12 2007 - 00:20:13 MDT
This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:01 MDT