您的位置:首页 > 运维架构 > 网站架构

IIS服务在启动"默认网站(停止)"时显示"发生意外错误0x8ffe2740",

2008-10-30 21:46 453 查看
apache实现手机访问www网站自动跳转到WAP站点

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://hehe.abc.com

</Directory>

通过运营商提供的Via信息实现跳转,但是对智能机效果不是很好,因为智能机很多是支持www浏览器的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: