Localhost not accessible
Adam McGreggor
lists at amyl.org.uk
Thu Mar 6 01:59:02 UTC 2008
On Wed, Mar 05, 2008 at 10:06:55PM +0200, Ben Schonle wrote:
[...]
> # Do NOT add a slash at the end of the directory path.
> #
> ServerRoot "/etc/apache2"
> ServerName "localhost"
[...]
> Thus I tried the following changes on
> */etc/apache2/sites-available/default:
> *
> 1) Document Root /var/www/apache2-default
> 2) Directory /var/www/apache2-default
> 3) removing the # from #RedirectMatch ^/$ /apache2-default/
>
> However, I was not successful.
>
> ////////////////////////////////////////////////////////
> Does anybody know how to make accessing localhost work? or point me to
> some tutorial that is addressing the issue?
> ////////////////////////////////////////////////////////
I'd revert the "Directory" directive to point to /etc/apache2, and
restart Apache.
That should do it.
You might find tail'ing your Apache error log useful, if it don't work.
grep -R ErrorLog /etc/apache2/*
should give you the path: ISTR apache2 does split-file config (which,
seasoned list members may remember I hate): something else annoys me
about Apache 2 (can't remember what); I use 1.3x.
The Apache docs (http://httpd.apache.org/docs/) are well written, imo.
More information about the ubuntu-users
mailing list