Re: [squid-users] squid reverse proxy isssue

From: Indunil Jayasooriya <indunil75@dont-contact.us>
Date: Mon, 5 May 2008 11:50:41 +0530

> 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
Received on Mon May 05 2008 - 06:20:43 MDT

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