problem with setting up virtual host on laptop
LAMP
lamp at afan.net
Fri Jun 12 20:17:17 UTC 2009
hi,
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 dev.lamp.com 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 dev.lamp.com
3. in /etc/hosts I added dev.lamp.com, next to localhost
4. in /etc/apache2/sites-available I made a copy of "default", named
dev.lamp.com.conf and modified:
<VirtualHost *>
ServerAdmin webmaster at localhost
ServerName dev.lamp.com
DocumentRoot /home/lamp/www/dev.lamp.com/
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
5. made a link toward /etc/apache2/sites/enabled:
ln -s /etc/apache2/sites-available/dev.lamp.com.conf
/etc/apache2/sites-enabled/dev.lamp.com.conf
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 http://dev.lamp.com I
would get "It Works!" too - not the content of index.html file inside
dev.lamp.com?
Any ideas?
Thanks,
LAMP
More information about the ubuntu-users
mailing list