Search squid archive

SquidGuard rewrite questions

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

 



I need to redirect some requests to internal website, i.e.
http://external-www/dir1 to http://internal-www/

Appropriate strings from squid.conf are
http_port 80
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on

I use a following rewrite rule:
s@http://external-www/site1@http://internal-www/@i

For homepage all works fine, i.e. for http://external-www/dir1 I receive http://internal-www/index.html.
But I have a problem with sub-directories. All links on index.html are in form "/dir2/something.html".
If I click on such link I receive http://external-www/dir2/something.html instead of http://external-www/dir1/dir2/something.html.

How to resolve this?

Thanks,
Kryol


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

  Powered by Linux