今天配置apache2.2,用了VirtualDocumentRoot,发现出现Invalid command 'VirtualDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration,这是因为在httpd.conf里还没有开启mod_vhost_alias.so
后来又出现403 Forbidden,原因在于DocumentRoot 和<Directory "/www/apache"> 这两个地方要设置一样的路径到虚拟主机的实际路径。