Re: Cannot access "localhost"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 5, 2008 at 2:12 PM, Ben Schonle <ben@xxxxxxxxxxxx> wrote:

>  - Installed apache2 via synaptic

Yah, well, who knows what the heck you get with that. You may be
better off on an Ubuntu forum where they have some idea how they have
configured apache.

>  - while installing apache 2 an error msg about a qualified domain name
>  appeared:
>
>  ///
>  Starting web server apache2
>  apache2: Could not reliably determine the server's fully qualified
>  domain name, using 127.0.1.1 for ServerName

I hope that is a type for 127.0.0.1, since otherwise things are really
confused here.

>  After some research I figured out that I had to add *ServerName
>  "localhost"* to the apache2.conf - I restarted and restarting apache2
>  made the error about qualified domain name vanish.

No, you really need a fully-qualified hostname. See:
http://wiki.apache.org/httpd/CouldNotDetermineServerName

>  When writing now: "localhost" or "127.0.0.1" as the URL, it didn't show
>  the message "It works".

>  Here also the data from the /etc/hosts:
>  127.0.0.1 localhost
>  127.0.1.1 ben-desktop

Hmmm... Maybe the 127.0.1.1 thing wasn't a typo. This may be some
Ubuntu-specific setup. But it is unclear what address the loop-back
interface is living on for your system.

You should start by looking in your httpd.conf and other Include'd
config files for Listen directives. These directives tell apache
exactly what IP addresses and ports it is expected to answer on.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux