Virtual hosts in Apache
in Vhosts.conf, the following is the real setting. The docroot may not
allow index, so you need to put index.html to test the virtual host
===============================================
# Listen for virtual host requests on all IP addresses
NameVirtualHost *:80
DocumentRoot /var/www/html/web
ServerName web.mydomain.com
# Other directives here
DocumentRoot /var/www/html/news
ServerName news.mydomain.com
# Other directives here
DocumentRoot /var/www/html/photo
ServerName photo.mydomain.com
# Other directives here