Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2003 10:08:30 -0700
From:      Don Buckley <dfbtech@telus.net>
To:        Yusuf UZUNAY <yuzunay@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: OT: quick apache question - gethostbyname()
Message-ID:  <JHEDKNEAAJELEBBEANFPOEDHEMAA.dfbtech@telus.net>
In-Reply-To: <20030820072334.75195.qmail@web42006.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Yusuf UZUNAY
Sent: Wednesday, August 20, 2003 12:24 AM
To: Don Buckley
Cc: freebsd-questions@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@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@dfbtech.com
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?JHEDKNEAAJELEBBEANFPOEDHEMAA.dfbtech>