编辑APACHE httpd.conf文件
vim /etc/apache2/httpd.conf
增加如下:
ServerName localhost
<VirtualHost *:80>
ServerName www.52juchang.com
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
ServerName up.52juchang.com
DocumentRoot /var/www/uploads
</VirtualHost>
<VirtualHost *:80>
ServerName res.52juchang.com
DocumentRoot /var/www/resource
</VirtualHost>