From owner-freebsd-questions@FreeBSD.ORG Tue Jul 8 02:16:41 2003 Return-Path: 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 ABEC837B401 for ; Tue, 8 Jul 2003 02:16:39 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87ACD43F75 for ; Tue, 8 Jul 2003 02:16:37 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h689GPO6004465 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Jul 2003 10:16:28 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h689GOxI004452; Tue, 8 Jul 2003 10:16:24 +0100 (BST) (envelope-from matthew) Date: Tue, 8 Jul 2003 10:16:24 +0100 From: Matthew Seaman To: Fredrik =?iso-8859-1?Q?Carl=E9n?= Message-ID: <20030708091624.GB3700@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Fredrik =?iso-8859-1?Q?Carl=E9n?= , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FsscpQKzF/jJk6ya" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-11.4 required=5.0 tests=AWL,BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org Subject: Re: apache doesn't reply on explicit hostname X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 09:16:42 -0000 --FsscpQKzF/jJk6ya Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 08, 2003 at 09:35:06AM +0200, Fredrik Carl=E9n wrote: > Hello! I have apache 2.0 on my =20 > "# uname -a=20 > FreeBSD al-khwarizmi.intra.arrhythmetic.net 5.0-RELEASE FreeBSD=20 > 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003 =20 > root@hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386"-system=20 > :)=20 > =20 > Apache replies to http://localhost, but not to=20 > http://al-khwarizmi.intra.arrhythmetic.net which is the full name for my= =20 > system. How come? "ServerName al-khwarizmi.intra.arrhythmetic.net:80" is= =20 > in my httpd.conf, sure enough. This doesn'nt work, either:=20 > =20 > "# telnet al-khwarizmi.intra.arrhythmetic.net 80=20 > Trying 192.168.0.2...=20 > telnet: connect to address 192.168.0.2: Connection refused=20 > telnet: Unable to connect to remote host"=20 > =20 > Why is this? Could anybody help me. You're always very helpful on this=20 > list...=20 Sounds like apache is not listening on your network interfaces. By default, the apache config will have a line: Listen 80 which means 'bind to all network interfaces and listen on port 80', so it should work unless you've modified that part of the httpd.conf file. Check to see if apache is listening on the right port by using netstat. Run: % netstat -na | grep '\.80 ' You should see a line like: tcp4 0 0 *.80 *.* LISTEN If apache is listening on your network interfaces, then check any firewall rulesets you may have in place. Chances are you're inadvertently filtering out the incoming connection. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --FsscpQKzF/jJk6ya Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/CovodtESqEQa7a0RAunmAJ4iuyT4j1orQ2z2m1lpt/ojtRp+RgCfUvD4 6iboisX/8G2liBw2fNnjc+8= =Huvj -----END PGP SIGNATURE----- --FsscpQKzF/jJk6ya--