server模块下添加
----------
if ($http_user_agent ~* '(Android|webOS|iPhone|iPod|BlackBerry)') {
    rewrite ^.+ http://mobile.test.com/mobile/$uri;
}
----------
其中mobile为手机端的路径标识, 可以自定义修改.

相关文章:

  • 2021-10-28
  • 2022-12-23
  • 2021-11-26
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-09-10
  • 2021-10-15
相关资源
相似解决方案