/etc/apache2/sites-available/site1.xxxx.com
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName http://www.my4j.com
CustomLog /var/log/apache2/bbs.my4j.com-access.log combined
DocumentRoot /var/www/my4j/
<Directory /var/www/my4j/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
</VirtualHost>
ln -s /etc/apache2/sites-available/site1.xxxx.com /etc/apache2/sites-enabled/site1.xxxx.com
/etc/init.d/apache2 force-reload
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName http://www.my4j.com
CustomLog /var/log/apache2/bbs.my4j.com-access.log combined
DocumentRoot /var/www/my4j/
<Directory /var/www/my4j/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
</Directory>
</VirtualHost>
ln -s /etc/apache2/sites-available/site1.xxxx.com /etc/apache2/sites-enabled/site1.xxxx.com
/etc/init.d/apache2 force-reload