<VirtualHost *:80>
ServerName www.aliyun.com #域名
ServerAlias www.aliyun.com #别名
DocumentRoot /data1/www/www.aliyun.com #根目录
ErrorLog /var/log/httpd/www.aliyun.com-error_log #错误日志路径
CustomLog /var/log/httpd/www.aliyun.com-access_log combined #访问日志
RewriteEngine on #开启rewrite规则
RewriteRule ^/images/(.*)$ /view/images/$1 [L] #访问所有/images/ 到 /view/images/ 下去找 $1的值既是(.*)的值
RewriteRule ^/css/(.*)$ /view/css/$1 [L]
RewriteRule ^/js/(.*)$ /view/js/$1 [L]
RewriteRule ^(.*)$ /index.php?argv=$1 [L]
</VirtualHost>