Search squid archive

reverse proxying problem...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm not quite sure what am I doing wrong so here's the problem in 
full:

I have machine A and machine B. A is original webserver running only 
apache and some HTML/PHP pages. No B supposed to become replica of A 
(including all of A's virtual hosts) with Squid on it. Squid is 
supposed to work like normal proxy but it should pass all HTTP 
request to apache running on B rather than A. so if user chooses so - 
[s]he can configure his browser to use proxy on B and access B as if 
[s]he was accessing A.

At the bottom you'll find what I've got so far and I can squeeze 
nothing out of it except for the fact that it fetches pages from host 
A instead of B.

<squid.conf>
## Squid port
http_port 3128

#assume A is 10.10.10.1 and B is 10.10.10.2

## ACL's taken from standard Squid conf
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl localhost src 10.10.10.2/255.255.255.255

redirect_program /usr/local/bin/redirector
redirect_children 5


## ACL for public
acl public_access dst 10.10.10.0/255.255.255.0

acl public_access_port port 80 81 8080

http_access allow all

httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_single_host on

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

http_access allow all

</squid.conf>

<redirector>
#!/usr/bin/perl

$|=1;
print "10.10.10.2\n" while (<>);
</redirector>

-- 
Dmitry Makovey
Web Systems Administrator
Athabasca University
(780) 675-6245

Attachment: pgpMpZFE6BxFV.pgp
Description: PGP signature


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux