On 21 Mar, Sean D. Ackley wrote:
> [Tue Mar 21 13:48:59 2000] [notice] [client 206.170.157.66] Midgard: host record for
>midgard.ackind.net:80 not found
> [Tue Mar 21 13:49:00 2000] [notice] [client 206.170.157.66] Midgard: host record for
>midgard.ackind.net:80 not found
>
> Then, I can't access the midgard system. Either via the admin.* or the real
>website. It just error with this message. On my other system, I have the admin.*
>and the real website working properly, but I get this error message, if I go to
>another website on that machine. I can understand that. So I guess, 2 question, how
>to get rid of that message and just display midgard? On the second machine, how to
>NOT display that error message when I am using a website on the webserver, but a
>non-midgard site.
It would seem that your Midgard is otherwise set up
properly, but there is something wrong with the Host
records in Midgard's database.
To fix this, make a MySQL connection:
$ mysql -umidgard -pmidgard midgard
(assuming that those are the username and password
for you Midgard database)
When you get to the MySQL prompt, run:
SELECT * FROM host;
This should return you the host records stored in the
database. Something like:
+----+-------------------------+------+-------+------+-------+------+--------+--------+
| id | name | root | style | info | owner | port | online | prefix |
+----+-------------------------+------+-------+------+-------+------+--------+--------+
| 1 | admin.greywolves.org | 233 | 22 | auth | 0 | 0 | 1 | |
| 2 | wolfpack.greywolves.org | 33 | 2 | | 2 | 0 | 1 | |
+----+-------------------------+------+-------+------+-------+------+--------+--------+
2 rows in set (0.00 sec)
It is very probable that the 'name' fields of the hosts
are pointing somewhere else than the hostnames you
configured in your httpd.conf. Fix this by running:
UPDATE host SET NAME='admin.midgard.ackind.net',port=0
WHERE id=1;
UPDATE host SET NAME='midgard.ackind.net',port=0
WHERE id=2;
Now, try accessing the Midgard sites again with your
browser.
The idea here is that the 'name' and 'port' fields of
the host records must match with the ones defined in
Apache's config for Midgard to find them. If you
configure a host to have port 0, then it will answer
in all ports Apache listens to for that host name.
> sean.
/Bergie
--
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
http://www.iki.fi/Henri.Bergius
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]