From owner-freebsd-questions Sat Mar 30 11:43:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from clink.schulte.org (clink.schulte.org [209.134.156.193]) by hub.freebsd.org (Postfix) with ESMTP id 843D737B405 for ; Sat, 30 Mar 2002 11:43:44 -0800 (PST) Received: from tarmap.nospam.schulte.org (tarmap.schulte.org [209.134.156.198]) by clink.schulte.org (Postfix) with ESMTP id 64647243CF; Sat, 30 Mar 2002 13:43:43 -0600 (CST) Message-Id: <5.1.0.14.0.20020330134334.05255848@wheresmymailserver.com> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 30 Mar 2002 13:43:40 -0600 To: "E. J. Cerejo" From: Christopher Schulte Subject: Re: Apache: Can't access any page from remote PC Cc: questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 At 11:25 PM 3/29/2002 -0500, you wrote: >I have a dynamic IP and I'm running dns2go for that reason and I've been >trying to configure apache and I still can't access anything from a >remote pc, it times out all the time but I know apache is working >because if I type my hostname in netscape I get the apache index.html.en >page. Now I edited my hosts file to this: [snip] >Listen 127.0.0.2:80 >#Listen 216.82.145.240:80 >I'm confused about the Listen configuration, if I have a dynamic IP what >should I put there? >so far everytime I put something in there apache won't start! And by >the way I can ping my hostname from any remote machine so I know the >dns2go thing is working also. >Any help would be greatly apreciated, thanks. from http://httpd.apache.org/docs/mod/core.html#listen -- Syntax: Listen [IP-address:]port If the first format is used, with a port number only, the server listens to the given port on all interfaces, instead of the port given by the Port directive. If an IP address is given as well as a port, the server will listen on the given port and interface. -- Thus, you want to use Listen 80 To tell apache to listen on all interfaces. Verify that apache is up and listening by using sockstat, `sockstat -l | grep httpd` Then telnet to your external IP address, port 80 # telnet external.ip.add.ress 80 Trying external.ip.add.ress... Connected to foo. Escape character is '^]'. GET / .. .. Connection closed by foreign host. Next telnet to the machine from a remote host. If you get connection refused or the network connection hangs, your provider may be filtering port 80. Try another port with apache, such as 8080 to verify. If you still have problems, a lot of apache wizards hang out in comp.infosystems.www.servers.unix. -- Christopher Schulte http://www.schulte.org/ Do not un-munge my @nospam.schulte.org email address. This address is valid. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message