Fwd: [squid-users] squid reverse proxy isssue

From: Indunil Jayasooriya <indunil75@dont-contact.us>
Date: Mon, 5 May 2008 16:23:46 +0530

HI ALL,

My reverse proxy does not work.

Pls help me to solve this.

my squid.conf is like this

http_port 80 accel defaultsite=your.main.website
cache_peer 192.168.9.4 parent 80 0 no-query originserver
acl our_sites dstdomain your.main.website
http_access allow our_sites

/etc/hosts file has below line. from squid box , I can ping your.main.website
192.168.9.4 your.main.website

here is the log.

[root@mail squid]# tail -f /var/log/messages

May 5 16:20:56 mail squid: Bungled squid.conf line 76: http_port 80
accel defaultsite=your.main.website

[root@mail squid]# /etc/init.d/squid restart
Stopping squid: [FAILED]
Starting squid: [FAILED]

Where have I gone wrong?

I am on RedHat EL 5 with below rpm
squid-2.6.STABLE6-5.el5_1.3

---------- Forwarded message ----------
From: Indunil Jayasooriya <indunil75@gmail.com>
Date: Mon, May 5, 2008 at 11:50 AM
Subject: Re: [squid-users] squid reverse proxy isssue
To: Paul Bertain <paul@bertain.net>
Cc: squid-users <squid-users@squid-cache.org>

> Can your Squid box resolve your "http_port" line? Whatever you have as the
> actual "your.main.website" needs to be resolveable.

 No, your.main.website can not be resolved.

 I added your.main.websit to /etc/hosts file. Now , I can ping your.main.website

 What I did was I configured apache to run on the samebox on 127.0.0.1

 pls see below

 I have added this to http.conf file.

 Listen 127.0.0.1:80

 I can telnet to 127.0.0.1 and your.main.websit on port 80.

 pls see below

 [root@mail squid]# telnet 127.0.0.1 80
 Trying 127.0.0.1...
 Connected to localhost.localdomain (127.0.0.1).
 Escape character is '^]'.

 [root@mail squid]# telnet your.main.websit 80
 Trying 127.0.0.1...
 Connected to your.main.websit (127.0.0.1).
 Escape character is '^]'.

 Then, I chaned squid.conf as below

 http_port 192.1.54.101:80 accel defaultsite=your.main.websit
 cache_peer 127.0.0.1 parent 80 0 no-query originserver

 cache_peer_access 127.0.0.1 allow our_sites

acl our_sites dstdomain your.main.websit

 again, same error.

 Pls see below.

 [root@mail squid]# /etc/init.d/squid restart
 Stopping squid: [FAILED]
 Starting squid: [FAILED]

[root@mail squid]# tail -f /var/log/messages

 May 5 11:37:20 mail squid: Bungled squid.conf line 76: http_port
 192.1.54.101:80 accel defaultsite=your.main.websit
 May 5 11:46:27 mail last message repeated 4 times

 Hope to hear from you.

 --
 Thank you
 Indunil Jayasooriya

-- 
Thank you
Indunil Jayasooriya
Received on Mon May 05 2008 - 10:53:48 MDT

This archive was generated by hypermail 2.2.0 : Tue May 13 2008 - 12:00:02 MDT