troubleshooting network settings
Steve Bertrand
iaccounts at ibctech.ca
Wed May 31 06:32:43 PDT 2006
> > There we have it. Apache is unable to resolve "bsd-box".
> This hostname
> > should be resolvable, otherwise Apache will not work. Adding it to
> > /etc/hosts is the easiest way:
> >
> > 192.168.1.104 bsd-box bsd-box.yourdomain.com
>
> This line was already in /etc/hosts;
>
> 127.0.0.1 localhost localhost.home.net bsd-box
> bsd-box.home.net
>
> and I've added this line
>
> 192.168.1.104 bsd-box bsd-box.home.net
>
> >
> > In addition to Jorn's advice, check /etc/defaults/rc.conf.
> The file
> > should exist and have permissions like so:
> >
> > $ ls -l /etc/defaults/rc.conf
> > -r--r--r-- 1 root wheel 31735 May 15 18:48 /etc/defaults/rc.conf
> >
> > and it should have the following line within:
> >
> > $ grep lo0 /etc/defaults/rc.conf
> > ifconfig_lo0="inet 127.0.0.1" # default loopback device
> > configuration.
>
> All present.
>
> Still cannot connect to localhost.
Take a look at the 'ServerName' directive in your httpd.conf file. Try
uncommenting said directive, and put your IP address beside it. From
httpd.conf, look particularily at the last paragraph:
# ServerName gives the name and port that the server uses to identify
itself.
# This can often be determined automatically, but we recommend you
specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address
here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
However, I would think the hosts file would have done it though, but
it's worth a try.
Steve
More information about the freebsd-questions
mailing list