rewriter在virtualhost中的匹配规则
前几天做一个小修改,就是对一些请求做一个跳转,于是我在 http.conf 文件中做了如下的修改(摘录其中重点部分如下),其中红线部分即为新增的用于跳转的配置。RewriteEngine onRewriteCond %{HTTP_HOST} ^www.xxx1.com [NC]RewriteRule ^/(.*) http://www.xxx2.com/$1 [L,R]NameVirtualHost * ServerName 127.0.0.1 RewriteRule ^/$ /in
原创
2010-10-10 13:51:00 ·
903 阅读 ·
0 评论