different default apache directory

Dieter Schicker dieter.schicker at uni-graz.at
Sun Sep 10 17:48:53 UTC 2006

On Sun, 2006-09-10 at 19:45 +0100, Gabriel M Dragffy wrote:
> Hi,
> How does one go about changing the default directory for apache. For
> example I go to http://localhost and it lists the contents of
> some /var/www directory. How can I change it so that when I go to this
> same address it will load up the index.html page
> of /home/ftp/public_html?

If you are using Apache2, have a look in
"/etc/apache2/sites-available/default" and change the "DocumentRoot"
entry according to your needs. Then restart Apache:
sudo /etc/init.d/apache2 restart.

Hope that helps

More information about the ubuntu-users mailing list