OT: quick apache question - gethostbyname()

Don Buckley dfbtech at telus.net
Wed Aug 20 10:11:45 PDT 2003


Yusuf! Thank you, that worked.

/etc/rc.conf:
hostname="fully_qualified_domain_name_of_machine"

/etc/hosts:
xxx.xxx.xxx.xxx		fully_qualified.domain.name	www

The ServerName directive(s) were already setup in my httpd.conf in the
VirtualHosts.

Thanks again :)

Donder

-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Yusuf UZUNAY
Sent: Wednesday, August 20, 2003 12:24 AM
To: Don Buckley
Cc: freebsd-questions at freebsd.org
Subject: Re: OT: quick apache question


if don't give hostname in /etc/rc.conf like this
hostname="www.xxx.com"
and in /etc/hosts add these lines:
127.0.0.1    localhost.xxx.com localhost
1.1.1.1      www.xxx.com www
1.1.1.1      www.xxx.com
and last you can do this in httpd.conf file
ServerName www.xxx.com
Now Reboot Your computer!
Byee! ;)

--- Don Buckley <don at dfbtech.com> wrote:
> sorry for the OT, but
>
> I changed ISP's (telus.net to shaw) and my
> httpd-error.log is showing and
> error:
>
>  mod_unique_id: unable to
> gethostbyname("hostname_from_/etc/rc.conf")
>
> There's a tweak somewhere for this but i forget
> where :P
>
> Thanks
>
> Don at dfbtech.com
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list