Attempt to install and start Apache, PHP, MySQL descending into chaos

Tim Littlemore tim at tjl2.com
Tue Oct 25 21:25:03 UTC 2005


Dave M G wrote:

>So that's good. But I did a little poking around, and I'm a little put
>off by my html being in:
>http://localhost/apache2-default/
>
>Can I not change this to something a little more intuitive, like:
>http://localhost/html/
>
>Or better yet, have my files served directly at:
>http://localhost/
>
You can do this easily, without needing to change any config files.

The apache config files for the default VirtualHost 
(/etc/apache2/sites-available/000-default) configure the DocumentRoot as 
/var/www. For your content to show when you go to http://localhost, just 
drop your HTML pages into /var/www

Cheers,

Tim




More information about the ubuntu-users mailing list