个人推荐移动站前端完全重做,另一个项目 1. 和PC端公用后端服务 2. 使用Nginx分别配置两个服务, m.domain.com 和 domain.com 3. 在 domain.com 服务中使用Nginx检测请求头UA是否含有mobile字段,如果有,进行302跳转到 m.domain.com 对应页面(没有对应的跳转首页等) 4. 上诉配置参考: location / { if ($http_user_agent ~* "Mobile") { return 302 https://m.domain.com; } }