Summary: | The new baselayout hostname setting breaks Apache2 Config | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tony Murray <tonymurray> |
Component: | [OLD] Server | Assignee: | Martin Schlemmer (RETIRED) <azarah> |
Status: | VERIFIED INVALID | ||
Severity: | normal | CC: | gentoo, mholzer, woodchip |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Tony Murray
2003-04-05 08:33:10 UTC
The problem still occurs with apache 2.0.45. what does your hosts file look like, afaik it should appear thusly: # /etc/hosts ip.add.re.ss fully.qualified.domain.name alias I have nothing in it (except localhost) because I am on a college campus and I get DHCP IP address, and it changes, so I would have to change it all the time... This should be fixed ASAP. /bin/hostname should never be used to set the result of gethostname(2) to soemthing containig a dot ;-) In fact, if your are using DHCP to configure your local system, it is the responsibility of your DHCP-client to set the local hostname to an unqualified form which can easyily be qualified (remember, a FQDN is not the result fo gethostname(2) but the result of calling gethostbyname(3) for the result of gethostname(2)). Using static IP configuration, this is achieved using a line in /etc/hosts which contains the FQDN in the second and the unqualified name in the third column, using dynamic configuration, you will have to set up a nameserver which is updated by the DHCP-server. This is not a bug in baselayout. And I guess that apache2 ignores a hostname given in the config files is due to the fact that the hostname could either not be qualified or was already given in a qualified form. Well, I don't use DHCP at home, but I think, if you do not want to dynamically update a DNS server, it would be sufficient to have the DHCP-client adding a line of the form like Donny Davies suggested it to /etc/hosts. Okey dokie. Well I modified /etc/resolv.conf and /etc/yp.conf to use "no-ip.org" instead of "bvu.edu". And that resolved the problem. Sorry about the invalid bug guys, the new baselayout just exposed a misconfiguration of my system. Now it is fixed and humming along. closing with comment #7 Closing old bugs. |