The sticky section of this forum has excellent links to resources.
Did you restart apache2 after making the change? Did you get any errors, or any pertinent info in /var/log/apache2/error.log?
I know there is usually more than one way to skin a cat.
My setup consists of the following.
Each virtual host gets a unique file in /etc/apache2/sites-available. I then enable with
Code:
sudo a2ensite newfilename
Code:
sudo /etc/init.d/apache2 reload
Along with the above I have in /etc/apache2/httpd.conf
If all your sites will be placed on this one machine and all running on port 80 this will work. You will also not need the reference in your individual host file.
Each of your host files should look like this.
/etc/apache2/sites-available/domain1
Code:
###SEHS Robotics virtual host file###
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName Domain1.org
ServerAlias www.Domain1.org
#DocumentRoot /var/www/
DocumentRoot /home/sehsadmin/www/robotics
CustomLog /var/log/apache2/southroboticsorg.log combined
</VirtualHost>
/etc/apache2/sites-available/test1
Code:
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName Domain2.edu
ServerAlias test.org
DocumentRoot /home/sehsadmin/www/test/
CustomLog /var/log/apache2/testorg.log combined
</VirtualHost>
Again if you need custom reference to network interfaces or ip address, this setup will need more work.
Bookmarks