From owner-freebsd-questions Thu Feb 6 7: 5: 1 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEC7637B401 for ; Thu, 6 Feb 2003 07:04:57 -0800 (PST) Received: from mail-shield2.njit.edu (mail-shield2.njit.edu [128.235.251.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 913C943F93 for ; Thu, 6 Feb 2003 07:04:56 -0800 (PST) (envelope-from kellers@njit.edu) Received: (from uucp@localhost) by mail-shield2.njit.edu (8.11.6/8.11.6) id h16F4ao14836; Thu, 6 Feb 2003 10:04:36 -0500 (EST) Received: from nodnsquery(128.235.251.173) by mail-shield2.njit.edu via csmap (V4.1) id srcAAATYay8C; Thu, 6 Feb 03 10:04:36 -0500 Received: from adm.njit.edu (adm.njit.edu [128.235.184.76]) by mail-gw5.njit.edu (8.12.4/8.12.4) with ESMTP id h16F4ZID017675; Thu, 6 Feb 2003 10:04:35 -0500 (EST) Received: from dhcp187-25.njit.edu ([128.235.187.25]) by adm.njit.edu with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CSRA9LM; Thu, 6 Feb 2003 10:03:06 -0500 From: T Kellers Reply-To: kellers@njit.edu Organization: CPE/NJIT To: , "'Matthew Emmerton'" , Subject: Re: Apache built correctly? Date: Thu, 6 Feb 2003 10:06:39 -0500 User-Agent: KMail/1.5 Cc: "'Apache-list'" References: <001401c2cd73$6f9257b0$0301a8c0@mike> In-Reply-To: <001401c2cd73$6f9257b0$0301a8c0@mike> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302061006.39227.kellers@njit.edu> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thank Mike, It certainly helped me; I noticed the tcp6 thing, but hadn't had time to chase down the documentation. Tim Kellers CPE/NJIT On Wednesday 05 February 2003 07:05 pm, Mike Loiterman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Wednesday, February 05, 2003 5:28 PM Matthew Emmerton wrote: > >> On Wednesday, February 05, 2003 10:31 AM lowell@be-well.no-ip.com > > > > wrote: > >>> "Mike Loiterman" writes: > >>>> On Tuesday, February 04, 2003 9:11 AM lowell@be-well.no-ip.com > >>>> > >>>> wrote: > >>>>> "Mike Loiterman" writes: > >>>>>> Absolutly nothing appears in the httpd-access.log file when I > >>>>>> try to access the index.html. > >>>>>> > >>>>>> When I try to do http://localhost I get nothing. Just this: > >>>>>> unable to connect to remote host. > >>>>>> > >>>>>> I've restarted apache many times with the same results. I > >>>>>> restarted my machine with the same results. > >>>>>> > >>>>>> I can telnet into port 80 but Apache doesn't appear to answer. > >>>>>> Something tells me that the daemon isn't running correctly or > >>>>>> that Apache was installed incorrectly, although 'ps -aux | grep > >>>>>> httpd' shows: > >>>>> > >>>>> What does "doesn't appear to answer" mean? The fact that you can > >>>>> telnet in tells you that it isn't a network-layer issue. Did you > >>>>> try a legitimate HTTP request? > >>>> > >>>> Well I telnet to 80 and it just says refused: > >>>> > >>>> [02:22:47 root@little_boy: /etc/mail]# telnet localhost 80 Trying > >>>> 127.0.0.1... telnet: connect to address 127.0.0.1: Connection > >>>> refused telnet: Unable to connect to remote host > >>> > >>> Ah. So you *can't* telnet into port 80. That's different. > >>> Use sockstat(1) to see if anything is bound to port 80, and look at > >>> firewall rules to see if something's blocking it before it gets > >>> there. > >> > >> [13:41:19 root@little_boy: /etc/mail]# sockstat | grep 80 > >> www httpd 30322 3 tcp6 *:80 *:* > >> www httpd 30321 3 tcp6 *:80 *:* > >> www httpd 30320 3 tcp6 *:80 *:* > >> www httpd 30319 3 tcp6 *:80 *:* > >> www httpd 30318 3 tcp6 *:80 *:* > >> root httpd 30309 3 tcp6 *:80 *:* > >> > >> Hrmm...seems to be bound to thr right ports??? I'm not sure how to > >> check > > > > the firewall rules, as this machine is already behind a firewall. > > Even so, wouldn't the http://localhost bypass any firewall stuff? > > > > It's bound to the right ports, but it's only listening on the IPv6 > > address -- not the IPv4 address. I'm not sure what the fix for this > > is, but this has been discussed on the list recently -- check the > > archives. > > Matt: > You were 100% on the mark. > > For anyone that is interested -- just add the following lines in your > httpd.conf file: > > Listen 0.0.0.0:80 > Listen [::]:80 > > And it works perfectly. This is a known problem with Apache2 although it > isn't well documented. Hopefully this will help someone else. > > - ------------------------------------------- > Randomly Generated Quote: > My phone number is seventeen. I got > one of the early ones. --George Carlin > > Mike Loiterman > PGP Key 0xD1B9D18E > http://www.ascendency.net > > > > -----BEGIN PGP SIGNATURE----- > Version: PGP 8.0 > Comment: This message has been digitally signed by Mike Loiterman > > iQA/AwUBPkGmvGjZbUnRudGOEQJu5wCghdp1njU/6Y35/kZhXFv2r9VweNMAn0D/ > uDnpEC797YOoAQ8WBKwBYDKZ > =AraT > -----END PGP SIGNATURE----- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message