zoon_unit
August 9th, 2006, 01:53 PM
I'm trying to set up a virtual host on my Ubuntu LAMP install.
1) I went to etc/apache2/sites-available and copied the default config file, naming it the name of my new virtual site, which for this post I'll call mynewsite. (this is per the Ubuntu documentation)
2) Then I changed the following settings in the new file to match mynewsite: (first few lines of the file)
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/drupal
ServerName www.mynewsite.com
ServerAlias *.mynewsite.com mynewsite.com
3) Then I "activate" the new site by typing:
sudo a2ensite mynewsite
I get a message back saying the new site is activated and to reload the server with:
/etc/init.d/apache2 reload
But when this runs, I get the following message:
[warn] NameVirtualHost *:0 has no VirtualHosts
Most importantly, my new virtual host doesn't work!!
Anybody know what I'm doing wrong? Is there anything else I need to do to activate this virtual host??
1) I went to etc/apache2/sites-available and copied the default config file, naming it the name of my new virtual site, which for this post I'll call mynewsite. (this is per the Ubuntu documentation)
2) Then I changed the following settings in the new file to match mynewsite: (first few lines of the file)
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/drupal
ServerName www.mynewsite.com
ServerAlias *.mynewsite.com mynewsite.com
3) Then I "activate" the new site by typing:
sudo a2ensite mynewsite
I get a message back saying the new site is activated and to reload the server with:
/etc/init.d/apache2 reload
But when this runs, I get the following message:
[warn] NameVirtualHost *:0 has no VirtualHosts
Most importantly, my new virtual host doesn't work!!
Anybody know what I'm doing wrong? Is there anything else I need to do to activate this virtual host??