Search squid archive

Reverse proxy question

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

 



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

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

  Powered by Linux