problem with setting up virtual host on laptop

LAMP lamp at
Fri Jun 12 20:17:17 UTC 2009

I'm trying to setup virtual host on my laptop (Ubuntu 8.04) but 
something went wrong and I don't know how to fix.

this is what I did:

1. I created directory called in /home/lamp/www
2. changed permissions to apache (I don't know if this is necessary, but 
found in on of tons, more-less the same, tutorials)
 chown -R www-data:www-data
3. in /etc/hosts I added, next to localhost
4. in /etc/apache2/sites-available I made a copy of "default", named and modified:

<VirtualHost *>
 ServerAdmin webmaster at localhost

   DocumentRoot /home/lamp/www/

 ErrorLog /var/log/apache2/error.log
 LogLevel warn
 CustomLog /var/log/apache2/access.log combined

5. made a link toward /etc/apache2/sites/enabled:

ln -s /etc/apache2/sites-available/ 

6. restarted apache

when I open http://localhost I'll get "It Works!" on screen and that's 
correct, that's Apache default page. But when open I 
would get "It Works!" too - not the content of index.html file inside

Any ideas?


More information about the ubuntu-users mailing list