apache - gutsy

jack tdldev at gmail.com
Tue Feb 26 17:13:17 UTC 2008


On Tue, 2008-02-26 at 12:27 -0400, Derek Broughton wrote:
> jack wrote:
> 
> > Just got apache2 up on gutsy server.
> > not actually an ubu question, but I'm trying to sort this out -
> > "Could not reliably determine the server's FQDN, using 127.0.1.1 for
> > Servername."
> > 
> > I'm googling through both web and some apache docs now, but they all
> > seem to point to having a registered domain name and static ip.
> > I do have a static ip, but don't own a domain to anchor this to.
> > 
> > Any suggestions would be most appreciated.
> 
> What does "hostname -f" say?  (That's rhetorical, because I know it doesn't
> say anything useful to apache :-) )
hostname -f returns "Heterodon"

> 
> It's all tied to a variety of configuration settings, but basically apache
> is saying it can't find a name that it can use for a web server on the
> Internet.
> 
> If this is to be on an intranet, only, that's not a huge issue - though
> you'd still want your network to be able to find your server.

Which is what I'd like to be able to do at this point.
> 
> So, you need a valid name in /etc/hostname and you need "gethostbyname()"
> (the same thing as "hostname -f") to return a qualified name.  That means
> you need /etc/resolv.conf to include a domain name via either "search"
> or "domain" keywords, and either /etc/hosts to include the name and address
> of your host+domain, or your DNS to return an IP for that host+domain.  If
> you have a local router, it probably has its own DNS which can do the job.

Currently, I am on a local router.

> If this server is to be accessible from the Internet, then you need either
> to register a domain and have everybody's DNS pointing to you, get your ISP
> to register your host under _their_ domain (not likely) or register with a
> Dynamic domain name system, like DynDNS.org, to have it direct one of its
> domains to your IP.
I may look into this anyway, since eventually, I'll want to be able to
access my dev code from outside and set it up like an actual public web
server (with authentication).

> -- 
> derek
> 
> 





More information about the ubuntu-users mailing list