Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 27774 invoked from network); 18 Dec 2007 07:47:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2007 07:47:00 -0000 Received: (qmail 71564 invoked by uid 500); 18 Dec 2007 07:46:38 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 71545 invoked by uid 500); 18 Dec 2007 07:46:38 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 71534 invoked by uid 99); 18 Dec 2007 07:46:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2007 23:46:38 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.56.114.156] (HELO smtp2.fr.adp.com) (193.56.114.156) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2007 07:46:13 +0000 Received: from exchange2k304.gaia.fr ([150.175.10.77]) by smtp2.fr.adp.com (xx/xx) with ESMTP id lBI7kFqb014104 for ; Tue, 18 Dec 2007 08:46:15 +0100 Received: from EXCHSUR.gaia.fr ([150.175.3.51]) by exchange2k304.gaia.fr with Microsoft SMTPSVC(6.0.3790.1830); Tue, 18 Dec 2007 08:46:15 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 18 Dec 2007 08:46:14 +0100 Message-ID: <28D87C00C6E83540A814CFAE3FA63E3F366CB9@EXCHSUR.gaia.fr> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Custom hostname and Apache 2.2.6 Thread-Index: AchBBhhSxgOaegr0QsOS1NB14zQkgwAQoEfw References: From: "Axel-Stephane SMORGRAV" To: X-OriginalArrivalTime: 18 Dec 2007 07:46:15.0590 (UTC) FILETIME=[116E8460:01C8414A] X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Custom hostname and Apache 2.2.6 Here's a shot in the dark. =20 The file /etc/hosts most probably has a line containing = host-xx-xxx-xx-xxx, associating the host name with an IP address, = looking somewhat like this: 10.11.12.14 host-xx-xxx-xx-xxx Edit that line and add laptop: 10.11.12.14 host-xx-xxx-xx-xxx laptop I think that should do the trick. In order to permanently change the = hostname, I believe you would need to modify the file /etc/hostname = and/or /etc/nodename. You would need root privileges for that. =20 -ascs ________________________________ De : Hans Tovetj=E4rn [mailto:hans@mantoray.com]=20 Envoy=E9 : mardi 18 d=E9cembre 2007 00:43 =C0 : users@httpd.apache.org Objet : [users@httpd] Custom hostname and Apache 2.2.6 Hello!=20 I'm a bit new to this, but here goes. My computer is a MacBook Pro with = Mac OS X 10.4.11, I am not using the bundled Apach 1.3 server, it has = not been activated prior to this. I installed Apache 2.2.6 (as well as = PHP and MySQL...) through MacPorts (DarwinPorts) and it has been working = flawlessly. It is when I attempt the following I can't make it work. I have a fancy prompt in Terminal, which displays "username@hostname>", = however, I would like the hostname to be the computer name, i.e. I want = it to look like "hans@laptop>", because the current hostname is = "host-xx-xxx-xx-xxx" which can clutter up the screen a bit too much for = me. Now this I solved by typing... > sudo hostname laptop ...but after that, I can't seem to start Apache. If I change it back to = "host-xx-xxx-xx-xxx", all is well. But I want the short name, so I try = again. The error message I get is as follows: httpd: apr_sockaddr_info_get() failed for laptop=20 httpd: Could not reliably determine the server's fully qualified domain = name, using 127.0.0.1 for ServerName This is supposedly merely a warning according to = http://wiki.apache.org/httpd/CouldNotDetermineServerName but if I open = my browser and go to 127.0.0.1 it can't find the server. Nor can I see = it listed if I do a > ps aux | grep httpd So it would seem it never started at all. I then tried setting my = hostname in httpd.conf to the following and restarting Apache 2, without = success: laptop 127.0.0.1 host-xx-xxx-xx-xxx (my old hostname) 127.0.0.1:80 host-xx-xxx-xx-xxx:80 host-xx-xxx-xx-xxx.serva.net (ISP) None of them worked, I tried changing the listen directive as well to my = IP, but that wouldn't help me either. Is it possible to use a custom = hostname and have Apache run simultaneously? Thanks in advance. Regards, Hans --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org