.htaccess实现云虚拟机同时绑定多个域名

RewriteEngine on
RewriteCond %{HTTPHOST} ^blog.uacool.com$
RewriteCond %{REQUEST
URI} !^/blog/
RewriteCond %{REQUESTFILENAME} !-f
RewriteCond %{REQUEST
FILENAME} !-d
RewriteRule ^(.*)$ /blog/$1
RewriteCond %{HTTP_HOST} ^blog.uacool.com$
RewriteRule ^(/)?$ blog/index.php [L]

RewriteCond %{HTTPHOST} ^it.uacool.com$
RewriteCond %{REQUEST
URI} !^/it/
RewriteCond %{REQUESTFILENAME} !-f
RewriteCond %{REQUEST
FILENAME} !-d
RewriteRule ^(.*)$ /it/$1
RewriteCond %{HTTP_HOST} ^it.uacool.com$
RewriteRule ^(/)?$ it/index.php [L]