日期:2014-05-16 浏览次数:21015 次
vi /usr/local/apache2/conf/httpd.conf LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Via}i\"" combinedwap CustomLog "logs/access_log" combinedwap RewriteLogLevel 9 RewriteEngine On RewriteLog "/usr/local/apache2/logs/rewrite_wap.log" <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all RewriteEngine On RewriteCond %{HTTP:Via} ^.*WAP.* RewriteRule ^(.+) http://m.abc.com </Directory>