nginx批量二级虚拟目录重定向到二级域名
如 http://www.test.com/bjusername/ 重定向到http://username.test.com/ ,其中username为变量,我在nginx配置文件中添加了规则
rewrite ^/(bj)([a-z0-9_-]+)/?$ http://$1.test.com/ permanent 但是无效
请大神来解答,感谢了!
nginx批量二级虚拟目录重定向到二级域名
如 http://www.test.com/bjusername/ 重定向到http://username.test.com/ ,其中username为变量,我在nginx配置文件中添加了规则
rewrite ^/(bj)([a-z0-9_-]+)/?$ http://$1.test.com/ permanent 但是无效
请大神来解答,感谢了!
4 回答968 阅读
1 回答643 阅读✓ 已解决
3 回答798 阅读
2 回答617 阅读
2 回答602 阅读
2 回答536 阅读
1 回答597 阅读