[squid-users] Squid as a reverse proxy

From: Richard Skeggs <RSKEGGS@dont-contact.us>
Date: Tue, 28 Sep 2004 10:35:11 -0400

Surely there must be some decent documentation on how use SQUID to set up a
reverse proxy. I have been battling with this issue now for a number of
months, and initially gave up in favour of Apache but now I have no choice I
am back with squid.

If I change the last occurance of http_access allow all then I recieve an
error in the logs
<my_ip> TCP_NEGATIVE_HIT/403 1460 GET http://10.14.1.150/esav
<http://10.14.1.150/esav>

If though I keep http_access deny all recieve an error in the logs
<my_ip> TCP_DENIED/403 1460 GET http://10.14.1.150/esav
<http://10.14.1.150/esav>

What I want to achieve is to redirect

http://emeademo.mobius.com/esav <http://emeademo.mobius.com/esav> to
redirect to http://eghsnap1:8080/esav <http://eghsnap1:8080/esav>
http://emeademo.mobius.com/ddrint <http://emeademo.mobius.com/ddrint> to
redirect to http://eghsnap2:8080/ddrint <http://eghsnap2:8080/ddrint>

Can someone please tell me where I am going wrong

In this configuration the external facing address is emeademo.mobius.com.

In the squid.conf file I have changed or added the following entries on top
of the standard configuration

http_port 80
host_file /usr/local/squid/conf/hosts
redirect_rewrites_host_header off

acl all src 0.0.0.0/0.0.0.0
acl eghapp src 10.14.1.150
acl eghsnap1 src 10.14.1.151
acl eghsnap2 src 10.14.1.152
http_access allow eghapp eghsnap1 eghsnap2

visible_hostname http://emeademo.mobius.com <http://emeademo.mobius.com>

httpd_accel_port 0
httpd_accel_host virtual
httpd_accel_single_host off
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

The content of the host file is:

10.14.1.150 http://emeademo.mobius.com <http://emeademo.mobius.com>
10.14.1.150 eghapp
10.14.1.151 eghsnap1
10.14.1.152 eghsnap2

Richard Skeggs
Software Engineer
Mobius Management Systems
Cavendish House
5 The Avenue
Egham
Surrey
TW20 9AB
Tel: +44 (0) 1784 484700
Mobile: + 44 (0) 7971 608315
email: rskeggs@mobius.com <mailto:rskeggs@mobius.com>
 

Received on Tue Sep 28 2004 - 08:35:13 MDT

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