nginx host跳转配置
文章目录
host常用匹配
# 匹配host等于test.xxxx.com跳转到其他地址
if ($host ~* 'test.xxxx.com') {
rewrite ^/(.*)$ http://111.112.113.114:80 last;
}
host常用匹配
# 匹配host等于test.xxxx.com跳转到其他地址
if ($host ~* 'test.xxxx.com') {
rewrite ^/(.*)$ http://111.112.113.114:80 last;
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论