hey just wanna know if this is the correct bit to have multiple sites on one server under newest version of Apache... <VirtualHost *:80> ServerName www.domain.tv ServerAlias domain.tv *.domain.tv DocumentRoot /var/www/html/domain </VirtualHost> <VirtualHost *:80> ServerName www.domain2.cn ServerAlias domain2.cn *.domain2.cn DocumentRoot /var/www/html/domain2.cn </VirtualHost> <VirtualHost *:80> ServerName www.domain3.net ServerAlias domain3.cn *.domain3.net DocumentRoot /var/www/html/domain3.net </VirtualHost> Code (markup): plz get back to me soon, as i'm tryin 2 finish it now..
What you've created there are the most simple of virtualhost containers, and yeah, they appear to be valid for most configs of apache. Can you give a little more information about what you're doing and where you're putting those? 'apachectl configtest' might also give you a little helpful output, as well as the httpd logs.
As 'hoodvs2' said, that should work at it's most basic - however, I'd really add configuration for error logs and access logs to each VirtualHost separately.