Hi Brad,
In your Apache config, there should be a line like:
Listen 80
which interferes with Squid listening on the same IP and port (or
socket). You need to either adjust your Squid port like the following:
http_port 3128
or change the IP. If you want them to run on the same machine, you
could try something like:
Apache config:
Listen 1.1.1.1:80
Squid config:
http_port 1.1.1.2:80
or listen on the same IP as Apache but a different port (3128 is
standard):
http_port 1.1.1.1:3128
Paul
On Aug 3, 2008, at 1:50 PM, Brad Cathey wrote:
Thanks for replying Alexandre, but I don't have any line like that in
my squid.conf. I searched by httpd, listen, and 0.0.0.0:80 and
nothing.
On Sun, Aug 3, 2008 at 3:30 PM, Alexandre Correa
<alexandre@xxxxxxxxxxxxxx> wrote:
httpd listenning at 0.0.0.0:80 ... find the line Listen ... and
change it...
On Sun, Aug 3, 2008 at 5:18 PM, Gmail <breadwild@xxxxxxxxx> wrote:
Background:
Intel Core2Duo E6320 Dual-Core 1.86 GHz 4MB Cache 250GB 2048MB
Debian Etch
Without Squid I'm using in my sites-available (Debian's vhost) file:
<VirtualHost *>
ServerName mywebsite.com
ServerAlias *.mywebsite.com ...
I want to run Squid and be able to use:
<VirtualHost 127.0.0.1>
ServerName mywebsite.com
ServerAlias *.mywebsite.com ...
Here's what happens when I run /usr/sbin/squid -NCd1 :
<snip>
2008/08/02 15:05:06| Rebuilding storage in /var/spool/squid (DIRTY)
2008/08/02 15:05:06| Using Least Load store dir selection
2008/08/02 15:05:06| Set Current Directory to /var/spool/squid
2008/08/02 15:05:06| Loaded Icons.
2008/08/02 15:05:06| commBind: Cannot bind socket FD 11 to
67.212.162.26:80:
(98) Address already in use
2008/08/02 15:05:06| commBind: Cannot bind socket FD 11 to
67.212.162.27:80:
(99) Cannot assign requested address
2008/08/02 15:05:06| commBind: Cannot bind socket FD 11 to
67.212.162.28:80:
(99) Cannot assign requested address
2008/08/02 15:05:06| commBind: Cannot bind socket FD 11 to
67.212.162.29:80:
(99) Cannot assign requested address
2008/08/02 15:05:06| commBind: Cannot bind socket FD 11 to
67.212.162.30:80:
(99) Cannot assign requested address
FATAL: Cannot open HTTP Port
Aborted (core dumped)
Here are the only differences from the sample squid.conf:
TAG: http_port
<snip>
#Default:
# Squid normally listens to port 3128
http_port 65.123.123.26:80 defaultsite=127.0.0.1:80 vhost
http_port 65.123.123.27:80 defaultsite=127.0.0.1:80 vhost
http_port 65.123.123.28:80 defaultsite=127.0.0.1:80 vhost
http_port 65.123.123.29:80 defaultsite=127.0.0.1:80 vhost
http_port 65.123.123.30:80 defaultsite=127.0.0.1:80 vhost
TAG: cache_peer
<snip>
#Default:
# none
cache_peer 127.0.0.1 parent 80 7 no-query round-robin no-digest
originserver
TAG: acl
<snip>
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl forwardproxy port 80 443 <-- ADDED TO DEFAULT
TAG: http_access
<snip>
http_access allow forwardproxy <-- ADDED TO DEFAULT
I ran netstat and it's not showing anything listening at 80 or 8080
Any idea why I'm getting the bind error?
Thanks.
--
Sds.
Alexandre J. Correa
Onda Internet / OPinguim.net
http://www.ondainternet.com.br
http://www.opinguim.net