分别为每个域配置vhost to domain文件夹。
下面是vhost config i post的示例。
ServerAdmin webmaster@localhost
ServerName www.domain1.com
DocumentRoot /home/domains/files/super.domain1.com/
Options FollowSymLinks
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerAdmin webmaster@localhost
ServerName domain1.com
DocumentRoot /home/domains/files/super.domain1.com/
Options FollowSymLinks
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined