[squid-users] Reverse proxy question

From: Oleksii Krykun <okg@dont-contact.us>
Date: Thu, 15 Sep 2005 16:34:33 +0300

I have WWW server www.myserver on Apache with some links to internal servers
as

http://mywwwserver/link1
http://mywwwserver/link2
http://mywwwserver/link3

On apache I rewrite:

RewriteEngine on
RewriteRule ^/link1(.*) http://myproxyserver/link1$1 [P]
RewriteRule ^/link2(.*) http://myproxyserver/link2$1 [P]
RewriteRule ^/link3(.*) http://myproxyserver/link3$1 [P]

I used MS Proxy 2.0 as myproxyserver before.
On my proxyserver following rules were applied:

http://myproxyserver/link1 -> http://10.1.1.1/dir1
http://myproxyserver/link2 -> http://10.1.1.1/dir2
http://myproxyserver/link3 -> http://10.1.1.2/

All works fine.

Now I change MS Proxy with Squid+SquidGuard.
In squid.conf I use:
http_port=80
httpd_accel_host mynewproxy
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

mywwwserver is allowed by acl settings.

Rewrite rules from squidGuard.conf are following:

s@http://mynewproxy/link1@http://10.1.1.1/dir1/@i
s@http://mynewproxy/link2@http://10.1.1.1/dir2/@i
s@http://mynewproxy/link3@http://10.1.1.2/@i

All works for outside requests but for internal users request to e.g.
http://mywwwserver/link1/file.html gives me 403 error.

Where I am wrong?

Thanks,
Oleksii

----
á ×Ù × ËÕÒÓÅ ËÁË ÚÁÒÁÂÏÔÁÔØ ÎÁ ËÕÒÓÅ?
FOREX. äÉÌÉÎÇÏ×ÙÊ ÃÅÎÔÒ áëâ "õËÒÓÏÃÂÁÎË".
òÁÂÏÔÁÅÔ ËÒÕÇÌÏÓÕÔÏÞÎÏ.
ìÉà îâõ N5 ÏÔ 29.12.2001.
http://forex.ukrsotsbank.com/?ito=873&itc=8
Received on Thu Sep 15 2005 - 07:34:35 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Oct 01 2005 - 12:00:03 MDT