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 但是无效
请大神来解答,感谢了!
2 回答2.5k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
1 回答1.9k 阅读✓ 已解决
1 回答1.5k 阅读✓ 已解决
1 回答1.3k 阅读✓ 已解决
3 回答1.2k 阅读